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

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

@lnk = external dso_local global [100001 x i32], align 16
@mx = external dso_local global i32, align 4
@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
@ord = external dso_local global [100001 x i32], align 16
@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
@idx = external dso_local global [17 x [100001 x i32]], align 16
@idx2 = external dso_local global [17 x [100001 x i32]], align 16
@dis = external dso_local global [17 x [100001 x i32]], align 16
@len = external dso_local global [200003 x i32], align 16
@cnt = external dso_local global [200003 x ptr], align 16
@pool = external dso_local global [3400035 x i32], align 16
@tail = external dso_local global ptr, align 8
@sz = external dso_local global [100001 x i32], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [62 x i8], align 1
@__PRETTY_FUNCTION__._Z5buildii = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 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
define dso_local void @_Z5buildii(i32 noundef %0, i32 noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = load i32, ptr @mx, align 4, !tbaa !5
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %2
  br label %32

30:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 30, ptr noundef @__PRETTY_FUNCTION__._Z5buildii) #6
  unreachable

31:                                               ; No predecessors!
  br label %32

32:                                               ; preds = %31, %29
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %34
  store i32 0, ptr %35, align 4, !tbaa !5
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %37
  store i32 0, ptr %38, align 4, !tbaa !5
  %39 = load i32, ptr %4, align 4, !tbaa !5
  call void @_Z3bfsi(i32 noundef %39)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 100001, ptr %5, align 4, !tbaa !5
  store i32 -1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %40 = load i32, ptr @tot, align 4, !tbaa !5
  %41 = sub nsw i32 %40, 1
  store i32 %41, ptr %6, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %121, %32
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = icmp sge i32 %43, 0
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %124

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  store i32 %50, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100001 x i32], ptr @sz, i64 0, i64 %52
  store i32 1, ptr %53, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  store i32 %57, ptr %10, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %99, %46
  %59 = load i32, ptr %10, align 4, !tbaa !5
  %60 = icmp ne i32 %59, -1
  br i1 %60, label %62, label %61

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

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %63 = load i32, ptr %10, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %64
  %66 = getelementptr inbounds %struct.Edge, ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 4, !tbaa !9
  store i32 %67, ptr %11, align 4, !tbaa !5
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = load i32, ptr %8, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = icmp eq i32 %68, %72
  br i1 %73, label %80, label %74

74:                                               ; preds = %62
  %75 = load i32, ptr %11, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !11, !range !13, !noundef !14
  %79 = trunc i8 %78 to i1
  br i1 %79, label %80, label %81

80:                                               ; preds = %74, %62
  store i32 7, ptr %7, align 4
  br label %96

81:                                               ; preds = %74
  %82 = load i32, ptr %11, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [100001 x i32], ptr @sz, i64 0, i64 %83
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %84)
  %86 = load i32, ptr %85, align 4, !tbaa !5
  store i32 %86, ptr %9, align 4, !tbaa !5
  %87 = load i32, ptr %11, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [100001 x i32], ptr @sz, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100001 x i32], ptr @sz, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = add nsw i32 %94, %90
  store i32 %95, ptr %93, align 4, !tbaa !5
  store i32 0, ptr %7, align 4
  br label %96

96:                                               ; preds = %81, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  %97 = load i32, ptr %7, align 4
  switch i32 %97, label %490 [
    i32 0, label %98
    i32 7, label %99
  ]

98:                                               ; preds = %96
  br label %99

99:                                               ; preds = %98, %96
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %101
  %103 = getelementptr inbounds %struct.Edge, ptr %102, i32 0, i32 0
  %104 = load i32, ptr %103, align 8, !tbaa !15
  store i32 %104, ptr %10, align 4, !tbaa !5
  br label %58, !llvm.loop !16

105:                                              ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %106 = load i32, ptr @tot, align 4, !tbaa !5
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [100001 x i32], ptr @sz, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = sub nsw i32 %106, %110
  store i32 %111, ptr %12, align 4, !tbaa !5
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %113 = load i32, ptr %112, align 4, !tbaa !5
  store i32 %113, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %114 = load i32, ptr %9, align 4, !tbaa !5
  %115 = load i32, ptr %5, align 4, !tbaa !5
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %117, label %120

117:                                              ; preds = %105
  %118 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %118, ptr %5, align 4, !tbaa !5
  %119 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %119, ptr %4, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %117, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %6, align 4, !tbaa !5
  %123 = add nsw i32 %122, -1
  store i32 %123, ptr %6, align 4, !tbaa !5
  br label %42, !llvm.loop !18

124:                                              ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %125 = load i32, ptr @ptot, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr @ptot, align 4, !tbaa !5
  store i32 %125, ptr %13, align 4, !tbaa !5
  %127 = load i32, ptr %13, align 4, !tbaa !5
  %128 = load i32, ptr %3, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [17 x [100001 x i32]], ptr @idx2, i64 0, i64 %129
  %131 = load i32, ptr %4, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [100001 x i32], ptr %130, i64 0, i64 %132
  store i32 %127, ptr %133, align 4, !tbaa !5
  %134 = load i32, ptr %3, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [17 x [100001 x i32]], ptr @idx, i64 0, i64 %135
  %137 = load i32, ptr %4, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [100001 x i32], ptr %136, i64 0, i64 %138
  store i32 %127, ptr %139, align 4, !tbaa !5
  %140 = load i32, ptr %4, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %141
  store i32 0, ptr %142, align 4, !tbaa !5
  %143 = load i32, ptr %4, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %144
  store i32 0, ptr %145, align 4, !tbaa !5
  %146 = load i32, ptr %3, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [17 x [100001 x i32]], ptr @dis, i64 0, i64 %147
  %149 = load i32, ptr %4, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [100001 x i32], ptr %148, i64 0, i64 %150
  store i32 0, ptr %151, align 4, !tbaa !5
  %152 = load i32, ptr %13, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %153
  store i32 1, ptr %154, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %155 = load i32, ptr %4, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !5
  store i32 %158, ptr %14, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %297, %124
  %160 = load i32, ptr %14, align 4, !tbaa !5
  %161 = icmp ne i32 %160, -1
  br i1 %161, label %163, label %162

162:                                              ; preds = %159
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %303

163:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %164 = load i32, ptr %14, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %165
  %167 = getelementptr inbounds %struct.Edge, ptr %166, i32 0, i32 1
  %168 = load i32, ptr %167, align 4, !tbaa !9
  store i32 %168, ptr %15, align 4, !tbaa !5
  %169 = load i32, ptr %15, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %170
  %172 = load i8, ptr %171, align 1, !tbaa !11, !range !13, !noundef !14
  %173 = trunc i8 %172 to i1
  br i1 %173, label %174, label %175

174:                                              ; preds = %163
  store i32 10, ptr %7, align 4
  br label %294

175:                                              ; preds = %163
  %176 = load i32, ptr %4, align 4, !tbaa !5
  %177 = load i32, ptr %15, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %178
  store i32 %176, ptr %179, align 4, !tbaa !5
  %180 = load i32, ptr %4, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  %185 = load i32, ptr %15, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %186
  store i32 %184, ptr %187, align 4, !tbaa !5
  %188 = load i32, ptr %15, align 4, !tbaa !5
  call void @_Z3bfsi(i32 noundef %188)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %189 = load i32, ptr @ptot, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr @ptot, align 4, !tbaa !5
  store i32 %189, ptr %16, align 4, !tbaa !5
  %191 = load i32, ptr @tot, align 4, !tbaa !5
  %192 = sub nsw i32 %191, 1
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  %200 = load i32, ptr %16, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %201
  store i32 %199, ptr %202, align 4, !tbaa !5
  %203 = load ptr, ptr @tail, align 8, !tbaa !19
  %204 = load i32, ptr %16, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %205
  store ptr %203, ptr %206, align 8, !tbaa !19
  %207 = load i32, ptr %16, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = load ptr, ptr @tail, align 8, !tbaa !19
  %212 = sext i32 %210 to i64
  %213 = getelementptr inbounds i32, ptr %211, i64 %212
  store ptr %213, ptr @tail, align 8, !tbaa !19
  %214 = load ptr, ptr @tail, align 8, !tbaa !19
  %215 = ptrtoint ptr %214 to i64
  %216 = sub i64 %215, ptrtoint (ptr @pool to i64)
  %217 = sdiv exact i64 %216, 4
  %218 = icmp sle i64 %217, 3400034
  br i1 %218, label %219, label %220

219:                                              ; preds = %175
  br label %222

220:                                              ; preds = %175
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 66, ptr noundef @__PRETTY_FUNCTION__._Z5buildii) #6
  unreachable

221:                                              ; No predecessors!
  br label %222

222:                                              ; preds = %221, %219
  %223 = load i32, ptr %16, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %224
  %226 = load ptr, ptr %225, align 8, !tbaa !19
  %227 = load i32, ptr %16, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %228
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = mul i64 %231, 4
  call void @llvm.memset.p0.i64(ptr align 4 %226, i8 0, i64 %232, i1 false)
  %233 = load i32, ptr %13, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %234
  %236 = load i32, ptr %16, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %237
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %235, ptr noundef nonnull align 4 dereferenceable(4) %238)
  %240 = load i32, ptr %239, align 4, !tbaa !5
  %241 = load i32, ptr %13, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %242
  store i32 %240, ptr %243, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %244

244:                                              ; preds = %290, %222
  %245 = load i32, ptr %17, align 4, !tbaa !5
  %246 = load i32, ptr @tot, align 4, !tbaa !5
  %247 = icmp slt i32 %245, %246
  br i1 %247, label %249, label %248

248:                                              ; preds = %244
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %293

249:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %250 = load i32, ptr %17, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %251
  %253 = load i32, ptr %252, align 4, !tbaa !5
  store i32 %253, ptr %18, align 4, !tbaa !5
  %254 = load i32, ptr %13, align 4, !tbaa !5
  %255 = load i32, ptr %3, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [17 x [100001 x i32]], ptr @idx, i64 0, i64 %256
  %258 = load i32, ptr %18, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [100001 x i32], ptr %257, i64 0, i64 %259
  store i32 %254, ptr %260, align 4, !tbaa !5
  %261 = load i32, ptr %16, align 4, !tbaa !5
  %262 = load i32, ptr %3, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [17 x [100001 x i32]], ptr @idx2, i64 0, i64 %263
  %265 = load i32, ptr %18, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [100001 x i32], ptr %264, i64 0, i64 %266
  store i32 %261, ptr %267, align 4, !tbaa !5
  %268 = load i32, ptr %18, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %269
  %271 = load i32, ptr %270, align 4, !tbaa !5
  %272 = load i32, ptr %3, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [17 x [100001 x i32]], ptr @dis, i64 0, i64 %273
  %275 = load i32, ptr %18, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [100001 x i32], ptr %274, i64 0, i64 %276
  store i32 %271, ptr %277, align 4, !tbaa !5
  %278 = load i32, ptr %16, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %279
  %281 = load ptr, ptr %280, align 8, !tbaa !19
  %282 = load i32, ptr %18, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %283
  %285 = load i32, ptr %284, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds i32, ptr %281, i64 %286
  %288 = load i32, ptr %287, align 4, !tbaa !5
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %287, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %290

290:                                              ; preds = %249
  %291 = load i32, ptr %17, align 4, !tbaa !5
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %17, align 4, !tbaa !5
  br label %244, !llvm.loop !21

293:                                              ; preds = %248
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  store i32 0, ptr %7, align 4
  br label %294

294:                                              ; preds = %293, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  %295 = load i32, ptr %7, align 4
  switch i32 %295, label %490 [
    i32 0, label %296
    i32 10, label %297
  ]

296:                                              ; preds = %294
  br label %297

297:                                              ; preds = %296, %294
  %298 = load i32, ptr %14, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %299
  %301 = getelementptr inbounds %struct.Edge, ptr %300, i32 0, i32 0
  %302 = load i32, ptr %301, align 8, !tbaa !15
  store i32 %302, ptr %14, align 4, !tbaa !5
  br label %159, !llvm.loop !22

303:                                              ; preds = %162
  %304 = load ptr, ptr @tail, align 8, !tbaa !19
  %305 = load i32, ptr %13, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %306
  store ptr %304, ptr %307, align 8, !tbaa !19
  %308 = load i32, ptr %13, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %309
  %311 = load i32, ptr %310, align 4, !tbaa !5
  %312 = load ptr, ptr @tail, align 8, !tbaa !19
  %313 = sext i32 %311 to i64
  %314 = getelementptr inbounds i32, ptr %312, i64 %313
  store ptr %314, ptr @tail, align 8, !tbaa !19
  %315 = load ptr, ptr @tail, align 8, !tbaa !19
  %316 = ptrtoint ptr %315 to i64
  %317 = sub i64 %316, ptrtoint (ptr @pool to i64)
  %318 = sdiv exact i64 %317, 4
  %319 = icmp sle i64 %318, 3400034
  br i1 %319, label %320, label %321

320:                                              ; preds = %303
  br label %323

321:                                              ; preds = %303
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 79, ptr noundef @__PRETTY_FUNCTION__._Z5buildii) #6
  unreachable

322:                                              ; No predecessors!
  br label %323

323:                                              ; preds = %322, %320
  %324 = load i32, ptr %13, align 4, !tbaa !5
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %325
  %327 = load ptr, ptr %326, align 8, !tbaa !19
  %328 = load i32, ptr %13, align 4, !tbaa !5
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %329
  %331 = load i32, ptr %330, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = mul i64 %332, 4
  call void @llvm.memset.p0.i64(ptr align 4 %327, i8 0, i64 %333, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %334 = load i32, ptr %4, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %335
  %337 = load i32, ptr %336, align 4, !tbaa !5
  store i32 %337, ptr %19, align 4, !tbaa !5
  br label %338

338:                                              ; preds = %413, %323
  %339 = load i32, ptr %19, align 4, !tbaa !5
  %340 = icmp ne i32 %339, -1
  br i1 %340, label %342, label %341

341:                                              ; preds = %338
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %419

342:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %343 = load i32, ptr %19, align 4, !tbaa !5
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %344
  %346 = getelementptr inbounds %struct.Edge, ptr %345, i32 0, i32 1
  %347 = load i32, ptr %346, align 4, !tbaa !9
  store i32 %347, ptr %20, align 4, !tbaa !5
  %348 = load i32, ptr %20, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %349
  %351 = load i8, ptr %350, align 1, !tbaa !11, !range !13, !noundef !14
  %352 = trunc i8 %351 to i1
  br i1 %352, label %353, label %354

353:                                              ; preds = %342
  store i32 16, ptr %7, align 4
  br label %410

354:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %355 = load i32, ptr %3, align 4, !tbaa !5
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [17 x [100001 x i32]], ptr @idx2, i64 0, i64 %356
  %358 = load i32, ptr %20, align 4, !tbaa !5
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [100001 x i32], ptr %357, i64 0, i64 %359
  %361 = load i32, ptr %360, align 4, !tbaa !5
  store i32 %361, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 1, ptr %22, align 4, !tbaa !5
  br label %362

362:                                              ; preds = %406, %354
  %363 = load i32, ptr %22, align 4, !tbaa !5
  %364 = load i32, ptr %21, align 4, !tbaa !5
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %365
  %367 = load i32, ptr %366, align 4, !tbaa !5
  %368 = icmp slt i32 %363, %367
  br i1 %368, label %370, label %369

369:                                              ; preds = %362
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %409

370:                                              ; preds = %362
  %371 = load i32, ptr %21, align 4, !tbaa !5
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %372
  %374 = load ptr, ptr %373, align 8, !tbaa !19
  %375 = load i32, ptr %22, align 4, !tbaa !5
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds i32, ptr %374, i64 %376
  %378 = load i32, ptr %377, align 4, !tbaa !5
  %379 = load i32, ptr %13, align 4, !tbaa !5
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %380
  %382 = load ptr, ptr %381, align 8, !tbaa !19
  %383 = load i32, ptr %22, align 4, !tbaa !5
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds i32, ptr %382, i64 %384
  %386 = load i32, ptr %385, align 4, !tbaa !5
  %387 = add nsw i32 %386, %378
  store i32 %387, ptr %385, align 4, !tbaa !5
  %388 = load i32, ptr %21, align 4, !tbaa !5
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %389
  %391 = load ptr, ptr %390, align 8, !tbaa !19
  %392 = load i32, ptr %22, align 4, !tbaa !5
  %393 = sub nsw i32 %392, 1
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds i32, ptr %391, i64 %394
  %396 = load i32, ptr %395, align 4, !tbaa !5
  %397 = load i32, ptr %21, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %398
  %400 = load ptr, ptr %399, align 8, !tbaa !19
  %401 = load i32, ptr %22, align 4, !tbaa !5
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds i32, ptr %400, i64 %402
  %404 = load i32, ptr %403, align 4, !tbaa !5
  %405 = add nsw i32 %404, %396
  store i32 %405, ptr %403, align 4, !tbaa !5
  br label %406

406:                                              ; preds = %370
  %407 = load i32, ptr %22, align 4, !tbaa !5
  %408 = add nsw i32 %407, 1
  store i32 %408, ptr %22, align 4, !tbaa !5
  br label %362, !llvm.loop !23

409:                                              ; preds = %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  store i32 0, ptr %7, align 4
  br label %410

410:                                              ; preds = %409, %353
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  %411 = load i32, ptr %7, align 4
  switch i32 %411, label %490 [
    i32 0, label %412
    i32 16, label %413
  ]

412:                                              ; preds = %410
  br label %413

413:                                              ; preds = %412, %410
  %414 = load i32, ptr %19, align 4, !tbaa !5
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %415
  %417 = getelementptr inbounds %struct.Edge, ptr %416, i32 0, i32 0
  %418 = load i32, ptr %417, align 8, !tbaa !15
  store i32 %418, ptr %19, align 4, !tbaa !5
  br label %338, !llvm.loop !24

419:                                              ; preds = %341
  %420 = load i32, ptr %13, align 4, !tbaa !5
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %421
  %423 = load ptr, ptr %422, align 8, !tbaa !19
  %424 = getelementptr inbounds i32, ptr %423, i64 0
  store i32 1, ptr %424, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 1, ptr %23, align 4, !tbaa !5
  br label %425

425:                                              ; preds = %452, %419
  %426 = load i32, ptr %23, align 4, !tbaa !5
  %427 = load i32, ptr %13, align 4, !tbaa !5
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %428
  %430 = load i32, ptr %429, align 4, !tbaa !5
  %431 = icmp slt i32 %426, %430
  br i1 %431, label %433, label %432

432:                                              ; preds = %425
  store i32 20, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %455

433:                                              ; preds = %425
  %434 = load i32, ptr %13, align 4, !tbaa !5
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %435
  %437 = load ptr, ptr %436, align 8, !tbaa !19
  %438 = load i32, ptr %23, align 4, !tbaa !5
  %439 = sub nsw i32 %438, 1
  %440 = sext i32 %439 to i64
  %441 = getelementptr inbounds i32, ptr %437, i64 %440
  %442 = load i32, ptr %441, align 4, !tbaa !5
  %443 = load i32, ptr %13, align 4, !tbaa !5
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %444
  %446 = load ptr, ptr %445, align 8, !tbaa !19
  %447 = load i32, ptr %23, align 4, !tbaa !5
  %448 = sext i32 %447 to i64
  %449 = getelementptr inbounds i32, ptr %446, i64 %448
  %450 = load i32, ptr %449, align 4, !tbaa !5
  %451 = add nsw i32 %450, %442
  store i32 %451, ptr %449, align 4, !tbaa !5
  br label %452

452:                                              ; preds = %433
  %453 = load i32, ptr %23, align 4, !tbaa !5
  %454 = add nsw i32 %453, 1
  store i32 %454, ptr %23, align 4, !tbaa !5
  br label %425, !llvm.loop !25

455:                                              ; preds = %432
  %456 = load i32, ptr %4, align 4, !tbaa !5
  %457 = sext i32 %456 to i64
  %458 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %457
  store i8 1, ptr %458, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %459 = load i32, ptr %4, align 4, !tbaa !5
  %460 = sext i32 %459 to i64
  %461 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %460
  %462 = load i32, ptr %461, align 4, !tbaa !5
  store i32 %462, ptr %24, align 4, !tbaa !5
  br label %463

463:                                              ; preds = %483, %455
  %464 = load i32, ptr %24, align 4, !tbaa !5
  %465 = icmp ne i32 %464, -1
  br i1 %465, label %467, label %466

466:                                              ; preds = %463
  store i32 23, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %489

467:                                              ; preds = %463
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %468 = load i32, ptr %24, align 4, !tbaa !5
  %469 = sext i32 %468 to i64
  %470 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %469
  %471 = getelementptr inbounds %struct.Edge, ptr %470, i32 0, i32 1
  %472 = load i32, ptr %471, align 4, !tbaa !9
  store i32 %472, ptr %25, align 4, !tbaa !5
  %473 = load i32, ptr %25, align 4, !tbaa !5
  %474 = sext i32 %473 to i64
  %475 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %474
  %476 = load i8, ptr %475, align 1, !tbaa !11, !range !13, !noundef !14
  %477 = trunc i8 %476 to i1
  br i1 %477, label %482, label %478

478:                                              ; preds = %467
  %479 = load i32, ptr %3, align 4, !tbaa !5
  %480 = add nsw i32 %479, 1
  %481 = load i32, ptr %25, align 4, !tbaa !5
  call void @_Z5buildii(i32 noundef %480, i32 noundef %481)
  br label %482

482:                                              ; preds = %478, %467
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %483

483:                                              ; preds = %482
  %484 = load i32, ptr %24, align 4, !tbaa !5
  %485 = sext i32 %484 to i64
  %486 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %485
  %487 = getelementptr inbounds %struct.Edge, ptr %486, i32 0, i32 0
  %488 = load i32, ptr %487, align 8, !tbaa !15
  store i32 %488, ptr %24, align 4, !tbaa !5
  br label %463, !llvm.loop !26

489:                                              ; preds = %466
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret void

490:                                              ; preds = %410, %294, %96
  unreachable
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { noreturn 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { noreturn nounwind }
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 4}
!10 = !{!"_ZTS4Edge", !6, i64 0, !6, i64 4}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!10, !6, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!20, !20, i64 0}
!20 = !{!"any pointer", !7, i64 0}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}


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

@lnk = external dso_local local_unnamed_addr global [100001 x i32], align 16
@mx = external dso_local local_unnamed_addr global i32, align 4
@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
@ord = external dso_local local_unnamed_addr global [100001 x i32], align 16
@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
@idx = external dso_local local_unnamed_addr global [17 x [100001 x i32]], align 16
@idx2 = external dso_local local_unnamed_addr global [17 x [100001 x i32]], align 16
@dis = external dso_local local_unnamed_addr global [17 x [100001 x i32]], align 16
@len = external dso_local global [200003 x i32], align 16
@cnt = external dso_local local_unnamed_addr global [200003 x ptr], align 16
@pool = external dso_local global [3400035 x i32], align 16
@tail = external dso_local local_unnamed_addr global ptr, align 8
@sz = external dso_local global [100001 x i32], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [62 x i8], align 1
@__PRETTY_FUNCTION__._Z5buildii = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 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 nounwind uwtable
define dso_local void @_Z5buildii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = load i32, ptr @mx, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, %0
  br i1 %6, label %8, label %7

7:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 30, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5buildii) #6
  unreachable

8:                                                ; preds = %2
  %9 = sext i32 %1 to i64
  %10 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %9
  store i32 0, ptr %10, align 4, !tbaa !5
  %11 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %9
  store i32 0, ptr %11, align 4, !tbaa !5
  tail call void @_Z3bfsi(i32 noundef %1)
  %12 = load i32, ptr @tot, align 4, !tbaa !5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph127.preheader, label %._crit_edge128

.lr.ph127.preheader:                              ; preds = %8
  %14 = zext nneg i32 %12 to i64
  br label %.lr.ph127

._crit_edge128:                                   ; preds = %._crit_edge, %8
  %.0.lcssa = phi i32 [ -1, %8 ], [ %spec.select117, %._crit_edge ]
  %15 = load i32, ptr @ptot, align 4, !tbaa !5
  %16 = add nsw i32 %15, 1
  store i32 %16, ptr @ptot, align 4, !tbaa !5
  %17 = sext i32 %0 to i64
  %18 = sext i32 %.0.lcssa to i64
  %19 = getelementptr inbounds [17 x [100001 x i32]], ptr @idx2, i64 0, i64 %17, i64 %18
  store i32 %15, ptr %19, align 4, !tbaa !5
  %20 = getelementptr inbounds [17 x [100001 x i32]], ptr @idx, i64 0, i64 %17, i64 %18
  store i32 %15, ptr %20, align 4, !tbaa !5
  %21 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %18
  store i32 0, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %18
  store i32 0, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds [17 x [100001 x i32]], ptr @dis, i64 0, i64 %17, i64 %18
  store i32 0, ptr %23, align 4, !tbaa !5
  %24 = sext i32 %15 to i64
  %25 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %24
  store i32 1, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %18
  %.0110132 = load i32, ptr %26, align 4, !tbaa !5
  %.not133 = icmp eq i32 %.0110132, -1
  br i1 %.not133, label %._crit_edge137, label %.lr.ph136

.lr.ph127:                                        ; preds = %.lr.ph127.preheader, %._crit_edge
  %indvars.iv = phi i64 [ %14, %.lr.ph127.preheader ], [ %indvars.iv.next, %._crit_edge ]
  %.0124 = phi i32 [ -1, %.lr.ph127.preheader ], [ %spec.select117, %._crit_edge ]
  %.0104123 = phi i32 [ 100001, %.lr.ph127.preheader ], [ %spec.select, %._crit_edge ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %27 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %indvars.iv.next
  %28 = load i32, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [100001 x i32], ptr @sz, i64 0, i64 %29
  store i32 1, ptr %30, align 4, !tbaa !5
  %31 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %29
  %.0109119 = load i32, ptr %31, align 4, !tbaa !5
  %.not116120 = icmp eq i32 %.0109119, -1
  br i1 %.not116120, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph127
  %32 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %29
  br label %40

._crit_edge:                                      ; preds = %60, %.lr.ph127
  %33 = phi i32 [ 1, %.lr.ph127 ], [ %61, %60 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %34 = load i32, ptr @tot, align 4, !tbaa !5
  %35 = sub nsw i32 %34, %33
  store i32 %35, ptr %4, align 4, !tbaa !5
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %37 = load i32, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %38 = icmp slt i32 %37, %.0104123
  %spec.select = call i32 @llvm.smin.i32(i32 %37, i32 %.0104123)
  %spec.select117 = select i1 %38, i32 %28, i32 %.0124
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %39 = icmp sgt i64 %indvars.iv, 1
  br i1 %39, label %.lr.ph127, label %._crit_edge128, !llvm.loop !9

40:                                               ; preds = %.lr.ph, %60
  %41 = phi i32 [ 1, %.lr.ph ], [ %61, %60 ]
  %.0109121 = phi i32 [ %.0109119, %.lr.ph ], [ %.0109, %60 ]
  %42 = sext i32 %.0109121 to i64
  %43 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %42
  %44 = getelementptr inbounds i8, ptr %43, i64 4
  %45 = load i32, ptr %44, align 4, !tbaa !11
  %46 = load i32, ptr %32, align 4, !tbaa !5
  %47 = icmp eq i32 %45, %46
  br i1 %47, label %60, label %48

48:                                               ; preds = %40
  %49 = sext i32 %45 to i64
  %50 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %49
  %51 = load i8, ptr %50, align 1, !tbaa !13, !range !15, !noundef !16
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %60, label %53

53:                                               ; preds = %48
  %54 = getelementptr inbounds [100001 x i32], ptr @sz, i64 0, i64 %49
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %54)
  %56 = load i32, ptr %55, align 4, !tbaa !5
  store i32 %56, ptr %3, align 4, !tbaa !5
  %57 = load i32, ptr %54, align 4, !tbaa !5
  %58 = load i32, ptr %30, align 4, !tbaa !5
  %59 = add nsw i32 %58, %57
  store i32 %59, ptr %30, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %40, %48, %53
  %61 = phi i32 [ %41, %40 ], [ %41, %48 ], [ %59, %53 ]
  %.0109 = load i32, ptr %43, align 8, !tbaa !5
  %.not116 = icmp eq i32 %.0109, -1
  br i1 %.not116, label %._crit_edge, label %40, !llvm.loop !17

._crit_edge137.loopexit:                          ; preds = %.loopexit118
  %.pre = load i32, ptr %25, align 4, !tbaa !5
  %62 = sext i32 %.pre to i64
  br label %._crit_edge137

._crit_edge137:                                   ; preds = %._crit_edge137.loopexit, %._crit_edge128
  %63 = phi i64 [ %62, %._crit_edge137.loopexit ], [ 1, %._crit_edge128 ]
  %64 = load ptr, ptr @tail, align 8, !tbaa !18
  %65 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %24
  store ptr %64, ptr %65, align 8, !tbaa !18
  %66 = getelementptr inbounds i32, ptr %64, i64 %63
  store ptr %66, ptr @tail, align 8, !tbaa !18
  %67 = ptrtoint ptr %66 to i64
  %68 = sub i64 %67, ptrtoint (ptr @pool to i64)
  %69 = icmp slt i64 %68, 13600140
  br i1 %69, label %128, label %127

.lr.ph136:                                        ; preds = %._crit_edge128, %.loopexit118
  %.0110134 = phi i32 [ %.0110, %.loopexit118 ], [ %.0110132, %._crit_edge128 ]
  %70 = sext i32 %.0110134 to i64
  %71 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %70
  %72 = getelementptr inbounds i8, ptr %71, i64 4
  %73 = load i32, ptr %72, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !13, !range !15, !noundef !16
  %77 = trunc nuw i8 %76 to i1
  br i1 %77, label %.loopexit118, label %78

78:                                               ; preds = %.lr.ph136
  %79 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %74
  store i32 %.0.lcssa, ptr %79, align 4, !tbaa !5
  %80 = load i32, ptr %21, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  %82 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %74
  store i32 %81, ptr %82, align 4, !tbaa !5
  call void @_Z3bfsi(i32 noundef %73)
  %83 = load i32, ptr @ptot, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr @ptot, align 4, !tbaa !5
  %85 = load i32, ptr @tot, align 4, !tbaa !5
  %86 = add nsw i32 %85, -1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  %94 = sext i32 %83 to i64
  %95 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %94
  store i32 %93, ptr %95, align 4, !tbaa !5
  %96 = load ptr, ptr @tail, align 8, !tbaa !18
  %97 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %94
  store ptr %96, ptr %97, align 8, !tbaa !18
  %98 = sext i32 %93 to i64
  %99 = getelementptr inbounds i32, ptr %96, i64 %98
  store ptr %99, ptr @tail, align 8, !tbaa !18
  %100 = ptrtoint ptr %99 to i64
  %101 = sub i64 %100, ptrtoint (ptr @pool to i64)
  %102 = icmp slt i64 %101, 13600140
  br i1 %102, label %104, label %103

103:                                              ; preds = %78
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 66, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5buildii) #6
  unreachable

104:                                              ; preds = %78
  %105 = shl nsw i64 %98, 2
  call void @llvm.memset.p0.i64(ptr align 4 %96, i8 0, i64 %105, i1 false)
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %95)
  %107 = load i32, ptr %106, align 4, !tbaa !5
  store i32 %107, ptr %25, align 4, !tbaa !5
  %108 = load i32, ptr @tot, align 4, !tbaa !5
  %109 = icmp sgt i32 %108, 0
  br i1 %109, label %.lr.ph131, label %.loopexit118

.lr.ph131:                                        ; preds = %104
  %110 = load ptr, ptr %97, align 8, !tbaa !18
  br label %111

111:                                              ; preds = %.lr.ph131, %111
  %indvars.iv158 = phi i64 [ 0, %.lr.ph131 ], [ %indvars.iv.next159, %111 ]
  %112 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %indvars.iv158
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [17 x [100001 x i32]], ptr @idx, i64 0, i64 %17, i64 %114
  store i32 %15, ptr %115, align 4, !tbaa !5
  %116 = getelementptr inbounds [17 x [100001 x i32]], ptr @idx2, i64 0, i64 %17, i64 %114
  store i32 %83, ptr %116, align 4, !tbaa !5
  %117 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %114
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = getelementptr inbounds [17 x [100001 x i32]], ptr @dis, i64 0, i64 %17, i64 %114
  store i32 %118, ptr %119, align 4, !tbaa !5
  %120 = sext i32 %118 to i64
  %121 = getelementptr inbounds i32, ptr %110, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %121, align 4, !tbaa !5
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %124 = load i32, ptr @tot, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = icmp slt i64 %indvars.iv.next159, %125
  br i1 %126, label %111, label %.loopexit118, !llvm.loop !20

.loopexit118:                                     ; preds = %111, %104, %.lr.ph136
  %.0110 = load i32, ptr %71, align 8, !tbaa !5
  %.not = icmp eq i32 %.0110, -1
  br i1 %.not, label %._crit_edge137.loopexit, label %.lr.ph136, !llvm.loop !21

127:                                              ; preds = %._crit_edge137
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 79, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5buildii) #6
  unreachable

128:                                              ; preds = %._crit_edge137
  %129 = shl nsw i64 %63, 2
  call void @llvm.memset.p0.i64(ptr align 4 %64, i8 0, i64 %129, i1 false)
  %.0107141 = load i32, ptr %26, align 4, !tbaa !5
  %.not114142 = icmp eq i32 %.0107141, -1
  br i1 %.not114142, label %._crit_edge146, label %.lr.ph145

._crit_edge146:                                   ; preds = %.loopexit, %128
  %130 = load ptr, ptr %65, align 8, !tbaa !18
  store i32 1, ptr %130, align 4, !tbaa !5
  %131 = load i32, ptr %25, align 4, !tbaa !5
  %132 = icmp sgt i32 %131, 1
  br i1 %132, label %.lr.ph149.preheader, label %._crit_edge150

.lr.ph149.preheader:                              ; preds = %._crit_edge146
  %load_initial = load i32, ptr %130, align 4
  br label %.lr.ph149

.lr.ph145:                                        ; preds = %128, %.loopexit
  %.0107143 = phi i32 [ %.0107, %.loopexit ], [ %.0107141, %128 ]
  %133 = sext i32 %.0107143 to i64
  %134 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %133
  %135 = getelementptr inbounds i8, ptr %134, i64 4
  %136 = load i32, ptr %135, align 4, !tbaa !11
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %137
  %139 = load i8, ptr %138, align 1, !tbaa !13, !range !15, !noundef !16
  %140 = trunc nuw i8 %139 to i1
  br i1 %140, label %.loopexit, label %141

141:                                              ; preds = %.lr.ph145
  %142 = getelementptr inbounds [17 x [100001 x i32]], ptr @idx2, i64 0, i64 %17, i64 %137
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [200003 x i32], ptr @len, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = icmp sgt i32 %146, 1
  br i1 %147, label %.lver.check, label %.loopexit

.lver.check:                                      ; preds = %141
  %148 = getelementptr inbounds [200003 x ptr], ptr @cnt, i64 0, i64 %144
  %149 = load ptr, ptr %148, align 8, !tbaa !18
  %150 = load ptr, ptr %65, align 8, !tbaa !18
  %scevgep = getelementptr i8, ptr %150, i64 4
  %scevgep167 = getelementptr i8, ptr %150, i64 8589934588
  %scevgep168 = getelementptr i8, ptr %149, i64 8589934588
  %bound0 = icmp ult ptr %scevgep, %scevgep168
  %bound1 = icmp ult ptr %149, %scevgep167
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.ph.lver.orig, label %.ph

.ph.lver.orig:                                    ; preds = %.lver.check, %.ph.lver.orig
  %indvars.iv161.lver.orig = phi i64 [ %indvars.iv.next162.lver.orig, %.ph.lver.orig ], [ 1, %.lver.check ]
  %151 = getelementptr inbounds i32, ptr %149, i64 %indvars.iv161.lver.orig
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = getelementptr inbounds i32, ptr %150, i64 %indvars.iv161.lver.orig
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = add nsw i32 %154, %152
  store i32 %155, ptr %153, align 4, !tbaa !5
  %156 = getelementptr i8, ptr %151, i64 -4
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = load i32, ptr %151, align 4, !tbaa !5
  %159 = add nsw i32 %158, %157
  store i32 %159, ptr %151, align 4, !tbaa !5
  %indvars.iv.next162.lver.orig = add nuw nsw i64 %indvars.iv161.lver.orig, 1
  %160 = load i32, ptr %145, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = icmp slt i64 %indvars.iv.next162.lver.orig, %161
  br i1 %162, label %.ph.lver.orig, label %.loopexit, !llvm.loop !22

.ph:                                              ; preds = %.lver.check
  %load_initial170 = load i32, ptr %149, align 4
  br label %163

163:                                              ; preds = %.ph, %163
  %store_forwarded171 = phi i32 [ %load_initial170, %.ph ], [ %170, %163 ]
  %indvars.iv161 = phi i64 [ 1, %.ph ], [ %indvars.iv.next162, %163 ]
  %164 = getelementptr inbounds i32, ptr %149, i64 %indvars.iv161
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = getelementptr inbounds i32, ptr %150, i64 %indvars.iv161
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = add nsw i32 %167, %165
  store i32 %168, ptr %166, align 4, !tbaa !5
  %169 = load i32, ptr %164, align 4, !tbaa !5
  %170 = add nsw i32 %169, %store_forwarded171
  store i32 %170, ptr %164, align 4, !tbaa !5
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %171 = load i32, ptr %145, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = icmp slt i64 %indvars.iv.next162, %172
  br i1 %173, label %163, label %.loopexit, !llvm.loop !22

.loopexit:                                        ; preds = %163, %.ph.lver.orig, %141, %.lr.ph145
  %.0107 = load i32, ptr %134, align 8, !tbaa !5
  %.not114 = icmp eq i32 %.0107, -1
  br i1 %.not114, label %._crit_edge146, label %.lr.ph145, !llvm.loop !23

._crit_edge150:                                   ; preds = %.lr.ph149, %._crit_edge146
  %174 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %18
  store i8 1, ptr %174, align 1, !tbaa !13
  %.0101151 = load i32, ptr %26, align 4, !tbaa !5
  %.not115152 = icmp eq i32 %.0101151, -1
  br i1 %.not115152, label %._crit_edge156, label %.lr.ph155

.lr.ph155:                                        ; preds = %._crit_edge150
  %175 = add nsw i32 %0, 1
  br label %182

.lr.ph149:                                        ; preds = %.lr.ph149.preheader, %.lr.ph149
  %store_forwarded = phi i32 [ %load_initial, %.lr.ph149.preheader ], [ %178, %.lr.ph149 ]
  %indvars.iv164 = phi i64 [ 1, %.lr.ph149.preheader ], [ %indvars.iv.next165, %.lr.ph149 ]
  %176 = getelementptr i32, ptr %130, i64 %indvars.iv164
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = add nsw i32 %177, %store_forwarded
  store i32 %178, ptr %176, align 4, !tbaa !5
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %179 = load i32, ptr %25, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = icmp slt i64 %indvars.iv.next165, %180
  br i1 %181, label %.lr.ph149, label %._crit_edge150, !llvm.loop !24

._crit_edge156:                                   ; preds = %192, %._crit_edge150
  ret void

182:                                              ; preds = %.lr.ph155, %192
  %.0101153 = phi i32 [ %.0101151, %.lr.ph155 ], [ %.0101, %192 ]
  %183 = sext i32 %.0101153 to i64
  %184 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %183
  %185 = getelementptr inbounds i8, ptr %184, i64 4
  %186 = load i32, ptr %185, align 4, !tbaa !11
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %187
  %189 = load i8, ptr %188, align 1, !tbaa !13, !range !15, !noundef !16
  %190 = trunc nuw i8 %189 to i1
  br i1 %190, label %192, label %191

191:                                              ; preds = %182
  call void @_Z5buildii(i32 noundef %175, i32 noundef %186)
  br label %192

192:                                              ; preds = %191, %182
  %.0101 = load i32, ptr %184, align 8, !tbaa !5
  %.not115 = icmp eq i32 %.0101, -1
  br i1 %.not115, label %._crit_edge156, label %182, !llvm.loop !25
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #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 = { noreturn 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 #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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { noreturn nounwind }
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 = !{!12, !6, i64 4}
!12 = !{!"_ZTS4Edge", !6, i64 0, !6, i64 4}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !10}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}


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