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

; 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, i32, i32, i32 }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }

@e = external dso_local global [400002 x %struct.Edge], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@pre = external dso_local global [100001 x i32], align 16
@dis = external dso_local global [100001 x i32], align 16
@dep = external dso_local global [100001 x i32], align 16
@fa = external dso_local global [100001 x [17 x i32]], align 16
@nxt = external dso_local global [100001 x i32], align 16
@ans = external dso_local global [100001 x i32], align 16
@Q = external dso_local global %"class.std::priority_queue", align 8
@vis = external dso_local global [100001 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %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 %"struct.std::pair", align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.std::pair", align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  call void @llvm.memset.p0.i64(ptr align 16 @pre, i8 -1, i64 400004, i1 false)
  br label %29

29:                                               ; preds = %33, %0
  %30 = load i32, ptr @m, align 4, !tbaa !5
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr @m, align 4, !tbaa !5
  %32 = icmp ne i32 %30, 0
  br i1 %32, label %33, label %75

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %34 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 20, ptr %5) #8
  %35 = getelementptr inbounds %struct.Edge, ptr %5, i32 0, i32 0
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100001 x i32], ptr @pre, 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 %2, align 4, !tbaa !5
  store i32 %41, ptr %40, align 4, !tbaa !11
  %42 = getelementptr inbounds %struct.Edge, ptr %5, i32 0, i32 2
  %43 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %43, ptr %42, align 4, !tbaa !12
  %44 = getelementptr inbounds %struct.Edge, ptr %5, i32 0, i32 3
  %45 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %45, ptr %44, align 4, !tbaa !13
  %46 = getelementptr inbounds %struct.Edge, ptr %5, i32 0, i32 4
  store i32 0, ptr %46, align 4, !tbaa !14
  %47 = load i32, ptr @tot, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %48
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %5, i64 20, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 20, ptr %5) #8
  %50 = load i32, ptr @tot, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr @tot, align 4, !tbaa !5
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [100001 x i32], ptr @pre, i64 0, i64 %53
  store i32 %50, ptr %54, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 20, ptr %6) #8
  %55 = getelementptr inbounds %struct.Edge, ptr %6, i32 0, i32 0
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100001 x i32], ptr @pre, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  store i32 %59, ptr %55, align 4, !tbaa !9
  %60 = getelementptr inbounds %struct.Edge, ptr %6, i32 0, i32 1
  %61 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %61, ptr %60, align 4, !tbaa !11
  %62 = getelementptr inbounds %struct.Edge, ptr %6, i32 0, i32 2
  %63 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %63, ptr %62, align 4, !tbaa !12
  %64 = getelementptr inbounds %struct.Edge, ptr %6, i32 0, i32 3
  %65 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %65, ptr %64, align 4, !tbaa !13
  %66 = getelementptr inbounds %struct.Edge, ptr %6, i32 0, i32 4
  store i32 0, ptr %66, align 4, !tbaa !14
  %67 = load i32, ptr @tot, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %68
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 4 %6, i64 20, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 20, ptr %6) #8
  %70 = load i32, ptr @tot, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr @tot, align 4, !tbaa !5
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [100001 x i32], ptr @pre, i64 0, i64 %73
  store i32 %70, ptr %74, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %29, !llvm.loop !16

75:                                               ; preds = %29
  call void @llvm.memset.p0.i64(ptr align 16 @dis, i8 63, i64 400004, i1 false)
  store i32 0, ptr getelementptr inbounds ([100001 x i32], ptr @dis, i64 0, i64 1), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 1, ptr %8, align 4, !tbaa !5
  %76 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds ([100001 x i32], ptr @dis, i64 0, i64 1), ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i64 %76, ptr %7, align 4
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %77

77:                                               ; preds = %152, %150, %75
  %78 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %79 = xor i1 %78, true
  br i1 %79, label %80, label %153

80:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %81 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %82 = getelementptr inbounds %"struct.std::pair", ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !18
  store i32 %83, ptr %9, align 4, !tbaa !5
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [100001 x i8], ptr @vis, i64 0, i64 %85
  %87 = load i8, ptr %86, align 1, !tbaa !20, !range !22, !noundef !23
  %88 = trunc i8 %87 to i1
  br i1 %88, label %89, label %90

89:                                               ; preds = %80
  store i32 4, ptr %10, align 4
  br label %150, !llvm.loop !24

90:                                               ; preds = %80
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100001 x i8], ptr @vis, i64 0, i64 %92
  store i8 1, ptr %93, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %94 = load i32, ptr %9, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [100001 x i32], ptr @pre, i64 0, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  store i32 %97, ptr %11, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %143, %90
  %99 = load i32, ptr %11, align 4, !tbaa !5
  %100 = icmp ne i32 %99, -1
  br i1 %100, label %102, label %101

101:                                              ; preds = %98
  store i32 6, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %149

102:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %103 = load i32, ptr %11, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %104
  %106 = getelementptr inbounds %struct.Edge, ptr %105, i32 0, i32 2
  store ptr %106, ptr %12, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %107 = load i32, ptr %11, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %108
  %110 = getelementptr inbounds %struct.Edge, ptr %109, i32 0, i32 3
  store ptr %110, ptr %13, align 8, !tbaa !25
  %111 = load ptr, ptr %12, align 8, !tbaa !25
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = load i32, ptr %9, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = load ptr, ptr %13, align 8, !tbaa !25
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = add nsw i32 %119, %121
  %123 = icmp sgt i32 %115, %122
  br i1 %123, label %124, label %142

124:                                              ; preds = %102
  %125 = load i32, ptr %9, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = load ptr, ptr %13, align 8, !tbaa !25
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = add nsw i32 %128, %130
  %132 = load ptr, ptr %12, align 8, !tbaa !25
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %134
  store i32 %131, ptr %135, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %136 = load ptr, ptr %12, align 8, !tbaa !25
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %138
  %140 = load ptr, ptr %12, align 8, !tbaa !25
  %141 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %139, ptr noundef nonnull align 4 dereferenceable(4) %140)
  store i64 %141, ptr %14, align 4
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %142

142:                                              ; preds = %124, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %11, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %145
  %147 = getelementptr inbounds %struct.Edge, ptr %146, i32 0, i32 0
  %148 = load i32, ptr %147, align 4, !tbaa !9
  store i32 %148, ptr %11, align 4, !tbaa !5
  br label %98, !llvm.loop !27

149:                                              ; preds = %101
  store i32 0, ptr %10, align 4
  br label %150

150:                                              ; preds = %149, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  %151 = load i32, ptr %10, align 4
  switch i32 %151, label %371 [
    i32 0, label %152
    i32 4, label %77
  ]

152:                                              ; preds = %150
  br label %77, !llvm.loop !24

153:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %246, %153
  %155 = load i32, ptr %15, align 4, !tbaa !5
  %156 = load i32, ptr @n, align 4, !tbaa !5
  %157 = icmp sle i32 %155, %156
  br i1 %157, label %159, label %158

158:                                              ; preds = %154
  store i32 9, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %249

159:                                              ; preds = %154
  %160 = load i32, ptr %15, align 4, !tbaa !5
  %161 = load i32, ptr %15, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [100001 x i32], ptr @nxt, i64 0, i64 %162
  store i32 %160, ptr %163, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %164 = load i32, ptr %15, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [100001 x i32], ptr @pre, i64 0, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !5
  store i32 %167, ptr %16, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %239, %159
  %169 = load i32, ptr %16, align 4, !tbaa !5
  %170 = icmp ne i32 %169, -1
  br i1 %170, label %172, label %171

171:                                              ; preds = %168
  store i32 12, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %245

172:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %173 = load i32, ptr %16, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %174
  %176 = getelementptr inbounds %struct.Edge, ptr %175, i32 0, i32 2
  store ptr %176, ptr %17, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %177 = load i32, ptr %16, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %178
  %180 = getelementptr inbounds %struct.Edge, ptr %179, i32 0, i32 3
  store ptr %180, ptr %18, align 8, !tbaa !25
  %181 = load ptr, ptr %17, align 8, !tbaa !25
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = load i32, ptr %15, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = load ptr, ptr %18, align 8, !tbaa !25
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = add nsw i32 %189, %191
  %193 = icmp eq i32 %185, %192
  br i1 %193, label %194, label %201

194:                                              ; preds = %172
  %195 = load i32, ptr %15, align 4, !tbaa !5
  %196 = load ptr, ptr %17, align 8, !tbaa !25
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %198
  %200 = getelementptr inbounds [17 x i32], ptr %199, i64 0, i64 0
  store i32 %195, ptr %200, align 4, !tbaa !5
  br label %238

201:                                              ; preds = %172
  %202 = load i32, ptr %15, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %203
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = load ptr, ptr %17, align 8, !tbaa !25
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = load ptr, ptr %18, align 8, !tbaa !25
  %212 = load i32, ptr %211, align 4, !tbaa !5
  %213 = add nsw i32 %210, %212
  %214 = icmp ne i32 %205, %213
  br i1 %214, label %215, label %237

215:                                              ; preds = %201
  %216 = load i32, ptr %16, align 4, !tbaa !5
  %217 = and i32 %216, 1
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %237

219:                                              ; preds = %215
  %220 = load i32, ptr %15, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = load ptr, ptr %17, align 8, !tbaa !25
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = add nsw i32 %223, %228
  %230 = load ptr, ptr %18, align 8, !tbaa !25
  %231 = load i32, ptr %230, align 4, !tbaa !5
  %232 = add nsw i32 %229, %231
  %233 = load i32, ptr %16, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %234
  %236 = getelementptr inbounds %struct.Edge, ptr %235, i32 0, i32 4
  store i32 %232, ptr %236, align 4, !tbaa !14
  br label %237

237:                                              ; preds = %219, %215, %201
  br label %238

238:                                              ; preds = %237, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %16, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %241
  %243 = getelementptr inbounds %struct.Edge, ptr %242, i32 0, i32 0
  %244 = load i32, ptr %243, align 4, !tbaa !9
  store i32 %244, ptr %16, align 4, !tbaa !5
  br label %168, !llvm.loop !28

245:                                              ; preds = %171
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %15, align 4, !tbaa !5
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %15, align 4, !tbaa !5
  br label %154, !llvm.loop !29

249:                                              ; preds = %158
  store i32 1, ptr getelementptr inbounds ([100001 x i32], ptr @dep, i64 0, i64 1), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 2, ptr %19, align 4, !tbaa !5
  br label %250

250:                                              ; preds = %264, %249
  %251 = load i32, ptr %19, align 4, !tbaa !5
  %252 = load i32, ptr @n, align 4, !tbaa !5
  %253 = icmp sle i32 %251, %252
  br i1 %253, label %255, label %254

254:                                              ; preds = %250
  store i32 15, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %267

255:                                              ; preds = %250
  %256 = load i32, ptr %19, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !5
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %263, label %261

261:                                              ; preds = %255
  %262 = load i32, ptr %19, align 4, !tbaa !5
  call void @_Z3dfsi(i32 noundef %262)
  br label %263

263:                                              ; preds = %261, %255
  br label %264

264:                                              ; preds = %263
  %265 = load i32, ptr %19, align 4, !tbaa !5
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %19, align 4, !tbaa !5
  br label %250, !llvm.loop !30

267:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %268

268:                                              ; preds = %304, %267
  %269 = load i32, ptr %20, align 4, !tbaa !5
  %270 = icmp slt i32 %269, 17
  br i1 %270, label %272, label %271

271:                                              ; preds = %268
  store i32 18, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %307

272:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 1, ptr %21, align 4, !tbaa !5
  br label %273

273:                                              ; preds = %300, %272
  %274 = load i32, ptr %21, align 4, !tbaa !5
  %275 = load i32, ptr @n, align 4, !tbaa !5
  %276 = icmp sle i32 %274, %275
  br i1 %276, label %278, label %277

277:                                              ; preds = %273
  store i32 21, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %303

278:                                              ; preds = %273
  %279 = load i32, ptr %21, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %280
  %282 = load i32, ptr %20, align 4, !tbaa !5
  %283 = sub nsw i32 %282, 1
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [17 x i32], ptr %281, i64 0, i64 %284
  %286 = load i32, ptr %285, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %287
  %289 = load i32, ptr %20, align 4, !tbaa !5
  %290 = sub nsw i32 %289, 1
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [17 x i32], ptr %288, i64 0, i64 %291
  %293 = load i32, ptr %292, align 4, !tbaa !5
  %294 = load i32, ptr %21, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %295
  %297 = load i32, ptr %20, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [17 x i32], ptr %296, i64 0, i64 %298
  store i32 %293, ptr %299, align 4, !tbaa !5
  br label %300

300:                                              ; preds = %278
  %301 = load i32, ptr %21, align 4, !tbaa !5
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %21, align 4, !tbaa !5
  br label %273, !llvm.loop !31

303:                                              ; preds = %277
  br label %304

304:                                              ; preds = %303
  %305 = load i32, ptr %20, align 4, !tbaa !5
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %20, align 4, !tbaa !5
  br label %268, !llvm.loop !32

307:                                              ; preds = %271
  %308 = load i32, ptr @tot, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds %struct.Edge, ptr @e, i64 %309
  call void @_ZSt4sortIP4EdgeEvT_S2_(ptr noundef @e, ptr noundef %310)
  call void @llvm.memset.p0.i64(ptr align 16 @ans, i8 -1, i64 400004, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %311

311:                                              ; preds = %352, %307
  %312 = load i32, ptr %22, align 4, !tbaa !5
  %313 = load i32, ptr @tot, align 4, !tbaa !5
  %314 = icmp slt i32 %312, %313
  br i1 %314, label %316, label %315

315:                                              ; preds = %311
  store i32 24, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %355

316:                                              ; preds = %311
  %317 = load i32, ptr %22, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %318
  %320 = getelementptr inbounds %struct.Edge, ptr %319, i32 0, i32 4
  %321 = load i32, ptr %320, align 4, !tbaa !14
  %322 = icmp ne i32 %321, 0
  br i1 %322, label %324, label %323

323:                                              ; preds = %316
  br label %352

324:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %325 = load i32, ptr %22, align 4, !tbaa !5
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %326
  %328 = getelementptr inbounds %struct.Edge, ptr %327, i32 0, i32 1
  store ptr %328, ptr %23, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %329 = load i32, ptr %22, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %330
  %332 = getelementptr inbounds %struct.Edge, ptr %331, i32 0, i32 2
  store ptr %332, ptr %24, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %333 = load i32, ptr %22, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %334
  %336 = getelementptr inbounds %struct.Edge, ptr %335, i32 0, i32 4
  store ptr %336, ptr %25, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %337 = load ptr, ptr %23, align 8, !tbaa !25
  %338 = load i32, ptr %337, align 4, !tbaa !5
  %339 = load ptr, ptr %24, align 8, !tbaa !25
  %340 = load i32, ptr %339, align 4, !tbaa !5
  %341 = call noundef i32 @_Z3lcaii(i32 noundef %338, i32 noundef %340)
  store i32 %341, ptr %26, align 4, !tbaa !5
  %342 = load ptr, ptr %23, align 8, !tbaa !25
  %343 = load i32, ptr %342, align 4, !tbaa !5
  %344 = load i32, ptr %26, align 4, !tbaa !5
  %345 = load ptr, ptr %25, align 8, !tbaa !25
  %346 = load i32, ptr %345, align 4, !tbaa !5
  call void @_Z6updateiii(i32 noundef %343, i32 noundef %344, i32 noundef %346)
  %347 = load ptr, ptr %24, align 8, !tbaa !25
  %348 = load i32, ptr %347, align 4, !tbaa !5
  %349 = load i32, ptr %26, align 4, !tbaa !5
  %350 = load ptr, ptr %25, align 8, !tbaa !25
  %351 = load i32, ptr %350, align 4, !tbaa !5
  call void @_Z6updateiii(i32 noundef %348, i32 noundef %349, i32 noundef %351)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %352

352:                                              ; preds = %324, %323
  %353 = load i32, ptr %22, align 4, !tbaa !5
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %22, align 4, !tbaa !5
  br label %311, !llvm.loop !33

355:                                              ; preds = %315
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 2, ptr %27, align 4, !tbaa !5
  br label %356

356:                                              ; preds = %367, %355
  %357 = load i32, ptr %27, align 4, !tbaa !5
  %358 = load i32, ptr @n, align 4, !tbaa !5
  %359 = icmp sle i32 %357, %358
  br i1 %359, label %361, label %360

360:                                              ; preds = %356
  store i32 27, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %370

361:                                              ; preds = %356
  %362 = load i32, ptr %27, align 4, !tbaa !5
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [100001 x i32], ptr @ans, i64 0, i64 %363
  %365 = load i32, ptr %364, align 4, !tbaa !5
  %366 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %365)
  br label %367

367:                                              ; preds = %361
  %368 = load i32, ptr %27, align 4, !tbaa !5
  %369 = add nsw i32 %368, 1
  store i32 %369, ptr %27, align 4, !tbaa !5
  br label %356, !llvm.loop !34

370:                                              ; preds = %360
  ret i32 0

371:                                              ; preds = %150
  unreachable
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP4EdgeEvT_S2_(ptr noundef, ptr noundef) #7

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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, !6, i64 8, !6, i64 12, !6, i64 16}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 12}
!14 = !{!10, !6, i64 16}
!15 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 4, !5}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !6, i64 4}
!19 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !17}
!25 = !{!26, !26, i64 0}
!26 = !{!"any pointer", !7, i64 0}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}
!34 = distinct !{!34, !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, i32, i32, i32 }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }

@e = external dso_local global [400002 x %struct.Edge], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@pre = external dso_local local_unnamed_addr global [100001 x i32], align 16
@dis = external dso_local global [100001 x i32], align 16
@dep = external dso_local local_unnamed_addr global [100001 x i32], align 16
@fa = external dso_local local_unnamed_addr global [100001 x [17 x i32]], align 16
@nxt = external dso_local local_unnamed_addr global [100001 x i32], align 16
@ans = external dso_local local_unnamed_addr global [100001 x i32], align 16
@Q = external dso_local global %"class.std::priority_queue", align 8
@vis = external dso_local local_unnamed_addr global [100001 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 8
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400004) @pre, i8 -1, i64 400004, i1 false)
  %8 = load i32, ptr @m, align 4, !tbaa !5
  %9 = add nsw i32 %8, -1
  store i32 %9, ptr @m, align 4, !tbaa !5
  %.not94 = icmp eq i32 %8, 0
  br i1 %.not94, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %11 = load i32, ptr %1, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [100001 x i32], ptr @pre, i64 0, i64 %12
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = load i32, ptr @tot, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %18
  store i32 %14, ptr %19, align 4, !tbaa !5
  %.sroa.467.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 4
  store i32 %11, ptr %.sroa.467.0..sroa_idx, align 4, !tbaa !5
  %.sroa.568.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  store i32 %15, ptr %.sroa.568.0..sroa_idx, align 4, !tbaa !5
  %.sroa.669.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 12
  store i32 %16, ptr %.sroa.669.0..sroa_idx, align 4, !tbaa !5
  %.sroa.770.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 16
  store i32 0, ptr %.sroa.770.0..sroa_idx, align 4, !tbaa !5
  %20 = add nsw i32 %17, 1
  store i32 %17, ptr %13, align 4, !tbaa !5
  %21 = sext i32 %15 to i64
  %22 = getelementptr inbounds [100001 x i32], ptr @pre, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = sext i32 %20 to i64
  %25 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %24
  store i32 %23, ptr %25, align 4, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %25, i64 4
  store i32 %15, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %25, i64 8
  store i32 %11, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !5
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %25, i64 12
  store i32 %16, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !5
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %25, i64 16
  store i32 0, ptr %.sroa.7.0..sroa_idx, align 4, !tbaa !5
  %26 = add nsw i32 %17, 2
  store i32 %26, ptr @tot, align 4, !tbaa !5
  store i32 %20, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %27 = load i32, ptr @m, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr @m, align 4, !tbaa !5
  %.not = icmp eq i32 %27, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400004) @dis, i8 63, i64 400004, i1 false)
  store i32 0, ptr getelementptr inbounds (i8, ptr @dis, i64 4), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 1, ptr %5, align 4, !tbaa !5
  %29 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @dis, i64 4), ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %29, ptr %4, align 8
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %30 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %30, label %.preheader93, label %.lr.ph101

.preheader93:                                     ; preds = %.loopexit, %._crit_edge
  %31 = load i32, ptr @n, align 4, !tbaa !5
  %.not81108 = icmp slt i32 %31, 1
  br i1 %.not81108, label %.preheader92.thread, label %.lr.ph110.preheader

.preheader92.thread:                              ; preds = %.preheader93
  store i32 1, ptr getelementptr inbounds (i8, ptr @dep, i64 4), align 4, !tbaa !5
  br label %.split.us

.lr.ph110.preheader:                              ; preds = %.preheader93
  %32 = add nuw i32 %31, 1
  %wide.trip.count = zext i32 %32 to i64
  br label %.lr.ph110

.lr.ph101:                                        ; preds = %._crit_edge, %.loopexit
  %33 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %34 = getelementptr inbounds i8, ptr %33, i64 4
  %35 = load i32, ptr %34, align 4, !tbaa !11
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [100001 x i8], ptr @vis, i64 0, i64 %36
  %38 = load i8, ptr %37, align 1, !tbaa !13, !range !15, !noundef !16
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %.loopexit, label %40, !llvm.loop !17

40:                                               ; preds = %.lr.ph101
  store i8 1, ptr %37, align 1, !tbaa !13
  %41 = getelementptr inbounds [100001 x i32], ptr @pre, i64 0, i64 %36
  %.07195 = load i32, ptr %41, align 4, !tbaa !5
  %.not9096 = icmp eq i32 %.07195, -1
  br i1 %.not9096, label %.loopexit, label %.lr.ph99

.lr.ph99:                                         ; preds = %40
  %42 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %36
  br label %43

43:                                               ; preds = %.lr.ph99, %58
  %.07197 = phi i32 [ %.07195, %.lr.ph99 ], [ %.071, %58 ]
  %44 = sext i32 %.07197 to i64
  %45 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %44
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = getelementptr inbounds i8, ptr %45, i64 12
  %48 = load i32, ptr %46, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = load i32, ptr %42, align 4, !tbaa !5
  %53 = load i32, ptr %47, align 4, !tbaa !5
  %54 = add nsw i32 %53, %52
  %55 = icmp sgt i32 %51, %54
  br i1 %55, label %56, label %58

56:                                               ; preds = %43
  store i32 %54, ptr %50, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %57 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 4 dereferenceable(4) %46)
  store i64 %57, ptr %6, align 8
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %58

58:                                               ; preds = %56, %43
  %.071 = load i32, ptr %45, align 4, !tbaa !5
  %.not90 = icmp eq i32 %.071, -1
  br i1 %.not90, label %.loopexit, label %43, !llvm.loop !18

.loopexit:                                        ; preds = %58, %40, %.lr.ph101
  %59 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %59, label %.preheader93, label %.lr.ph101

._crit_edge111:                                   ; preds = %._crit_edge107
  store i32 1, ptr getelementptr inbounds (i8, ptr @dep, i64 4), align 4, !tbaa !5
  %.not82112 = icmp eq i32 %31, 1
  br i1 %.not82112, label %.preheader92, label %.lr.ph115

.lr.ph110:                                        ; preds = %.lr.ph110.preheader, %._crit_edge107
  %indvars.iv = phi i64 [ 1, %.lr.ph110.preheader ], [ %indvars.iv.next, %._crit_edge107 ]
  %60 = getelementptr inbounds [100001 x i32], ptr @nxt, i64 0, i64 %indvars.iv
  %61 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %61, ptr %60, align 4, !tbaa !5
  %62 = getelementptr inbounds [100001 x i32], ptr @pre, i64 0, i64 %indvars.iv
  %.073102 = load i32, ptr %62, align 4, !tbaa !5
  %.not87103 = icmp eq i32 %.073102, -1
  br i1 %.not87103, label %._crit_edge107, label %.lr.ph106

.lr.ph106:                                        ; preds = %.lr.ph110
  %63 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %indvars.iv
  %64 = load i32, ptr %63, align 4, !tbaa !5
  br label %65

._crit_edge107:                                   ; preds = %85, %.lr.ph110
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge111, label %.lr.ph110, !llvm.loop !19

65:                                               ; preds = %.lr.ph106, %85
  %.073104 = phi i32 [ %.073102, %.lr.ph106 ], [ %.073, %85 ]
  %66 = sext i32 %.073104 to i64
  %67 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %66
  %68 = getelementptr inbounds i8, ptr %67, i64 8
  %69 = getelementptr inbounds i8, ptr %67, i64 12
  %70 = load i32, ptr %68, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = load i32, ptr %69, align 4, !tbaa !5
  %75 = add nsw i32 %74, %64
  %76 = icmp eq i32 %73, %75
  br i1 %76, label %77, label %79

77:                                               ; preds = %65
  %78 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %71
  store i32 %61, ptr %78, align 4, !tbaa !5
  br label %85

79:                                               ; preds = %65
  %80 = add i32 %74, %73
  %.not88 = icmp eq i32 %64, %80
  %81 = and i32 %.073104, 1
  %.not89 = icmp eq i32 %81, 0
  %or.cond = or i1 %.not89, %.not88
  br i1 %or.cond, label %85, label %82

82:                                               ; preds = %79
  %83 = add i32 %80, %64
  %84 = getelementptr inbounds i8, ptr %67, i64 16
  store i32 %83, ptr %84, align 4, !tbaa !20
  br label %85

85:                                               ; preds = %79, %82, %77
  %.073 = load i32, ptr %67, align 4, !tbaa !5
  %.not87 = icmp eq i32 %.073, -1
  br i1 %.not87, label %._crit_edge107, label %65, !llvm.loop !22

.preheader92:                                     ; preds = %95, %._crit_edge111
  %.lcssa = phi i32 [ %31, %._crit_edge111 ], [ %96, %95 ]
  %.not85116 = icmp slt i32 %.lcssa, 1
  br i1 %.not85116, label %.split.us, label %.preheader91.preheader

.preheader91.preheader:                           ; preds = %.preheader92
  %86 = zext nneg i32 %.lcssa to i64
  %87 = zext nneg i32 %.lcssa to i64
  %88 = add nsw i64 %87, -1
  %xtraiter = and i64 %86, 1
  %89 = icmp eq i64 %88, 0
  br i1 %89, label %._crit_edge119.preheader.unr-lcssa, label %.preheader91.preheader.new

.preheader91.preheader.new:                       ; preds = %.preheader91.preheader
  %unroll_iter = and i64 %86, 2147483646
  br label %387

.lr.ph115:                                        ; preds = %._crit_edge111, %95
  %90 = phi i32 [ %96, %95 ], [ %31, %._crit_edge111 ]
  %indvars.iv131 = phi i64 [ %indvars.iv.next132, %95 ], [ 2, %._crit_edge111 ]
  %91 = getelementptr inbounds [100001 x i32], ptr @dep, i64 0, i64 %indvars.iv131
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %.not86 = icmp eq i32 %92, 0
  br i1 %.not86, label %93, label %95

93:                                               ; preds = %.lr.ph115
  %94 = trunc nuw nsw i64 %indvars.iv131 to i32
  call void @_Z3dfsi(i32 noundef %94)
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %.lr.ph115, %93
  %96 = phi i32 [ %90, %.lr.ph115 ], [ %.pre, %93 ]
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %97 = sext i32 %96 to i64
  %.not82.not = icmp slt i64 %indvars.iv131, %97
  br i1 %.not82.not, label %.lr.ph115, label %.preheader92, !llvm.loop !23

.split.us.loopexit.unr-lcssa:                     ; preds = %._crit_edge119.14, %._crit_edge119.14.preheader
  %indvars.iv134.15.unr = phi i64 [ 1, %._crit_edge119.14.preheader ], [ %indvars.iv.next135.15.1, %._crit_edge119.14 ]
  %lcmp.mod216.not = icmp eq i64 %xtraiter215, 0
  br i1 %lcmp.mod216.not, label %.split.us, label %._crit_edge119.14.epil

._crit_edge119.14.epil:                           ; preds = %.split.us.loopexit.unr-lcssa
  %98 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.15.unr, i64 15
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %100, i64 15
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.15.unr, i64 16
  store i32 %102, ptr %103, align 4, !tbaa !5
  br label %.split.us

.split.us:                                        ; preds = %._crit_edge119.14.epil, %.split.us.loopexit.unr-lcssa, %.preheader92, %.preheader92.thread
  %104 = load i32, ptr @tot, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds %struct.Edge, ptr @e, i64 %105
  call void @_ZSt4sortIP4EdgeEvT_S2_(ptr noundef nonnull @e, ptr noundef nonnull %106)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400004) @ans, i8 -1, i64 400004, i1 false)
  %107 = load i32, ptr @tot, align 4, !tbaa !5
  %108 = icmp sgt i32 %107, 0
  br i1 %108, label %.lr.ph123, label %.preheader

._crit_edge119:                                   ; preds = %._crit_edge119, %._crit_edge119.preheader.new
  %indvars.iv134.1 = phi i64 [ 1, %._crit_edge119.preheader.new ], [ %indvars.iv.next135.1.1, %._crit_edge119 ]
  %niter161 = phi i64 [ 0, %._crit_edge119.preheader.new ], [ %niter161.next.1, %._crit_edge119 ]
  %109 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.1, i64 1
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %111, i64 1
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.1, i64 2
  store i32 %113, ptr %114, align 4, !tbaa !5
  %indvars.iv.next135.1 = add nuw nsw i64 %indvars.iv134.1, 1
  %115 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.1, i64 1
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %117, i64 1
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.1, i64 2
  store i32 %119, ptr %120, align 4, !tbaa !5
  %indvars.iv.next135.1.1 = add nuw nsw i64 %indvars.iv134.1, 2
  %niter161.next.1 = add i64 %niter161, 2
  %niter161.ncmp.1 = icmp eq i64 %niter161.next.1, %unroll_iter160
  br i1 %niter161.ncmp.1, label %._crit_edge119.1.preheader.unr-lcssa, label %._crit_edge119, !llvm.loop !24

._crit_edge119.1.preheader.unr-lcssa:             ; preds = %._crit_edge119, %._crit_edge119.preheader
  %indvars.iv134.1.unr = phi i64 [ 1, %._crit_edge119.preheader ], [ %indvars.iv.next135.1.1, %._crit_edge119 ]
  %lcmp.mod159.not = icmp eq i64 %xtraiter158, 0
  br i1 %lcmp.mod159.not, label %._crit_edge119.1.preheader, label %._crit_edge119.epil

._crit_edge119.epil:                              ; preds = %._crit_edge119.1.preheader.unr-lcssa
  %121 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.1.unr, i64 1
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %123, i64 1
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.1.unr, i64 2
  store i32 %125, ptr %126, align 4, !tbaa !5
  br label %._crit_edge119.1.preheader

._crit_edge119.1.preheader:                       ; preds = %._crit_edge119.1.preheader.unr-lcssa, %._crit_edge119.epil
  %xtraiter163 = and i64 %86, 1
  %127 = icmp eq i64 %88, 0
  br i1 %127, label %._crit_edge119.2.preheader.unr-lcssa, label %._crit_edge119.1.preheader.new

._crit_edge119.1.preheader.new:                   ; preds = %._crit_edge119.1.preheader
  %unroll_iter165 = and i64 %86, 2147483646
  br label %._crit_edge119.1

._crit_edge119.1:                                 ; preds = %._crit_edge119.1, %._crit_edge119.1.preheader.new
  %indvars.iv134.2 = phi i64 [ 1, %._crit_edge119.1.preheader.new ], [ %indvars.iv.next135.2.1, %._crit_edge119.1 ]
  %niter166 = phi i64 [ 0, %._crit_edge119.1.preheader.new ], [ %niter166.next.1, %._crit_edge119.1 ]
  %128 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.2, i64 2
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %130, i64 2
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.2, i64 3
  store i32 %132, ptr %133, align 4, !tbaa !5
  %indvars.iv.next135.2 = add nuw nsw i64 %indvars.iv134.2, 1
  %134 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.2, i64 2
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %136, i64 2
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.2, i64 3
  store i32 %138, ptr %139, align 4, !tbaa !5
  %indvars.iv.next135.2.1 = add nuw nsw i64 %indvars.iv134.2, 2
  %niter166.next.1 = add i64 %niter166, 2
  %niter166.ncmp.1 = icmp eq i64 %niter166.next.1, %unroll_iter165
  br i1 %niter166.ncmp.1, label %._crit_edge119.2.preheader.unr-lcssa, label %._crit_edge119.1, !llvm.loop !24

._crit_edge119.2.preheader.unr-lcssa:             ; preds = %._crit_edge119.1, %._crit_edge119.1.preheader
  %indvars.iv134.2.unr = phi i64 [ 1, %._crit_edge119.1.preheader ], [ %indvars.iv.next135.2.1, %._crit_edge119.1 ]
  %lcmp.mod164.not = icmp eq i64 %xtraiter163, 0
  br i1 %lcmp.mod164.not, label %._crit_edge119.2.preheader, label %._crit_edge119.1.epil

._crit_edge119.1.epil:                            ; preds = %._crit_edge119.2.preheader.unr-lcssa
  %140 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.2.unr, i64 2
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %142, i64 2
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.2.unr, i64 3
  store i32 %144, ptr %145, align 4, !tbaa !5
  br label %._crit_edge119.2.preheader

._crit_edge119.2.preheader:                       ; preds = %._crit_edge119.2.preheader.unr-lcssa, %._crit_edge119.1.epil
  %xtraiter167 = and i64 %86, 1
  %146 = icmp eq i64 %88, 0
  br i1 %146, label %._crit_edge119.3.preheader.unr-lcssa, label %._crit_edge119.2.preheader.new

._crit_edge119.2.preheader.new:                   ; preds = %._crit_edge119.2.preheader
  %unroll_iter169 = and i64 %86, 2147483646
  br label %._crit_edge119.2

._crit_edge119.2:                                 ; preds = %._crit_edge119.2, %._crit_edge119.2.preheader.new
  %indvars.iv134.3 = phi i64 [ 1, %._crit_edge119.2.preheader.new ], [ %indvars.iv.next135.3.1, %._crit_edge119.2 ]
  %niter170 = phi i64 [ 0, %._crit_edge119.2.preheader.new ], [ %niter170.next.1, %._crit_edge119.2 ]
  %147 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.3, i64 3
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %149, i64 3
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.3, i64 4
  store i32 %151, ptr %152, align 4, !tbaa !5
  %indvars.iv.next135.3 = add nuw nsw i64 %indvars.iv134.3, 1
  %153 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.3, i64 3
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %155, i64 3
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.3, i64 4
  store i32 %157, ptr %158, align 4, !tbaa !5
  %indvars.iv.next135.3.1 = add nuw nsw i64 %indvars.iv134.3, 2
  %niter170.next.1 = add i64 %niter170, 2
  %niter170.ncmp.1 = icmp eq i64 %niter170.next.1, %unroll_iter169
  br i1 %niter170.ncmp.1, label %._crit_edge119.3.preheader.unr-lcssa, label %._crit_edge119.2, !llvm.loop !24

._crit_edge119.3.preheader.unr-lcssa:             ; preds = %._crit_edge119.2, %._crit_edge119.2.preheader
  %indvars.iv134.3.unr = phi i64 [ 1, %._crit_edge119.2.preheader ], [ %indvars.iv.next135.3.1, %._crit_edge119.2 ]
  %lcmp.mod168.not = icmp eq i64 %xtraiter167, 0
  br i1 %lcmp.mod168.not, label %._crit_edge119.3.preheader, label %._crit_edge119.2.epil

._crit_edge119.2.epil:                            ; preds = %._crit_edge119.3.preheader.unr-lcssa
  %159 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.3.unr, i64 3
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %161, i64 3
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.3.unr, i64 4
  store i32 %163, ptr %164, align 4, !tbaa !5
  br label %._crit_edge119.3.preheader

._crit_edge119.3.preheader:                       ; preds = %._crit_edge119.3.preheader.unr-lcssa, %._crit_edge119.2.epil
  %xtraiter171 = and i64 %86, 1
  %165 = icmp eq i64 %88, 0
  br i1 %165, label %._crit_edge119.4.preheader.unr-lcssa, label %._crit_edge119.3.preheader.new

._crit_edge119.3.preheader.new:                   ; preds = %._crit_edge119.3.preheader
  %unroll_iter173 = and i64 %86, 2147483646
  br label %._crit_edge119.3

._crit_edge119.3:                                 ; preds = %._crit_edge119.3, %._crit_edge119.3.preheader.new
  %indvars.iv134.4 = phi i64 [ 1, %._crit_edge119.3.preheader.new ], [ %indvars.iv.next135.4.1, %._crit_edge119.3 ]
  %niter174 = phi i64 [ 0, %._crit_edge119.3.preheader.new ], [ %niter174.next.1, %._crit_edge119.3 ]
  %166 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.4, i64 4
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %168, i64 4
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.4, i64 5
  store i32 %170, ptr %171, align 4, !tbaa !5
  %indvars.iv.next135.4 = add nuw nsw i64 %indvars.iv134.4, 1
  %172 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.4, i64 4
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %174, i64 4
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.4, i64 5
  store i32 %176, ptr %177, align 4, !tbaa !5
  %indvars.iv.next135.4.1 = add nuw nsw i64 %indvars.iv134.4, 2
  %niter174.next.1 = add i64 %niter174, 2
  %niter174.ncmp.1 = icmp eq i64 %niter174.next.1, %unroll_iter173
  br i1 %niter174.ncmp.1, label %._crit_edge119.4.preheader.unr-lcssa, label %._crit_edge119.3, !llvm.loop !24

._crit_edge119.4.preheader.unr-lcssa:             ; preds = %._crit_edge119.3, %._crit_edge119.3.preheader
  %indvars.iv134.4.unr = phi i64 [ 1, %._crit_edge119.3.preheader ], [ %indvars.iv.next135.4.1, %._crit_edge119.3 ]
  %lcmp.mod172.not = icmp eq i64 %xtraiter171, 0
  br i1 %lcmp.mod172.not, label %._crit_edge119.4.preheader, label %._crit_edge119.3.epil

._crit_edge119.3.epil:                            ; preds = %._crit_edge119.4.preheader.unr-lcssa
  %178 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.4.unr, i64 4
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %180, i64 4
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.4.unr, i64 5
  store i32 %182, ptr %183, align 4, !tbaa !5
  br label %._crit_edge119.4.preheader

._crit_edge119.4.preheader:                       ; preds = %._crit_edge119.4.preheader.unr-lcssa, %._crit_edge119.3.epil
  %xtraiter175 = and i64 %86, 1
  %184 = icmp eq i64 %88, 0
  br i1 %184, label %._crit_edge119.5.preheader.unr-lcssa, label %._crit_edge119.4.preheader.new

._crit_edge119.4.preheader.new:                   ; preds = %._crit_edge119.4.preheader
  %unroll_iter177 = and i64 %86, 2147483646
  br label %._crit_edge119.4

._crit_edge119.4:                                 ; preds = %._crit_edge119.4, %._crit_edge119.4.preheader.new
  %indvars.iv134.5 = phi i64 [ 1, %._crit_edge119.4.preheader.new ], [ %indvars.iv.next135.5.1, %._crit_edge119.4 ]
  %niter178 = phi i64 [ 0, %._crit_edge119.4.preheader.new ], [ %niter178.next.1, %._crit_edge119.4 ]
  %185 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.5, i64 5
  %186 = load i32, ptr %185, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %187, i64 5
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.5, i64 6
  store i32 %189, ptr %190, align 4, !tbaa !5
  %indvars.iv.next135.5 = add nuw nsw i64 %indvars.iv134.5, 1
  %191 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.5, i64 5
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %193, i64 5
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.5, i64 6
  store i32 %195, ptr %196, align 4, !tbaa !5
  %indvars.iv.next135.5.1 = add nuw nsw i64 %indvars.iv134.5, 2
  %niter178.next.1 = add i64 %niter178, 2
  %niter178.ncmp.1 = icmp eq i64 %niter178.next.1, %unroll_iter177
  br i1 %niter178.ncmp.1, label %._crit_edge119.5.preheader.unr-lcssa, label %._crit_edge119.4, !llvm.loop !24

._crit_edge119.5.preheader.unr-lcssa:             ; preds = %._crit_edge119.4, %._crit_edge119.4.preheader
  %indvars.iv134.5.unr = phi i64 [ 1, %._crit_edge119.4.preheader ], [ %indvars.iv.next135.5.1, %._crit_edge119.4 ]
  %lcmp.mod176.not = icmp eq i64 %xtraiter175, 0
  br i1 %lcmp.mod176.not, label %._crit_edge119.5.preheader, label %._crit_edge119.4.epil

._crit_edge119.4.epil:                            ; preds = %._crit_edge119.5.preheader.unr-lcssa
  %197 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.5.unr, i64 5
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %199, i64 5
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.5.unr, i64 6
  store i32 %201, ptr %202, align 4, !tbaa !5
  br label %._crit_edge119.5.preheader

._crit_edge119.5.preheader:                       ; preds = %._crit_edge119.5.preheader.unr-lcssa, %._crit_edge119.4.epil
  %xtraiter179 = and i64 %86, 1
  %203 = icmp eq i64 %88, 0
  br i1 %203, label %._crit_edge119.6.preheader.unr-lcssa, label %._crit_edge119.5.preheader.new

._crit_edge119.5.preheader.new:                   ; preds = %._crit_edge119.5.preheader
  %unroll_iter181 = and i64 %86, 2147483646
  br label %._crit_edge119.5

._crit_edge119.5:                                 ; preds = %._crit_edge119.5, %._crit_edge119.5.preheader.new
  %indvars.iv134.6 = phi i64 [ 1, %._crit_edge119.5.preheader.new ], [ %indvars.iv.next135.6.1, %._crit_edge119.5 ]
  %niter182 = phi i64 [ 0, %._crit_edge119.5.preheader.new ], [ %niter182.next.1, %._crit_edge119.5 ]
  %204 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.6, i64 6
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %206, i64 6
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.6, i64 7
  store i32 %208, ptr %209, align 4, !tbaa !5
  %indvars.iv.next135.6 = add nuw nsw i64 %indvars.iv134.6, 1
  %210 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.6, i64 6
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %212, i64 6
  %214 = load i32, ptr %213, align 4, !tbaa !5
  %215 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.6, i64 7
  store i32 %214, ptr %215, align 4, !tbaa !5
  %indvars.iv.next135.6.1 = add nuw nsw i64 %indvars.iv134.6, 2
  %niter182.next.1 = add i64 %niter182, 2
  %niter182.ncmp.1 = icmp eq i64 %niter182.next.1, %unroll_iter181
  br i1 %niter182.ncmp.1, label %._crit_edge119.6.preheader.unr-lcssa, label %._crit_edge119.5, !llvm.loop !24

._crit_edge119.6.preheader.unr-lcssa:             ; preds = %._crit_edge119.5, %._crit_edge119.5.preheader
  %indvars.iv134.6.unr = phi i64 [ 1, %._crit_edge119.5.preheader ], [ %indvars.iv.next135.6.1, %._crit_edge119.5 ]
  %lcmp.mod180.not = icmp eq i64 %xtraiter179, 0
  br i1 %lcmp.mod180.not, label %._crit_edge119.6.preheader, label %._crit_edge119.5.epil

._crit_edge119.5.epil:                            ; preds = %._crit_edge119.6.preheader.unr-lcssa
  %216 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.6.unr, i64 6
  %217 = load i32, ptr %216, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %218, i64 6
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.6.unr, i64 7
  store i32 %220, ptr %221, align 4, !tbaa !5
  br label %._crit_edge119.6.preheader

._crit_edge119.6.preheader:                       ; preds = %._crit_edge119.6.preheader.unr-lcssa, %._crit_edge119.5.epil
  %xtraiter183 = and i64 %86, 1
  %222 = icmp eq i64 %88, 0
  br i1 %222, label %._crit_edge119.7.preheader.unr-lcssa, label %._crit_edge119.6.preheader.new

._crit_edge119.6.preheader.new:                   ; preds = %._crit_edge119.6.preheader
  %unroll_iter185 = and i64 %86, 2147483646
  br label %._crit_edge119.6

._crit_edge119.6:                                 ; preds = %._crit_edge119.6, %._crit_edge119.6.preheader.new
  %indvars.iv134.7 = phi i64 [ 1, %._crit_edge119.6.preheader.new ], [ %indvars.iv.next135.7.1, %._crit_edge119.6 ]
  %niter186 = phi i64 [ 0, %._crit_edge119.6.preheader.new ], [ %niter186.next.1, %._crit_edge119.6 ]
  %223 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.7, i64 7
  %224 = load i32, ptr %223, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %225, i64 7
  %227 = load i32, ptr %226, align 4, !tbaa !5
  %228 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.7, i64 8
  store i32 %227, ptr %228, align 4, !tbaa !5
  %indvars.iv.next135.7 = add nuw nsw i64 %indvars.iv134.7, 1
  %229 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.7, i64 7
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %231, i64 7
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.7, i64 8
  store i32 %233, ptr %234, align 4, !tbaa !5
  %indvars.iv.next135.7.1 = add nuw nsw i64 %indvars.iv134.7, 2
  %niter186.next.1 = add i64 %niter186, 2
  %niter186.ncmp.1 = icmp eq i64 %niter186.next.1, %unroll_iter185
  br i1 %niter186.ncmp.1, label %._crit_edge119.7.preheader.unr-lcssa, label %._crit_edge119.6, !llvm.loop !24

._crit_edge119.7.preheader.unr-lcssa:             ; preds = %._crit_edge119.6, %._crit_edge119.6.preheader
  %indvars.iv134.7.unr = phi i64 [ 1, %._crit_edge119.6.preheader ], [ %indvars.iv.next135.7.1, %._crit_edge119.6 ]
  %lcmp.mod184.not = icmp eq i64 %xtraiter183, 0
  br i1 %lcmp.mod184.not, label %._crit_edge119.7.preheader, label %._crit_edge119.6.epil

._crit_edge119.6.epil:                            ; preds = %._crit_edge119.7.preheader.unr-lcssa
  %235 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.7.unr, i64 7
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %237, i64 7
  %239 = load i32, ptr %238, align 4, !tbaa !5
  %240 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.7.unr, i64 8
  store i32 %239, ptr %240, align 4, !tbaa !5
  br label %._crit_edge119.7.preheader

._crit_edge119.7.preheader:                       ; preds = %._crit_edge119.7.preheader.unr-lcssa, %._crit_edge119.6.epil
  %xtraiter187 = and i64 %86, 1
  %241 = icmp eq i64 %88, 0
  br i1 %241, label %._crit_edge119.8.preheader.unr-lcssa, label %._crit_edge119.7.preheader.new

._crit_edge119.7.preheader.new:                   ; preds = %._crit_edge119.7.preheader
  %unroll_iter189 = and i64 %86, 2147483646
  br label %._crit_edge119.7

._crit_edge119.7:                                 ; preds = %._crit_edge119.7, %._crit_edge119.7.preheader.new
  %indvars.iv134.8 = phi i64 [ 1, %._crit_edge119.7.preheader.new ], [ %indvars.iv.next135.8.1, %._crit_edge119.7 ]
  %niter190 = phi i64 [ 0, %._crit_edge119.7.preheader.new ], [ %niter190.next.1, %._crit_edge119.7 ]
  %242 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.8, i64 8
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %244, i64 8
  %246 = load i32, ptr %245, align 4, !tbaa !5
  %247 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.8, i64 9
  store i32 %246, ptr %247, align 4, !tbaa !5
  %indvars.iv.next135.8 = add nuw nsw i64 %indvars.iv134.8, 1
  %248 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.8, i64 8
  %249 = load i32, ptr %248, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %250, i64 8
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.8, i64 9
  store i32 %252, ptr %253, align 4, !tbaa !5
  %indvars.iv.next135.8.1 = add nuw nsw i64 %indvars.iv134.8, 2
  %niter190.next.1 = add i64 %niter190, 2
  %niter190.ncmp.1 = icmp eq i64 %niter190.next.1, %unroll_iter189
  br i1 %niter190.ncmp.1, label %._crit_edge119.8.preheader.unr-lcssa, label %._crit_edge119.7, !llvm.loop !24

._crit_edge119.8.preheader.unr-lcssa:             ; preds = %._crit_edge119.7, %._crit_edge119.7.preheader
  %indvars.iv134.8.unr = phi i64 [ 1, %._crit_edge119.7.preheader ], [ %indvars.iv.next135.8.1, %._crit_edge119.7 ]
  %lcmp.mod188.not = icmp eq i64 %xtraiter187, 0
  br i1 %lcmp.mod188.not, label %._crit_edge119.8.preheader, label %._crit_edge119.7.epil

._crit_edge119.7.epil:                            ; preds = %._crit_edge119.8.preheader.unr-lcssa
  %254 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.8.unr, i64 8
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %256, i64 8
  %258 = load i32, ptr %257, align 4, !tbaa !5
  %259 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.8.unr, i64 9
  store i32 %258, ptr %259, align 4, !tbaa !5
  br label %._crit_edge119.8.preheader

._crit_edge119.8.preheader:                       ; preds = %._crit_edge119.8.preheader.unr-lcssa, %._crit_edge119.7.epil
  %xtraiter191 = and i64 %86, 1
  %260 = icmp eq i64 %88, 0
  br i1 %260, label %._crit_edge119.9.preheader.unr-lcssa, label %._crit_edge119.8.preheader.new

._crit_edge119.8.preheader.new:                   ; preds = %._crit_edge119.8.preheader
  %unroll_iter193 = and i64 %86, 2147483646
  br label %._crit_edge119.8

._crit_edge119.8:                                 ; preds = %._crit_edge119.8, %._crit_edge119.8.preheader.new
  %indvars.iv134.9 = phi i64 [ 1, %._crit_edge119.8.preheader.new ], [ %indvars.iv.next135.9.1, %._crit_edge119.8 ]
  %niter194 = phi i64 [ 0, %._crit_edge119.8.preheader.new ], [ %niter194.next.1, %._crit_edge119.8 ]
  %261 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.9, i64 9
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %263, i64 9
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %266 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.9, i64 10
  store i32 %265, ptr %266, align 4, !tbaa !5
  %indvars.iv.next135.9 = add nuw nsw i64 %indvars.iv134.9, 1
  %267 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.9, i64 9
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %269, i64 9
  %271 = load i32, ptr %270, align 4, !tbaa !5
  %272 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.9, i64 10
  store i32 %271, ptr %272, align 4, !tbaa !5
  %indvars.iv.next135.9.1 = add nuw nsw i64 %indvars.iv134.9, 2
  %niter194.next.1 = add i64 %niter194, 2
  %niter194.ncmp.1 = icmp eq i64 %niter194.next.1, %unroll_iter193
  br i1 %niter194.ncmp.1, label %._crit_edge119.9.preheader.unr-lcssa, label %._crit_edge119.8, !llvm.loop !24

._crit_edge119.9.preheader.unr-lcssa:             ; preds = %._crit_edge119.8, %._crit_edge119.8.preheader
  %indvars.iv134.9.unr = phi i64 [ 1, %._crit_edge119.8.preheader ], [ %indvars.iv.next135.9.1, %._crit_edge119.8 ]
  %lcmp.mod192.not = icmp eq i64 %xtraiter191, 0
  br i1 %lcmp.mod192.not, label %._crit_edge119.9.preheader, label %._crit_edge119.8.epil

._crit_edge119.8.epil:                            ; preds = %._crit_edge119.9.preheader.unr-lcssa
  %273 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.9.unr, i64 9
  %274 = load i32, ptr %273, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %275, i64 9
  %277 = load i32, ptr %276, align 4, !tbaa !5
  %278 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.9.unr, i64 10
  store i32 %277, ptr %278, align 4, !tbaa !5
  br label %._crit_edge119.9.preheader

._crit_edge119.9.preheader:                       ; preds = %._crit_edge119.9.preheader.unr-lcssa, %._crit_edge119.8.epil
  %xtraiter195 = and i64 %86, 1
  %279 = icmp eq i64 %88, 0
  br i1 %279, label %._crit_edge119.10.preheader.unr-lcssa, label %._crit_edge119.9.preheader.new

._crit_edge119.9.preheader.new:                   ; preds = %._crit_edge119.9.preheader
  %unroll_iter197 = and i64 %86, 2147483646
  br label %._crit_edge119.9

._crit_edge119.9:                                 ; preds = %._crit_edge119.9, %._crit_edge119.9.preheader.new
  %indvars.iv134.10 = phi i64 [ 1, %._crit_edge119.9.preheader.new ], [ %indvars.iv.next135.10.1, %._crit_edge119.9 ]
  %niter198 = phi i64 [ 0, %._crit_edge119.9.preheader.new ], [ %niter198.next.1, %._crit_edge119.9 ]
  %280 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.10, i64 10
  %281 = load i32, ptr %280, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %282, i64 10
  %284 = load i32, ptr %283, align 4, !tbaa !5
  %285 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.10, i64 11
  store i32 %284, ptr %285, align 4, !tbaa !5
  %indvars.iv.next135.10 = add nuw nsw i64 %indvars.iv134.10, 1
  %286 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.10, i64 10
  %287 = load i32, ptr %286, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %288, i64 10
  %290 = load i32, ptr %289, align 4, !tbaa !5
  %291 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.10, i64 11
  store i32 %290, ptr %291, align 4, !tbaa !5
  %indvars.iv.next135.10.1 = add nuw nsw i64 %indvars.iv134.10, 2
  %niter198.next.1 = add i64 %niter198, 2
  %niter198.ncmp.1 = icmp eq i64 %niter198.next.1, %unroll_iter197
  br i1 %niter198.ncmp.1, label %._crit_edge119.10.preheader.unr-lcssa, label %._crit_edge119.9, !llvm.loop !24

._crit_edge119.10.preheader.unr-lcssa:            ; preds = %._crit_edge119.9, %._crit_edge119.9.preheader
  %indvars.iv134.10.unr = phi i64 [ 1, %._crit_edge119.9.preheader ], [ %indvars.iv.next135.10.1, %._crit_edge119.9 ]
  %lcmp.mod196.not = icmp eq i64 %xtraiter195, 0
  br i1 %lcmp.mod196.not, label %._crit_edge119.10.preheader, label %._crit_edge119.9.epil

._crit_edge119.9.epil:                            ; preds = %._crit_edge119.10.preheader.unr-lcssa
  %292 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.10.unr, i64 10
  %293 = load i32, ptr %292, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %294, i64 10
  %296 = load i32, ptr %295, align 4, !tbaa !5
  %297 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.10.unr, i64 11
  store i32 %296, ptr %297, align 4, !tbaa !5
  br label %._crit_edge119.10.preheader

._crit_edge119.10.preheader:                      ; preds = %._crit_edge119.10.preheader.unr-lcssa, %._crit_edge119.9.epil
  %xtraiter199 = and i64 %86, 1
  %298 = icmp eq i64 %88, 0
  br i1 %298, label %._crit_edge119.11.preheader.unr-lcssa, label %._crit_edge119.10.preheader.new

._crit_edge119.10.preheader.new:                  ; preds = %._crit_edge119.10.preheader
  %unroll_iter201 = and i64 %86, 2147483646
  br label %._crit_edge119.10

._crit_edge119.10:                                ; preds = %._crit_edge119.10, %._crit_edge119.10.preheader.new
  %indvars.iv134.11 = phi i64 [ 1, %._crit_edge119.10.preheader.new ], [ %indvars.iv.next135.11.1, %._crit_edge119.10 ]
  %niter202 = phi i64 [ 0, %._crit_edge119.10.preheader.new ], [ %niter202.next.1, %._crit_edge119.10 ]
  %299 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.11, i64 11
  %300 = load i32, ptr %299, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %301, i64 11
  %303 = load i32, ptr %302, align 4, !tbaa !5
  %304 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.11, i64 12
  store i32 %303, ptr %304, align 4, !tbaa !5
  %indvars.iv.next135.11 = add nuw nsw i64 %indvars.iv134.11, 1
  %305 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.11, i64 11
  %306 = load i32, ptr %305, align 4, !tbaa !5
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %307, i64 11
  %309 = load i32, ptr %308, align 4, !tbaa !5
  %310 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.11, i64 12
  store i32 %309, ptr %310, align 4, !tbaa !5
  %indvars.iv.next135.11.1 = add nuw nsw i64 %indvars.iv134.11, 2
  %niter202.next.1 = add i64 %niter202, 2
  %niter202.ncmp.1 = icmp eq i64 %niter202.next.1, %unroll_iter201
  br i1 %niter202.ncmp.1, label %._crit_edge119.11.preheader.unr-lcssa, label %._crit_edge119.10, !llvm.loop !24

._crit_edge119.11.preheader.unr-lcssa:            ; preds = %._crit_edge119.10, %._crit_edge119.10.preheader
  %indvars.iv134.11.unr = phi i64 [ 1, %._crit_edge119.10.preheader ], [ %indvars.iv.next135.11.1, %._crit_edge119.10 ]
  %lcmp.mod200.not = icmp eq i64 %xtraiter199, 0
  br i1 %lcmp.mod200.not, label %._crit_edge119.11.preheader, label %._crit_edge119.10.epil

._crit_edge119.10.epil:                           ; preds = %._crit_edge119.11.preheader.unr-lcssa
  %311 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.11.unr, i64 11
  %312 = load i32, ptr %311, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %313, i64 11
  %315 = load i32, ptr %314, align 4, !tbaa !5
  %316 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.11.unr, i64 12
  store i32 %315, ptr %316, align 4, !tbaa !5
  br label %._crit_edge119.11.preheader

._crit_edge119.11.preheader:                      ; preds = %._crit_edge119.11.preheader.unr-lcssa, %._crit_edge119.10.epil
  %xtraiter203 = and i64 %86, 1
  %317 = icmp eq i64 %88, 0
  br i1 %317, label %._crit_edge119.12.preheader.unr-lcssa, label %._crit_edge119.11.preheader.new

._crit_edge119.11.preheader.new:                  ; preds = %._crit_edge119.11.preheader
  %unroll_iter205 = and i64 %86, 2147483646
  br label %._crit_edge119.11

._crit_edge119.11:                                ; preds = %._crit_edge119.11, %._crit_edge119.11.preheader.new
  %indvars.iv134.12 = phi i64 [ 1, %._crit_edge119.11.preheader.new ], [ %indvars.iv.next135.12.1, %._crit_edge119.11 ]
  %niter206 = phi i64 [ 0, %._crit_edge119.11.preheader.new ], [ %niter206.next.1, %._crit_edge119.11 ]
  %318 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.12, i64 12
  %319 = load i32, ptr %318, align 4, !tbaa !5
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %320, i64 12
  %322 = load i32, ptr %321, align 4, !tbaa !5
  %323 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.12, i64 13
  store i32 %322, ptr %323, align 4, !tbaa !5
  %indvars.iv.next135.12 = add nuw nsw i64 %indvars.iv134.12, 1
  %324 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.12, i64 12
  %325 = load i32, ptr %324, align 4, !tbaa !5
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %326, i64 12
  %328 = load i32, ptr %327, align 4, !tbaa !5
  %329 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.12, i64 13
  store i32 %328, ptr %329, align 4, !tbaa !5
  %indvars.iv.next135.12.1 = add nuw nsw i64 %indvars.iv134.12, 2
  %niter206.next.1 = add i64 %niter206, 2
  %niter206.ncmp.1 = icmp eq i64 %niter206.next.1, %unroll_iter205
  br i1 %niter206.ncmp.1, label %._crit_edge119.12.preheader.unr-lcssa, label %._crit_edge119.11, !llvm.loop !24

._crit_edge119.12.preheader.unr-lcssa:            ; preds = %._crit_edge119.11, %._crit_edge119.11.preheader
  %indvars.iv134.12.unr = phi i64 [ 1, %._crit_edge119.11.preheader ], [ %indvars.iv.next135.12.1, %._crit_edge119.11 ]
  %lcmp.mod204.not = icmp eq i64 %xtraiter203, 0
  br i1 %lcmp.mod204.not, label %._crit_edge119.12.preheader, label %._crit_edge119.11.epil

._crit_edge119.11.epil:                           ; preds = %._crit_edge119.12.preheader.unr-lcssa
  %330 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.12.unr, i64 12
  %331 = load i32, ptr %330, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %332, i64 12
  %334 = load i32, ptr %333, align 4, !tbaa !5
  %335 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.12.unr, i64 13
  store i32 %334, ptr %335, align 4, !tbaa !5
  br label %._crit_edge119.12.preheader

._crit_edge119.12.preheader:                      ; preds = %._crit_edge119.12.preheader.unr-lcssa, %._crit_edge119.11.epil
  %xtraiter207 = and i64 %86, 1
  %336 = icmp eq i64 %88, 0
  br i1 %336, label %._crit_edge119.13.preheader.unr-lcssa, label %._crit_edge119.12.preheader.new

._crit_edge119.12.preheader.new:                  ; preds = %._crit_edge119.12.preheader
  %unroll_iter209 = and i64 %86, 2147483646
  br label %._crit_edge119.12

._crit_edge119.12:                                ; preds = %._crit_edge119.12, %._crit_edge119.12.preheader.new
  %indvars.iv134.13 = phi i64 [ 1, %._crit_edge119.12.preheader.new ], [ %indvars.iv.next135.13.1, %._crit_edge119.12 ]
  %niter210 = phi i64 [ 0, %._crit_edge119.12.preheader.new ], [ %niter210.next.1, %._crit_edge119.12 ]
  %337 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.13, i64 13
  %338 = load i32, ptr %337, align 4, !tbaa !5
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %339, i64 13
  %341 = load i32, ptr %340, align 4, !tbaa !5
  %342 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.13, i64 14
  store i32 %341, ptr %342, align 4, !tbaa !5
  %indvars.iv.next135.13 = add nuw nsw i64 %indvars.iv134.13, 1
  %343 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.13, i64 13
  %344 = load i32, ptr %343, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %345, i64 13
  %347 = load i32, ptr %346, align 4, !tbaa !5
  %348 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.13, i64 14
  store i32 %347, ptr %348, align 4, !tbaa !5
  %indvars.iv.next135.13.1 = add nuw nsw i64 %indvars.iv134.13, 2
  %niter210.next.1 = add i64 %niter210, 2
  %niter210.ncmp.1 = icmp eq i64 %niter210.next.1, %unroll_iter209
  br i1 %niter210.ncmp.1, label %._crit_edge119.13.preheader.unr-lcssa, label %._crit_edge119.12, !llvm.loop !24

._crit_edge119.13.preheader.unr-lcssa:            ; preds = %._crit_edge119.12, %._crit_edge119.12.preheader
  %indvars.iv134.13.unr = phi i64 [ 1, %._crit_edge119.12.preheader ], [ %indvars.iv.next135.13.1, %._crit_edge119.12 ]
  %lcmp.mod208.not = icmp eq i64 %xtraiter207, 0
  br i1 %lcmp.mod208.not, label %._crit_edge119.13.preheader, label %._crit_edge119.12.epil

._crit_edge119.12.epil:                           ; preds = %._crit_edge119.13.preheader.unr-lcssa
  %349 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.13.unr, i64 13
  %350 = load i32, ptr %349, align 4, !tbaa !5
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %351, i64 13
  %353 = load i32, ptr %352, align 4, !tbaa !5
  %354 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.13.unr, i64 14
  store i32 %353, ptr %354, align 4, !tbaa !5
  br label %._crit_edge119.13.preheader

._crit_edge119.13.preheader:                      ; preds = %._crit_edge119.13.preheader.unr-lcssa, %._crit_edge119.12.epil
  %xtraiter211 = and i64 %86, 1
  %355 = icmp eq i64 %88, 0
  br i1 %355, label %._crit_edge119.14.preheader.unr-lcssa, label %._crit_edge119.13.preheader.new

._crit_edge119.13.preheader.new:                  ; preds = %._crit_edge119.13.preheader
  %unroll_iter213 = and i64 %86, 2147483646
  br label %._crit_edge119.13

._crit_edge119.13:                                ; preds = %._crit_edge119.13, %._crit_edge119.13.preheader.new
  %indvars.iv134.14 = phi i64 [ 1, %._crit_edge119.13.preheader.new ], [ %indvars.iv.next135.14.1, %._crit_edge119.13 ]
  %niter214 = phi i64 [ 0, %._crit_edge119.13.preheader.new ], [ %niter214.next.1, %._crit_edge119.13 ]
  %356 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.14, i64 14
  %357 = load i32, ptr %356, align 4, !tbaa !5
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %358, i64 14
  %360 = load i32, ptr %359, align 4, !tbaa !5
  %361 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.14, i64 15
  store i32 %360, ptr %361, align 4, !tbaa !5
  %indvars.iv.next135.14 = add nuw nsw i64 %indvars.iv134.14, 1
  %362 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.14, i64 14
  %363 = load i32, ptr %362, align 4, !tbaa !5
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %364, i64 14
  %366 = load i32, ptr %365, align 4, !tbaa !5
  %367 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.14, i64 15
  store i32 %366, ptr %367, align 4, !tbaa !5
  %indvars.iv.next135.14.1 = add nuw nsw i64 %indvars.iv134.14, 2
  %niter214.next.1 = add i64 %niter214, 2
  %niter214.ncmp.1 = icmp eq i64 %niter214.next.1, %unroll_iter213
  br i1 %niter214.ncmp.1, label %._crit_edge119.14.preheader.unr-lcssa, label %._crit_edge119.13, !llvm.loop !24

._crit_edge119.14.preheader.unr-lcssa:            ; preds = %._crit_edge119.13, %._crit_edge119.13.preheader
  %indvars.iv134.14.unr = phi i64 [ 1, %._crit_edge119.13.preheader ], [ %indvars.iv.next135.14.1, %._crit_edge119.13 ]
  %lcmp.mod212.not = icmp eq i64 %xtraiter211, 0
  br i1 %lcmp.mod212.not, label %._crit_edge119.14.preheader, label %._crit_edge119.13.epil

._crit_edge119.13.epil:                           ; preds = %._crit_edge119.14.preheader.unr-lcssa
  %368 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.14.unr, i64 14
  %369 = load i32, ptr %368, align 4, !tbaa !5
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %370, i64 14
  %372 = load i32, ptr %371, align 4, !tbaa !5
  %373 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.14.unr, i64 15
  store i32 %372, ptr %373, align 4, !tbaa !5
  br label %._crit_edge119.14.preheader

._crit_edge119.14.preheader:                      ; preds = %._crit_edge119.14.preheader.unr-lcssa, %._crit_edge119.13.epil
  %xtraiter215 = and i64 %86, 1
  %374 = icmp eq i64 %88, 0
  br i1 %374, label %.split.us.loopexit.unr-lcssa, label %._crit_edge119.14.preheader.new

._crit_edge119.14.preheader.new:                  ; preds = %._crit_edge119.14.preheader
  %unroll_iter217 = and i64 %86, 2147483646
  br label %._crit_edge119.14

._crit_edge119.14:                                ; preds = %._crit_edge119.14, %._crit_edge119.14.preheader.new
  %indvars.iv134.15 = phi i64 [ 1, %._crit_edge119.14.preheader.new ], [ %indvars.iv.next135.15.1, %._crit_edge119.14 ]
  %niter218 = phi i64 [ 0, %._crit_edge119.14.preheader.new ], [ %niter218.next.1, %._crit_edge119.14 ]
  %375 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.15, i64 15
  %376 = load i32, ptr %375, align 4, !tbaa !5
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %377, i64 15
  %379 = load i32, ptr %378, align 4, !tbaa !5
  %380 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.15, i64 16
  store i32 %379, ptr %380, align 4, !tbaa !5
  %indvars.iv.next135.15 = add nuw nsw i64 %indvars.iv134.15, 1
  %381 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.15, i64 15
  %382 = load i32, ptr %381, align 4, !tbaa !5
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %383, i64 15
  %385 = load i32, ptr %384, align 4, !tbaa !5
  %386 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135.15, i64 16
  store i32 %385, ptr %386, align 4, !tbaa !5
  %indvars.iv.next135.15.1 = add nuw nsw i64 %indvars.iv134.15, 2
  %niter218.next.1 = add i64 %niter218, 2
  %niter218.ncmp.1 = icmp eq i64 %niter218.next.1, %unroll_iter217
  br i1 %niter218.ncmp.1, label %.split.us.loopexit.unr-lcssa, label %._crit_edge119.14, !llvm.loop !24

387:                                              ; preds = %387, %.preheader91.preheader.new
  %indvars.iv134 = phi i64 [ 1, %.preheader91.preheader.new ], [ %indvars.iv.next135.1157, %387 ]
  %niter = phi i64 [ 0, %.preheader91.preheader.new ], [ %niter.next.1, %387 ]
  %388 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134, i64 0
  %389 = load i32, ptr %388, align 4, !tbaa !5
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %390, i64 0
  %392 = load i32, ptr %391, align 4, !tbaa !5
  %393 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134, i64 1
  store i32 %392, ptr %393, align 4, !tbaa !5
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %394 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135, i64 0
  %395 = load i32, ptr %394, align 4, !tbaa !5
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %396, i64 0
  %398 = load i32, ptr %397, align 4, !tbaa !5
  %399 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next135, i64 1
  store i32 %398, ptr %399, align 4, !tbaa !5
  %indvars.iv.next135.1157 = add nuw nsw i64 %indvars.iv134, 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_edge119.preheader.unr-lcssa, label %387, !llvm.loop !24

._crit_edge119.preheader.unr-lcssa:               ; preds = %387, %.preheader91.preheader
  %indvars.iv134.unr = phi i64 [ 1, %.preheader91.preheader ], [ %indvars.iv.next135.1157, %387 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge119.preheader, label %._crit_edge119.preheader.epilog-lcssa

._crit_edge119.preheader.epilog-lcssa:            ; preds = %._crit_edge119.preheader.unr-lcssa
  %400 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.unr, i64 0
  %401 = load i32, ptr %400, align 4, !tbaa !5
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %402, i64 0
  %404 = load i32, ptr %403, align 4, !tbaa !5
  %405 = getelementptr inbounds [100001 x [17 x i32]], ptr @fa, i64 0, i64 %indvars.iv134.unr, i64 1
  store i32 %404, ptr %405, align 4, !tbaa !5
  br label %._crit_edge119.preheader

._crit_edge119.preheader:                         ; preds = %._crit_edge119.preheader.unr-lcssa, %._crit_edge119.preheader.epilog-lcssa
  %xtraiter158 = and i64 %86, 1
  %406 = icmp eq i64 %88, 0
  br i1 %406, label %._crit_edge119.1.preheader.unr-lcssa, label %._crit_edge119.preheader.new

._crit_edge119.preheader.new:                     ; preds = %._crit_edge119.preheader
  %unroll_iter160 = and i64 %86, 2147483646
  br label %._crit_edge119

.preheader:                                       ; preds = %422, %.split.us
  %407 = load i32, ptr @n, align 4, !tbaa !5
  %.not83124 = icmp slt i32 %407, 2
  br i1 %.not83124, label %._crit_edge127, label %.lr.ph126

.lr.ph123:                                        ; preds = %.split.us, %422
  %408 = phi i32 [ %423, %422 ], [ %107, %.split.us ]
  %indvars.iv143 = phi i64 [ %indvars.iv.next144, %422 ], [ 0, %.split.us ]
  %409 = getelementptr inbounds [400002 x %struct.Edge], ptr @e, i64 0, i64 %indvars.iv143
  %410 = getelementptr inbounds i8, ptr %409, i64 16
  %411 = load i32, ptr %410, align 4, !tbaa !20
  %.not84 = icmp eq i32 %411, 0
  br i1 %.not84, label %422, label %412

412:                                              ; preds = %.lr.ph123
  %413 = getelementptr inbounds i8, ptr %409, i64 4
  %414 = getelementptr inbounds i8, ptr %409, i64 8
  %415 = load i32, ptr %413, align 4, !tbaa !5
  %416 = load i32, ptr %414, align 4, !tbaa !5
  %417 = call noundef i32 @_Z3lcaii(i32 noundef %415, i32 noundef %416)
  %418 = load i32, ptr %413, align 4, !tbaa !5
  %419 = load i32, ptr %410, align 4, !tbaa !5
  call void @_Z6updateiii(i32 noundef %418, i32 noundef %417, i32 noundef %419)
  %420 = load i32, ptr %414, align 4, !tbaa !5
  %421 = load i32, ptr %410, align 4, !tbaa !5
  call void @_Z6updateiii(i32 noundef %420, i32 noundef %417, i32 noundef %421)
  %.pre149 = load i32, ptr @tot, align 4, !tbaa !5
  br label %422

422:                                              ; preds = %.lr.ph123, %412
  %423 = phi i32 [ %408, %.lr.ph123 ], [ %.pre149, %412 ]
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %424 = sext i32 %423 to i64
  %425 = icmp slt i64 %indvars.iv.next144, %424
  br i1 %425, label %.lr.ph123, label %.preheader, !llvm.loop !25

._crit_edge127:                                   ; preds = %.lr.ph126, %.preheader
  ret i32 0

.lr.ph126:                                        ; preds = %.preheader, %.lr.ph126
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %.lr.ph126 ], [ 2, %.preheader ]
  %426 = getelementptr inbounds [100001 x i32], ptr @ans, i64 0, i64 %indvars.iv146
  %427 = load i32, ptr %426, align 4, !tbaa !5
  %428 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %427)
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %429 = load i32, ptr @n, align 4, !tbaa !5
  %430 = sext i32 %429 to i64
  %.not83.not = icmp slt i64 %indvars.iv146, %430
  br i1 %.not83.not, label %.lr.ph126, label %._crit_edge127, !llvm.loop !26
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP4EdgeEvT_S2_(ptr noundef, ptr noundef) local_unnamed_addr #6

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"_ZTSSt4pairIiiE", !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 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{!21, !6, i64 16}
!21 = !{!"_ZTS4Edge", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}


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