; LLVM IR from tangjz/acm-icpc :: uvalive (7562)

; 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 }
%struct.Query = type { i32, i32, i32, i32, i32 }
%struct.Event = type { i32, i32 }

@n = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@qtot = external dso_local global i32, align 4
@que = external dso_local global [500001 x i32], align 16
@tot = external dso_local global i32, align 4
@lnk = external dso_local global [500001 x i32], align 16
@top = external dso_local global i32, align 4
@stk = external dso_local global [500001 x [2 x i32]], align 16
@in = external dso_local global [500001 x i32], align 16
@out = external dso_local global [500001 x i32], align 16
@dep = external dso_local global [500001 x i32], align 16
@fa = external dso_local global [19 x [500001 x i32]], align 16
@ord = external dso_local global [100001 x i32], align 16
@st = external dso_local global i32, align 4
@res = external dso_local global [100001 x i32], align 16
@e = external dso_local global [1000003 x %struct.Edge], align 16
@query = external dso_local global [100001 x %struct.Query], align 16
@event = external dso_local global [200003 x %struct.Event], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

25:                                               ; preds = %522, %0
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %28, label %523

28:                                               ; preds = %25
  store i32 0, ptr @tot, align 4, !tbaa !5
  %29 = load i32, ptr @n, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = mul i64 %30, 4
  call void @llvm.memset.p0.i64(ptr align 4 getelementptr inbounds (i32, ptr @lnk, i64 1), i8 -1, i64 %31, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %69, %28
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = load i32, ptr @n, align 4, !tbaa !5
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %37, label %36

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

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

69:                                               ; preds = %37
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %2, align 4, !tbaa !5
  br label %32, !llvm.loop !13

72:                                               ; preds = %36
  %73 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @q)
  store i32 0, ptr @qtot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %109, %72
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = load i32, ptr @q, align 4, !tbaa !5
  %77 = icmp sle i32 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %112

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [100001 x %struct.Query], ptr @query, i64 0, i64 %81
  store ptr %82, ptr %8, align 8, !tbaa !15
  %83 = load ptr, ptr %8, align 8, !tbaa !15
  %84 = getelementptr inbounds %struct.Query, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %8, align 8, !tbaa !15
  %86 = getelementptr inbounds %struct.Query, ptr %85, i32 0, i32 1
  %87 = load ptr, ptr %8, align 8, !tbaa !15
  %88 = getelementptr inbounds %struct.Query, ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %8, align 8, !tbaa !15
  %90 = getelementptr inbounds %struct.Query, ptr %89, i32 0, i32 3
  %91 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %84, ptr noundef %86, ptr noundef %88, ptr noundef %90)
  %92 = load ptr, ptr %8, align 8, !tbaa !15
  %93 = getelementptr inbounds %struct.Query, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 4, !tbaa !17
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %104

96:                                               ; preds = %79
  %97 = load ptr, ptr %8, align 8, !tbaa !15
  %98 = getelementptr inbounds %struct.Query, ptr %97, i32 0, i32 3
  %99 = load i32, ptr %98, align 4, !tbaa !19
  %100 = load i32, ptr @qtot, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr @qtot, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [500001 x i32], ptr @que, i64 0, i64 %102
  store i32 %99, ptr %103, align 4, !tbaa !5
  br label %108

104:                                              ; preds = %79
  %105 = load ptr, ptr %8, align 8, !tbaa !15
  %106 = getelementptr inbounds %struct.Query, ptr %105, i32 0, i32 4
  %107 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %106)
  br label %108

108:                                              ; preds = %104, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %7, align 4, !tbaa !5
  br label %74, !llvm.loop !20

112:                                              ; preds = %78
  %113 = load i32, ptr @qtot, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr @que, i64 %114
  %116 = getelementptr inbounds i32, ptr %115, i64 1
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef getelementptr inbounds (i32, ptr @que, i64 1), ptr noundef %116)
  %117 = load i32, ptr @qtot, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i32, ptr @que, i64 %118
  %120 = getelementptr inbounds i32, ptr %119, i64 1
  %121 = call noundef ptr @_ZSt6uniqueIPiET_S1_S1_(ptr noundef getelementptr inbounds (i32, ptr @que, i64 1), ptr noundef %120)
  %122 = ptrtoint ptr %121 to i64
  %123 = sub i64 %122, ptrtoint (ptr @que to i64)
  %124 = sdiv exact i64 %123, 4
  %125 = sub nsw i64 %124, 1
  %126 = trunc i64 %125 to i32
  store i32 %126, ptr @qtot, align 4, !tbaa !5
  store i32 0, ptr getelementptr inbounds ([500001 x i32], ptr @fa, i64 0, i64 1), align 4, !tbaa !5
  store i32 0, ptr getelementptr inbounds ([500001 x i32], ptr @dep, i64 0, i64 1), align 4, !tbaa !5
  store i32 0, ptr @top, align 4, !tbaa !5
  store i32 0, ptr @tot, align 4, !tbaa !5
  %127 = load i32, ptr @tot, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr @tot, align 4, !tbaa !5
  store i32 %128, ptr getelementptr inbounds ([500001 x i32], ptr @in, i64 0, i64 1), align 4, !tbaa !5
  %129 = load i32, ptr @top, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr @top, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [500001 x [2 x i32]], ptr @stk, i64 0, i64 %131
  %133 = getelementptr inbounds [2 x i32], ptr %132, i64 0, i64 0
  store i32 1, ptr %133, align 8, !tbaa !5
  %134 = load i32, ptr getelementptr inbounds ([500001 x i32], ptr @lnk, i64 0, i64 1), align 4, !tbaa !5
  %135 = load i32, ptr @top, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [500001 x [2 x i32]], ptr @stk, i64 0, i64 %136
  %138 = getelementptr inbounds [2 x i32], ptr %137, i64 0, i64 1
  store i32 %134, ptr %138, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %221, %219, %112
  %140 = load i32, ptr @top, align 4, !tbaa !5
  %141 = icmp sgt i32 %140, 0
  br i1 %141, label %142, label %222

142:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %143 = load i32, ptr @top, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [500001 x [2 x i32]], ptr @stk, i64 0, i64 %144
  %146 = getelementptr inbounds [2 x i32], ptr %145, i64 0, i64 0
  %147 = load i32, ptr %146, align 8, !tbaa !5
  store i32 %147, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %148 = load i32, ptr @top, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [500001 x [2 x i32]], ptr @stk, i64 0, i64 %149
  %151 = getelementptr inbounds [2 x i32], ptr %150, i64 0, i64 1
  store ptr %151, ptr %10, align 8, !tbaa !15
  %152 = load ptr, ptr %10, align 8, !tbaa !15
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = icmp ne i32 %153, -1
  br i1 %154, label %155, label %211

155:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %156 = load ptr, ptr %10, align 8, !tbaa !15
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [1000003 x %struct.Edge], ptr @e, i64 0, i64 %158
  %160 = getelementptr inbounds %struct.Edge, ptr %159, i32 0, i32 1
  %161 = load i32, ptr %160, align 4, !tbaa !11
  store i32 %161, ptr %11, align 4, !tbaa !5
  %162 = load ptr, ptr %10, align 8, !tbaa !15
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [1000003 x %struct.Edge], ptr @e, i64 0, i64 %164
  %166 = getelementptr inbounds %struct.Edge, ptr %165, i32 0, i32 0
  %167 = load i32, ptr %166, align 8, !tbaa !9
  %168 = load ptr, ptr %10, align 8, !tbaa !15
  store i32 %167, ptr %168, align 4, !tbaa !5
  %169 = load i32, ptr %11, align 4, !tbaa !5
  %170 = load i32, ptr %9, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [500001 x i32], ptr @fa, i64 0, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = icmp eq i32 %169, %173
  br i1 %174, label %175, label %176

175:                                              ; preds = %155
  store i32 10, ptr %12, align 4
  br label %208, !llvm.loop !21

176:                                              ; preds = %155
  %177 = load i32, ptr %9, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [500001 x i32], ptr @dep, i64 0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  %182 = load i32, ptr %11, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [500001 x i32], ptr @dep, i64 0, i64 %183
  store i32 %181, ptr %184, align 4, !tbaa !5
  %185 = load i32, ptr %9, align 4, !tbaa !5
  %186 = load i32, ptr %11, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [500001 x i32], ptr @fa, i64 0, i64 %187
  store i32 %185, ptr %188, align 4, !tbaa !5
  %189 = load i32, ptr @tot, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr @tot, align 4, !tbaa !5
  %191 = load i32, ptr %11, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %192
  store i32 %190, ptr %193, align 4, !tbaa !5
  %194 = load i32, ptr %11, align 4, !tbaa !5
  %195 = load i32, ptr @top, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr @top, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [500001 x [2 x i32]], ptr @stk, i64 0, i64 %197
  %199 = getelementptr inbounds [2 x i32], ptr %198, i64 0, i64 0
  store i32 %194, ptr %199, align 8, !tbaa !5
  %200 = load i32, ptr %11, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [500001 x i32], ptr @lnk, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = load i32, ptr @top, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [500001 x [2 x i32]], ptr @stk, i64 0, i64 %205
  %207 = getelementptr inbounds [2 x i32], ptr %206, i64 0, i64 1
  store i32 %203, ptr %207, align 4, !tbaa !5
  store i32 0, ptr %12, align 4
  br label %208

208:                                              ; preds = %176, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  %209 = load i32, ptr %12, align 4
  switch i32 %209, label %219 [
    i32 0, label %210
  ]

210:                                              ; preds = %208
  br label %218

211:                                              ; preds = %142
  %212 = load i32, ptr @tot, align 4, !tbaa !5
  %213 = load i32, ptr %9, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [500001 x i32], ptr @out, i64 0, i64 %214
  store i32 %212, ptr %215, align 4, !tbaa !5
  %216 = load i32, ptr @top, align 4, !tbaa !5
  %217 = add nsw i32 %216, -1
  store i32 %217, ptr @top, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %211, %210
  store i32 0, ptr %12, align 4
  br label %219

219:                                              ; preds = %218, %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  %220 = load i32, ptr %12, align 4
  switch i32 %220, label %524 [
    i32 0, label %221
    i32 10, label %139
  ]

221:                                              ; preds = %219
  br label %139, !llvm.loop !21

222:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %223

223:                                              ; preds = %259, %222
  %224 = load i32, ptr %13, align 4, !tbaa !5
  %225 = icmp slt i32 %224, 19
  br i1 %225, label %227, label %226

226:                                              ; preds = %223
  store i32 12, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %262

227:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %255, %227
  %229 = load i32, ptr %14, align 4, !tbaa !5
  %230 = load i32, ptr @n, align 4, !tbaa !5
  %231 = icmp sle i32 %229, %230
  br i1 %231, label %233, label %232

232:                                              ; preds = %228
  store i32 15, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %258

233:                                              ; preds = %228
  %234 = load i32, ptr %13, align 4, !tbaa !5
  %235 = sub nsw i32 %234, 1
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 %236
  %238 = load i32, ptr %13, align 4, !tbaa !5
  %239 = sub nsw i32 %238, 1
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 %240
  %242 = load i32, ptr %14, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [500001 x i32], ptr %241, i64 0, i64 %243
  %245 = load i32, ptr %244, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [500001 x i32], ptr %237, i64 0, i64 %246
  %248 = load i32, ptr %247, align 4, !tbaa !5
  %249 = load i32, ptr %13, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 %250
  %252 = load i32, ptr %14, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [500001 x i32], ptr %251, i64 0, i64 %253
  store i32 %248, ptr %254, align 4, !tbaa !5
  br label %255

255:                                              ; preds = %233
  %256 = load i32, ptr %14, align 4, !tbaa !5
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr %14, align 4, !tbaa !5
  br label %228, !llvm.loop !22

258:                                              ; preds = %232
  br label %259

259:                                              ; preds = %258
  %260 = load i32, ptr %13, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %13, align 4, !tbaa !5
  br label %223, !llvm.loop !23

262:                                              ; preds = %226
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %263

263:                                              ; preds = %330, %262
  %264 = load i32, ptr %15, align 4, !tbaa !5
  %265 = load i32, ptr @q, align 4, !tbaa !5
  %266 = icmp sle i32 %264, %265
  br i1 %266, label %268, label %267

267:                                              ; preds = %263
  store i32 18, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %333

268:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %269 = load i32, ptr %15, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [100001 x %struct.Query], ptr @query, i64 0, i64 %270
  store ptr %271, ptr %16, align 8, !tbaa !15
  %272 = load ptr, ptr %16, align 8, !tbaa !15
  %273 = getelementptr inbounds %struct.Query, ptr %272, i32 0, i32 0
  %274 = load i32, ptr %273, align 4, !tbaa !17
  %275 = icmp eq i32 %274, 1
  br i1 %275, label %276, label %307

276:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %277 = getelementptr inbounds %struct.Event, ptr %17, i32 0, i32 0
  %278 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %278, ptr %277, align 4, !tbaa !24
  %279 = getelementptr inbounds %struct.Event, ptr %17, i32 0, i32 1
  %280 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %280, ptr %279, align 4, !tbaa !26
  %281 = load i32, ptr @tot, align 4, !tbaa !5
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr @tot, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [200003 x %struct.Event], ptr @event, i64 0, i64 %283
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %284, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  %285 = load i32, ptr @qtot, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds i32, ptr @que, i64 %286
  %288 = getelementptr inbounds i32, ptr %287, i64 1
  %289 = load ptr, ptr %16, align 8, !tbaa !15
  %290 = getelementptr inbounds %struct.Query, ptr %289, i32 0, i32 3
  %291 = call noundef ptr @_ZSt11lower_boundIPiiET_S1_S1_RKT0_(ptr noundef getelementptr inbounds (i32, ptr @que, i64 1), ptr noundef %288, ptr noundef nonnull align 4 dereferenceable(4) %290)
  %292 = ptrtoint ptr %291 to i64
  %293 = sub i64 %292, ptrtoint (ptr @que to i64)
  %294 = sdiv exact i64 %293, 4
  %295 = trunc i64 %294 to i32
  %296 = load ptr, ptr %16, align 8, !tbaa !15
  %297 = getelementptr inbounds %struct.Query, ptr %296, i32 0, i32 3
  store i32 %295, ptr %297, align 4, !tbaa !19
  %298 = load ptr, ptr %16, align 8, !tbaa !15
  %299 = getelementptr inbounds %struct.Query, ptr %298, i32 0, i32 1
  %300 = load i32, ptr %299, align 4, !tbaa !27
  %301 = load ptr, ptr %16, align 8, !tbaa !15
  %302 = getelementptr inbounds %struct.Query, ptr %301, i32 0, i32 2
  %303 = load i32, ptr %302, align 4, !tbaa !28
  %304 = call noundef i32 @_Z3lcaii(i32 noundef %300, i32 noundef %303)
  %305 = load ptr, ptr %16, align 8, !tbaa !15
  %306 = getelementptr inbounds %struct.Query, ptr %305, i32 0, i32 4
  store i32 %304, ptr %306, align 4, !tbaa !29
  br label %329

307:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %308 = getelementptr inbounds %struct.Event, ptr %18, i32 0, i32 0
  %309 = load ptr, ptr %16, align 8, !tbaa !15
  %310 = getelementptr inbounds %struct.Query, ptr %309, i32 0, i32 2
  %311 = load i32, ptr %310, align 4, !tbaa !28
  %312 = sub nsw i32 %311, 1
  store i32 %312, ptr %308, align 4, !tbaa !24
  %313 = getelementptr inbounds %struct.Event, ptr %18, i32 0, i32 1
  %314 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %314, ptr %313, align 4, !tbaa !26
  %315 = load i32, ptr @tot, align 4, !tbaa !5
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr @tot, align 4, !tbaa !5
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [200003 x %struct.Event], ptr @event, i64 0, i64 %317
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %318, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %319 = getelementptr inbounds %struct.Event, ptr %19, i32 0, i32 0
  %320 = load ptr, ptr %16, align 8, !tbaa !15
  %321 = getelementptr inbounds %struct.Query, ptr %320, i32 0, i32 3
  %322 = load i32, ptr %321, align 4, !tbaa !19
  store i32 %322, ptr %319, align 4, !tbaa !24
  %323 = getelementptr inbounds %struct.Event, ptr %19, i32 0, i32 1
  %324 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %324, ptr %323, align 4, !tbaa !26
  %325 = load i32, ptr @tot, align 4, !tbaa !5
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr @tot, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [200003 x %struct.Event], ptr @event, i64 0, i64 %327
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %328, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %329

329:                                              ; preds = %307, %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %330

330:                                              ; preds = %329
  %331 = load i32, ptr %15, align 4, !tbaa !5
  %332 = add nsw i32 %331, 1
  store i32 %332, ptr %15, align 4, !tbaa !5
  br label %263, !llvm.loop !30

333:                                              ; preds = %267
  %334 = load i32, ptr @tot, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds %struct.Event, ptr @event, i64 %335
  %337 = getelementptr inbounds %struct.Event, ptr %336, i64 1
  call void @_ZSt4sortIP5EventEvT_S2_(ptr noundef getelementptr inbounds (%struct.Event, ptr @event, i64 1), ptr noundef %337)
  %338 = load i32, ptr @st, align 4, !tbaa !5
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr @st, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %340

340:                                              ; preds = %456, %333
  %341 = load i32, ptr %20, align 4, !tbaa !5
  %342 = load i32, ptr @tot, align 4, !tbaa !5
  %343 = icmp sle i32 %341, %342
  br i1 %343, label %345, label %344

344:                                              ; preds = %340
  store i32 21, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %459

345:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %346 = load i32, ptr %20, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [200003 x %struct.Event], ptr @event, i64 0, i64 %347
  store ptr %348, ptr %21, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %349 = load ptr, ptr %21, align 8, !tbaa !15
  %350 = getelementptr inbounds %struct.Event, ptr %349, i32 0, i32 1
  %351 = load i32, ptr %350, align 4, !tbaa !26
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [100001 x %struct.Query], ptr @query, i64 0, i64 %352
  store ptr %353, ptr %22, align 8, !tbaa !15
  %354 = load ptr, ptr %22, align 8, !tbaa !15
  %355 = getelementptr inbounds %struct.Query, ptr %354, i32 0, i32 0
  %356 = load i32, ptr %355, align 4, !tbaa !17
  %357 = icmp eq i32 %356, 1
  br i1 %357, label %358, label %395

358:                                              ; preds = %345
  %359 = load ptr, ptr %22, align 8, !tbaa !15
  %360 = getelementptr inbounds %struct.Query, ptr %359, i32 0, i32 1
  %361 = load i32, ptr %360, align 4, !tbaa !27
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %362
  %364 = load i32, ptr %363, align 4, !tbaa !5
  call void @_Z7bit_addii(i32 noundef %364, i32 noundef 1)
  %365 = load ptr, ptr %22, align 8, !tbaa !15
  %366 = getelementptr inbounds %struct.Query, ptr %365, i32 0, i32 2
  %367 = load i32, ptr %366, align 4, !tbaa !28
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %368
  %370 = load i32, ptr %369, align 4, !tbaa !5
  call void @_Z7bit_addii(i32 noundef %370, i32 noundef 1)
  %371 = load ptr, ptr %22, align 8, !tbaa !15
  %372 = getelementptr inbounds %struct.Query, ptr %371, i32 0, i32 4
  %373 = load i32, ptr %372, align 4, !tbaa !29
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %374
  %376 = load i32, ptr %375, align 4, !tbaa !5
  call void @_Z7bit_addii(i32 noundef %376, i32 noundef -1)
  %377 = load ptr, ptr %22, align 8, !tbaa !15
  %378 = getelementptr inbounds %struct.Query, ptr %377, i32 0, i32 4
  %379 = load i32, ptr %378, align 4, !tbaa !29
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [500001 x i32], ptr @fa, i64 0, i64 %380
  %382 = load i32, ptr %381, align 4, !tbaa !5
  %383 = icmp ne i32 %382, 0
  br i1 %383, label %384, label %394

384:                                              ; preds = %358
  %385 = load ptr, ptr %22, align 8, !tbaa !15
  %386 = getelementptr inbounds %struct.Query, ptr %385, i32 0, i32 4
  %387 = load i32, ptr %386, align 4, !tbaa !29
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds [500001 x i32], ptr @fa, i64 0, i64 %388
  %390 = load i32, ptr %389, align 4, !tbaa !5
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %391
  %393 = load i32, ptr %392, align 4, !tbaa !5
  call void @_Z7bit_addii(i32 noundef %393, i32 noundef -1)
  br label %394

394:                                              ; preds = %384, %358
  br label %455

395:                                              ; preds = %345
  %396 = load ptr, ptr %21, align 8, !tbaa !15
  %397 = getelementptr inbounds %struct.Event, ptr %396, i32 0, i32 0
  %398 = load i32, ptr %397, align 4, !tbaa !24
  %399 = load ptr, ptr %22, align 8, !tbaa !15
  %400 = getelementptr inbounds %struct.Query, ptr %399, i32 0, i32 2
  %401 = load i32, ptr %400, align 4, !tbaa !28
  %402 = icmp slt i32 %398, %401
  br i1 %402, label %403, label %425

403:                                              ; preds = %395
  %404 = load ptr, ptr %22, align 8, !tbaa !15
  %405 = getelementptr inbounds %struct.Query, ptr %404, i32 0, i32 1
  %406 = load i32, ptr %405, align 4, !tbaa !27
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds [500001 x i32], ptr @out, i64 0, i64 %407
  %409 = load i32, ptr %408, align 4, !tbaa !5
  %410 = call noundef i32 @_Z7bit_sumi(i32 noundef %409)
  %411 = load ptr, ptr %22, align 8, !tbaa !15
  %412 = getelementptr inbounds %struct.Query, ptr %411, i32 0, i32 1
  %413 = load i32, ptr %412, align 4, !tbaa !27
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %414
  %416 = load i32, ptr %415, align 4, !tbaa !5
  %417 = sub nsw i32 %416, 1
  %418 = call noundef i32 @_Z7bit_sumi(i32 noundef %417)
  %419 = sub nsw i32 %410, %418
  %420 = load ptr, ptr %21, align 8, !tbaa !15
  %421 = getelementptr inbounds %struct.Event, ptr %420, i32 0, i32 1
  %422 = load i32, ptr %421, align 4, !tbaa !26
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds [100001 x i32], ptr @res, i64 0, i64 %423
  store i32 %419, ptr %424, align 4, !tbaa !5
  br label %454

425:                                              ; preds = %395
  %426 = load ptr, ptr %22, align 8, !tbaa !15
  %427 = getelementptr inbounds %struct.Query, ptr %426, i32 0, i32 1
  %428 = load i32, ptr %427, align 4, !tbaa !27
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds [500001 x i32], ptr @out, i64 0, i64 %429
  %431 = load i32, ptr %430, align 4, !tbaa !5
  %432 = call noundef i32 @_Z7bit_sumi(i32 noundef %431)
  %433 = load ptr, ptr %22, align 8, !tbaa !15
  %434 = getelementptr inbounds %struct.Query, ptr %433, i32 0, i32 1
  %435 = load i32, ptr %434, align 4, !tbaa !27
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %436
  %438 = load i32, ptr %437, align 4, !tbaa !5
  %439 = sub nsw i32 %438, 1
  %440 = call noundef i32 @_Z7bit_sumi(i32 noundef %439)
  %441 = sub nsw i32 %432, %440
  %442 = load ptr, ptr %21, align 8, !tbaa !15
  %443 = getelementptr inbounds %struct.Event, ptr %442, i32 0, i32 1
  %444 = load i32, ptr %443, align 4, !tbaa !26
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [100001 x i32], ptr @res, i64 0, i64 %445
  %447 = load i32, ptr %446, align 4, !tbaa !5
  %448 = sub nsw i32 %441, %447
  %449 = load ptr, ptr %21, align 8, !tbaa !15
  %450 = getelementptr inbounds %struct.Event, ptr %449, i32 0, i32 1
  %451 = load i32, ptr %450, align 4, !tbaa !26
  %452 = sext i32 %451 to i64
  %453 = getelementptr inbounds [100001 x i32], ptr @res, i64 0, i64 %452
  store i32 %448, ptr %453, align 4, !tbaa !5
  br label %454

454:                                              ; preds = %425, %403
  br label %455

455:                                              ; preds = %454, %394
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %456

456:                                              ; preds = %455
  %457 = load i32, ptr %20, align 4, !tbaa !5
  %458 = add nsw i32 %457, 1
  store i32 %458, ptr %20, align 4, !tbaa !5
  br label %340, !llvm.loop !31

459:                                              ; preds = %344
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 1, ptr %23, align 4, !tbaa !5
  br label %460

460:                                              ; preds = %494, %459
  %461 = load i32, ptr %23, align 4, !tbaa !5
  %462 = load i32, ptr @q, align 4, !tbaa !5
  %463 = icmp sle i32 %461, %462
  br i1 %463, label %465, label %464

464:                                              ; preds = %460
  store i32 24, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %497

465:                                              ; preds = %460
  %466 = load i32, ptr %23, align 4, !tbaa !5
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds [100001 x %struct.Query], ptr @query, i64 0, i64 %467
  %469 = getelementptr inbounds %struct.Query, ptr %468, i32 0, i32 0
  %470 = load i32, ptr %469, align 4, !tbaa !17
  %471 = icmp eq i32 %470, 2
  br i1 %471, label %472, label %487

472:                                              ; preds = %465
  %473 = load i32, ptr %23, align 4, !tbaa !5
  %474 = sext i32 %473 to i64
  %475 = getelementptr inbounds [100001 x i32], ptr @res, i64 0, i64 %474
  %476 = load i32, ptr %475, align 4, !tbaa !5
  %477 = load i32, ptr %23, align 4, !tbaa !5
  %478 = sext i32 %477 to i64
  %479 = getelementptr inbounds [100001 x %struct.Query], ptr @query, i64 0, i64 %478
  %480 = getelementptr inbounds %struct.Query, ptr %479, i32 0, i32 4
  %481 = load i32, ptr %480, align 4, !tbaa !29
  %482 = icmp slt i32 %476, %481
  br i1 %482, label %483, label %487

483:                                              ; preds = %472
  %484 = load i32, ptr %23, align 4, !tbaa !5
  %485 = sext i32 %484 to i64
  %486 = getelementptr inbounds [100001 x i32], ptr @res, i64 0, i64 %485
  store i32 -1, ptr %486, align 4, !tbaa !5
  br label %493

487:                                              ; preds = %472, %465
  %488 = load i32, ptr %23, align 4, !tbaa !5
  %489 = load i32, ptr @tot, align 4, !tbaa !5
  %490 = add nsw i32 %489, 1
  store i32 %490, ptr @tot, align 4, !tbaa !5
  %491 = sext i32 %490 to i64
  %492 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %491
  store i32 %488, ptr %492, align 4, !tbaa !5
  br label %493

493:                                              ; preds = %487, %483
  br label %494

494:                                              ; preds = %493
  %495 = load i32, ptr %23, align 4, !tbaa !5
  %496 = add nsw i32 %495, 1
  store i32 %496, ptr %23, align 4, !tbaa !5
  br label %460, !llvm.loop !32

497:                                              ; preds = %464
  %498 = load i32, ptr @tot, align 4, !tbaa !5
  %499 = load i32, ptr @qtot, align 4, !tbaa !5
  call void @_Z5solveiiii(i32 noundef 1, i32 noundef %498, i32 noundef 1, i32 noundef %499)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 1, ptr %24, align 4, !tbaa !5
  br label %500

500:                                              ; preds = %519, %497
  %501 = load i32, ptr %24, align 4, !tbaa !5
  %502 = load i32, ptr @q, align 4, !tbaa !5
  %503 = icmp sle i32 %501, %502
  br i1 %503, label %505, label %504

504:                                              ; preds = %500
  store i32 27, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %522

505:                                              ; preds = %500
  %506 = load i32, ptr %24, align 4, !tbaa !5
  %507 = sext i32 %506 to i64
  %508 = getelementptr inbounds [100001 x %struct.Query], ptr @query, i64 0, i64 %507
  %509 = getelementptr inbounds %struct.Query, ptr %508, i32 0, i32 0
  %510 = load i32, ptr %509, align 4, !tbaa !17
  %511 = icmp eq i32 %510, 2
  br i1 %511, label %512, label %518

512:                                              ; preds = %505
  %513 = load i32, ptr %24, align 4, !tbaa !5
  %514 = sext i32 %513 to i64
  %515 = getelementptr inbounds [100001 x i32], ptr @res, i64 0, i64 %514
  %516 = load i32, ptr %515, align 4, !tbaa !5
  %517 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %516)
  br label %518

518:                                              ; preds = %512, %505
  br label %519

519:                                              ; preds = %518
  %520 = load i32, ptr %24, align 4, !tbaa !5
  %521 = add nsw i32 %520, 1
  store i32 %521, ptr %24, align 4, !tbaa !5
  br label %500, !llvm.loop !33

522:                                              ; preds = %504
  br label %25, !llvm.loop !34

523:                                              ; preds = %25
  ret i32 0

524:                                              ; preds = %219
  unreachable
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPiET_S1_S1_(ptr noundef, ptr noundef) #4

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Edge = type { i32, i32 }
%struct.Query = type { i32, i32, i32, i32, i32 }
%struct.Event = type { i32, i32 }

@n = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@qtot = external dso_local local_unnamed_addr global i32, align 4
@que = external dso_local global [500001 x i32], align 16
@tot = external dso_local local_unnamed_addr global i32, align 4
@lnk = external dso_local local_unnamed_addr global [500001 x i32], align 16
@top = external dso_local local_unnamed_addr global i32, align 4
@stk = external dso_local local_unnamed_addr global [500001 x [2 x i32]], align 16
@in = external dso_local local_unnamed_addr global [500001 x i32], align 16
@out = external dso_local local_unnamed_addr global [500001 x i32], align 16
@dep = external dso_local local_unnamed_addr global [500001 x i32], align 16
@fa = external dso_local local_unnamed_addr global [19 x [500001 x i32]], align 16
@ord = external dso_local local_unnamed_addr global [100001 x i32], align 16
@st = external dso_local local_unnamed_addr global i32, align 4
@res = external dso_local local_unnamed_addr global [100001 x i32], align 16
@e = external dso_local local_unnamed_addr global [1000003 x %struct.Edge], align 16
@query = external dso_local global [100001 x %struct.Query], align 16
@event = external dso_local global [200003 x %struct.Event], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %4 = icmp eq i32 %3, 1
  br i1 %4, label %.lr.ph149, label %._crit_edge150

.loopexit:                                        ; preds = %695, %._crit_edge140
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %6 = icmp eq i32 %5, 1
  br i1 %6, label %.lr.ph149, label %._crit_edge150, !llvm.loop !5

.lr.ph149:                                        ; preds = %0, %.loopexit
  store i32 0, ptr @tot, align 4, !tbaa !7
  %7 = load i32, ptr @n, align 4, !tbaa !7
  %8 = sext i32 %7 to i64
  %9 = shl nsw i64 %8, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 getelementptr inbounds (i8, ptr @lnk, i64 4), i8 -1, i64 %9, i1 false)
  %10 = icmp sgt i32 %7, 1
  br i1 %10, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph149
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @q)
  store i32 0, ptr @qtot, align 4, !tbaa !7
  %12 = load i32, ptr @q, align 4, !tbaa !7
  %.not112 = icmp slt i32 %12, 1
  br i1 %.not112, label %._crit_edge116, label %.lr.ph115

.lr.ph:                                           ; preds = %.lr.ph149, %.lr.ph
  %.089111 = phi i32 [ %29, %.lr.ph ], [ 1, %.lr.ph149 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 0, ptr %1, align 4, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !7
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %14 = load i32, ptr %1, align 4, !tbaa !7
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [500001 x i32], ptr @lnk, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !7
  %18 = load i32, ptr %2, align 4, !tbaa !7
  %19 = load i32, ptr @tot, align 4, !tbaa !7
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [1000003 x %struct.Edge], ptr @e, i64 0, i64 %20
  store i32 %17, ptr %21, align 8, !tbaa !7
  %.sroa.485.0..sroa_idx = getelementptr inbounds i8, ptr %21, i64 4
  store i32 %18, ptr %.sroa.485.0..sroa_idx, align 4, !tbaa !7
  %22 = add nsw i32 %19, 1
  store i32 %19, ptr %16, align 4, !tbaa !7
  %23 = sext i32 %18 to i64
  %24 = getelementptr inbounds [500001 x i32], ptr @lnk, i64 0, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !7
  %26 = sext i32 %22 to i64
  %27 = getelementptr inbounds [1000003 x %struct.Edge], ptr @e, i64 0, i64 %26
  store i32 %25, ptr %27, align 8, !tbaa !7
  %.sroa.483.0..sroa_idx = getelementptr inbounds i8, ptr %27, i64 4
  store i32 %14, ptr %.sroa.483.0..sroa_idx, align 4, !tbaa !7
  %28 = add nsw i32 %19, 2
  store i32 %28, ptr @tot, align 4, !tbaa !7
  store i32 %22, ptr %24, align 4, !tbaa !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
  %29 = add nuw nsw i32 %.089111, 1
  %30 = load i32, ptr @n, align 4, !tbaa !7
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge116.loopexit:                          ; preds = %59
  %.pre = load i32, ptr @qtot, align 4, !tbaa !7
  br label %._crit_edge116

._crit_edge116:                                   ; preds = %._crit_edge116.loopexit, %._crit_edge
  %32 = phi i32 [ %.pre, %._crit_edge116.loopexit ], [ 0, %._crit_edge ]
  %33 = sext i32 %32 to i64
  %gep145 = getelementptr i32, ptr getelementptr inbounds (i8, ptr @que, i64 4), i64 %33
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull getelementptr inbounds (i8, ptr @que, i64 4), ptr noundef nonnull %gep145)
  %34 = load i32, ptr @qtot, align 4, !tbaa !7
  %35 = sext i32 %34 to i64
  %gep146 = getelementptr i32, ptr getelementptr inbounds (i8, ptr @que, i64 4), i64 %35
  %36 = call noundef ptr @_ZSt6uniqueIPiET_S1_S1_(ptr noundef nonnull getelementptr inbounds (i8, ptr @que, i64 4), ptr noundef nonnull %gep146)
  %37 = ptrtoint ptr %36 to i64
  %38 = sub i64 %37, ptrtoint (ptr @que to i64)
  %39 = lshr exact i64 %38, 2
  %40 = trunc i64 %39 to i32
  %41 = add i32 %40, -1
  store i32 %41, ptr @qtot, align 4, !tbaa !7
  store i32 0, ptr getelementptr inbounds (i8, ptr @fa, i64 4), align 4, !tbaa !7
  store i32 0, ptr getelementptr inbounds (i8, ptr @dep, i64 4), align 4, !tbaa !7
  store i32 1, ptr @tot, align 4, !tbaa !7
  store i32 1, ptr getelementptr inbounds (i8, ptr @in, i64 4), align 4, !tbaa !7
  store i32 1, ptr @top, align 4, !tbaa !7
  store i32 1, ptr getelementptr inbounds (i8, ptr @stk, i64 8), align 8, !tbaa !7
  %42 = load i32, ptr getelementptr inbounds (i8, ptr @lnk, i64 4), align 4, !tbaa !7
  store i32 %42, ptr getelementptr inbounds (i8, ptr @stk, i64 12), align 4, !tbaa !7
  br label %67

.lr.ph115:                                        ; preds = %._crit_edge, %59
  %indvars.iv = phi i64 [ %indvars.iv.next, %59 ], [ 1, %._crit_edge ]
  %43 = getelementptr inbounds [100001 x %struct.Query], ptr @query, i64 0, i64 %indvars.iv
  %44 = getelementptr inbounds i8, ptr %43, i64 4
  %45 = getelementptr inbounds i8, ptr %43, i64 8
  %46 = getelementptr inbounds i8, ptr %43, i64 12
  %47 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %43, ptr noundef nonnull %44, ptr noundef nonnull %45, ptr noundef nonnull %46)
  %48 = load i32, ptr %43, align 4, !tbaa !12
  %49 = icmp eq i32 %48, 1
  br i1 %49, label %50, label %56

50:                                               ; preds = %.lr.ph115
  %51 = load i32, ptr %46, align 4, !tbaa !14
  %52 = load i32, ptr @qtot, align 4, !tbaa !7
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr @qtot, align 4, !tbaa !7
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [500001 x i32], ptr @que, i64 0, i64 %54
  store i32 %51, ptr %55, align 4, !tbaa !7
  br label %59

56:                                               ; preds = %.lr.ph115
  %57 = getelementptr inbounds i8, ptr %43, i64 16
  %58 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %57)
  br label %59

59:                                               ; preds = %56, %50
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %60 = load i32, ptr @q, align 4, !tbaa !7
  %61 = sext i32 %60 to i64
  %.not.not = icmp slt i64 %indvars.iv, %61
  br i1 %.not.not, label %.lr.ph115, label %._crit_edge116.loopexit, !llvm.loop !15

.preheader110:                                    ; preds = %.critedge
  %62 = load i32, ptr @n, align 4, !tbaa !7
  %.not105120 = icmp slt i32 %62, 1
  br i1 %.not105120, label %.split.us, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader110
  %63 = zext nneg i32 %62 to i64
  %64 = zext nneg i32 %62 to i64
  %65 = add nsw i64 %64, -1
  %xtraiter = and i64 %63, 3
  %66 = icmp ult i32 %62, 4
  br i1 %66, label %._crit_edge123.preheader.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter = and i64 %63, 2147483644
  br label %523

67:                                               ; preds = %._crit_edge116, %.critedge
  %68 = phi i32 [ 1, %._crit_edge116 ], [ %102, %.critedge ]
  %.pr117119 = phi i32 [ 1, %._crit_edge116 ], [ %.pr118, %.critedge ]
  %69 = zext nneg i32 %.pr117119 to i64
  %70 = getelementptr inbounds [500001 x [2 x i32]], ptr @stk, i64 0, i64 %69
  %71 = load i32, ptr %70, align 8, !tbaa !7
  %72 = getelementptr inbounds i8, ptr %70, i64 4
  %73 = load i32, ptr %72, align 4, !tbaa !7
  %.not106 = icmp eq i32 %73, -1
  br i1 %.not106, label %98, label %74

74:                                               ; preds = %67
  %75 = sext i32 %73 to i64
  %76 = getelementptr inbounds [1000003 x %struct.Edge], ptr @e, i64 0, i64 %75
  %77 = getelementptr inbounds i8, ptr %76, i64 4
  %78 = load i32, ptr %77, align 4, !tbaa !16
  %79 = load i32, ptr %76, align 8, !tbaa !18
  store i32 %79, ptr %72, align 4, !tbaa !7
  %80 = sext i32 %71 to i64
  %81 = getelementptr inbounds [500001 x i32], ptr @fa, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !7
  %.not107 = icmp eq i32 %78, %82
  br i1 %.not107, label %.critedge, label %83, !llvm.loop !19

83:                                               ; preds = %74
  %84 = getelementptr inbounds [500001 x i32], ptr @dep, i64 0, i64 %80
  %85 = load i32, ptr %84, align 4, !tbaa !7
  %86 = add nsw i32 %85, 1
  %87 = sext i32 %78 to i64
  %88 = getelementptr inbounds [500001 x i32], ptr @dep, i64 0, i64 %87
  store i32 %86, ptr %88, align 4, !tbaa !7
  %89 = getelementptr inbounds [500001 x i32], ptr @fa, i64 0, i64 %87
  store i32 %71, ptr %89, align 4, !tbaa !7
  %90 = add nsw i32 %68, 1
  %91 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %87
  store i32 %90, ptr %91, align 4, !tbaa !7
  %92 = add nuw nsw i32 %.pr117119, 1
  store i32 %92, ptr @top, align 4, !tbaa !7
  %93 = zext nneg i32 %92 to i64
  %94 = getelementptr inbounds [500001 x [2 x i32]], ptr @stk, i64 0, i64 %93
  store i32 %78, ptr %94, align 8, !tbaa !7
  %95 = getelementptr inbounds [500001 x i32], ptr @lnk, i64 0, i64 %87
  %96 = load i32, ptr %95, align 4, !tbaa !7
  %97 = getelementptr inbounds [500001 x [2 x i32]], ptr @stk, i64 0, i64 %93, i64 1
  store i32 %96, ptr %97, align 4, !tbaa !7
  br label %.critedge

98:                                               ; preds = %67
  %99 = sext i32 %71 to i64
  %100 = getelementptr inbounds [500001 x i32], ptr @out, i64 0, i64 %99
  store i32 %68, ptr %100, align 4, !tbaa !7
  %101 = add nsw i32 %.pr117119, -1
  store i32 %101, ptr @top, align 4, !tbaa !7
  br label %.critedge

.critedge:                                        ; preds = %83, %74, %98
  %.pr118 = phi i32 [ %92, %83 ], [ %.pr117119, %74 ], [ %101, %98 ]
  %102 = phi i32 [ %90, %83 ], [ %68, %74 ], [ %68, %98 ]
  %103 = icmp sgt i32 %.pr118, 0
  br i1 %103, label %67, label %.preheader110

.split.us.loopexit.unr-lcssa:                     ; preds = %._crit_edge123.16, %._crit_edge123.16.preheader
  %indvars.iv153.17.unr = phi i64 [ 1, %._crit_edge123.16.preheader ], [ %indvars.iv.next154.17.1, %._crit_edge123.16 ]
  %lcmp.mod268.not = icmp eq i64 %xtraiter266, 0
  br i1 %lcmp.mod268.not, label %.split.us, label %._crit_edge123.16.epil

._crit_edge123.16.epil:                           ; preds = %.split.us.loopexit.unr-lcssa
  %104 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 17, i64 %indvars.iv153.17.unr
  %105 = load i32, ptr %104, align 4, !tbaa !7
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 17, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !7
  %109 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 18, i64 %indvars.iv153.17.unr
  store i32 %108, ptr %109, align 4, !tbaa !7
  br label %.split.us

.split.us:                                        ; preds = %._crit_edge123.16.epil, %.split.us.loopexit.unr-lcssa, %.preheader110
  store i32 0, ptr @tot, align 4, !tbaa !7
  %110 = load i32, ptr @q, align 4, !tbaa !7
  %.not100125 = icmp slt i32 %110, 1
  br i1 %.not100125, label %._crit_edge129, label %.lr.ph128

._crit_edge123:                                   ; preds = %._crit_edge123, %._crit_edge123.preheader.new
  %indvars.iv153.1 = phi i64 [ 1, %._crit_edge123.preheader.new ], [ %indvars.iv.next154.1.3, %._crit_edge123 ]
  %niter187 = phi i64 [ 0, %._crit_edge123.preheader.new ], [ %niter187.next.3, %._crit_edge123 ]
  %111 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %indvars.iv153.1
  %112 = load i32, ptr %111, align 4, !tbaa !7
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !7
  %116 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %indvars.iv153.1
  store i32 %115, ptr %116, align 4, !tbaa !7
  %indvars.iv.next154.1 = add nuw nsw i64 %indvars.iv153.1, 1
  %117 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %indvars.iv.next154.1
  %118 = load i32, ptr %117, align 4, !tbaa !7
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !7
  %122 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %indvars.iv.next154.1
  store i32 %121, ptr %122, align 4, !tbaa !7
  %indvars.iv.next154.1.1 = add nuw nsw i64 %indvars.iv153.1, 2
  %123 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %indvars.iv.next154.1.1
  %124 = load i32, ptr %123, align 4, !tbaa !7
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !7
  %128 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %indvars.iv.next154.1.1
  store i32 %127, ptr %128, align 4, !tbaa !7
  %indvars.iv.next154.1.2 = add nuw nsw i64 %indvars.iv153.1, 3
  %129 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %indvars.iv.next154.1.2
  %130 = load i32, ptr %129, align 4, !tbaa !7
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !7
  %134 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %indvars.iv.next154.1.2
  store i32 %133, ptr %134, align 4, !tbaa !7
  %indvars.iv.next154.1.3 = add nuw nsw i64 %indvars.iv153.1, 4
  %niter187.next.3 = add i64 %niter187, 4
  %niter187.ncmp.3 = icmp eq i64 %niter187.next.3, %unroll_iter186
  br i1 %niter187.ncmp.3, label %._crit_edge123.1.preheader.unr-lcssa, label %._crit_edge123, !llvm.loop !20

._crit_edge123.1.preheader.unr-lcssa:             ; preds = %._crit_edge123, %._crit_edge123.preheader
  %indvars.iv153.1.unr = phi i64 [ 1, %._crit_edge123.preheader ], [ %indvars.iv.next154.1.3, %._crit_edge123 ]
  %lcmp.mod185.not = icmp eq i64 %xtraiter183, 0
  br i1 %lcmp.mod185.not, label %._crit_edge123.1.preheader, label %._crit_edge123.epil

._crit_edge123.epil:                              ; preds = %._crit_edge123.1.preheader.unr-lcssa, %._crit_edge123.epil
  %indvars.iv153.1.epil = phi i64 [ %indvars.iv.next154.1.epil, %._crit_edge123.epil ], [ %indvars.iv153.1.unr, %._crit_edge123.1.preheader.unr-lcssa ]
  %epil.iter184 = phi i64 [ %epil.iter184.next, %._crit_edge123.epil ], [ 0, %._crit_edge123.1.preheader.unr-lcssa ]
  %135 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %indvars.iv153.1.epil
  %136 = load i32, ptr %135, align 4, !tbaa !7
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !7
  %140 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %indvars.iv153.1.epil
  store i32 %139, ptr %140, align 4, !tbaa !7
  %indvars.iv.next154.1.epil = add nuw nsw i64 %indvars.iv153.1.epil, 1
  %epil.iter184.next = add i64 %epil.iter184, 1
  %epil.iter184.cmp.not = icmp eq i64 %epil.iter184.next, %xtraiter183
  br i1 %epil.iter184.cmp.not, label %._crit_edge123.1.preheader, label %._crit_edge123.epil, !llvm.loop !21

._crit_edge123.1.preheader:                       ; preds = %._crit_edge123.epil, %._crit_edge123.1.preheader.unr-lcssa
  %xtraiter191 = and i64 %63, 3
  %141 = icmp ult i32 %62, 4
  br i1 %141, label %._crit_edge123.2.preheader.unr-lcssa, label %._crit_edge123.1.preheader.new

._crit_edge123.1.preheader.new:                   ; preds = %._crit_edge123.1.preheader
  %unroll_iter194 = and i64 %63, 2147483644
  br label %._crit_edge123.1

._crit_edge123.1:                                 ; preds = %._crit_edge123.1, %._crit_edge123.1.preheader.new
  %indvars.iv153.2 = phi i64 [ 1, %._crit_edge123.1.preheader.new ], [ %indvars.iv.next154.2.3, %._crit_edge123.1 ]
  %niter195 = phi i64 [ 0, %._crit_edge123.1.preheader.new ], [ %niter195.next.3, %._crit_edge123.1 ]
  %142 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %indvars.iv153.2
  %143 = load i32, ptr %142, align 4, !tbaa !7
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !7
  %147 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %indvars.iv153.2
  store i32 %146, ptr %147, align 4, !tbaa !7
  %indvars.iv.next154.2 = add nuw nsw i64 %indvars.iv153.2, 1
  %148 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %indvars.iv.next154.2
  %149 = load i32, ptr %148, align 4, !tbaa !7
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !7
  %153 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %indvars.iv.next154.2
  store i32 %152, ptr %153, align 4, !tbaa !7
  %indvars.iv.next154.2.1 = add nuw nsw i64 %indvars.iv153.2, 2
  %154 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %indvars.iv.next154.2.1
  %155 = load i32, ptr %154, align 4, !tbaa !7
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !7
  %159 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %indvars.iv.next154.2.1
  store i32 %158, ptr %159, align 4, !tbaa !7
  %indvars.iv.next154.2.2 = add nuw nsw i64 %indvars.iv153.2, 3
  %160 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %indvars.iv.next154.2.2
  %161 = load i32, ptr %160, align 4, !tbaa !7
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !7
  %165 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %indvars.iv.next154.2.2
  store i32 %164, ptr %165, align 4, !tbaa !7
  %indvars.iv.next154.2.3 = add nuw nsw i64 %indvars.iv153.2, 4
  %niter195.next.3 = add i64 %niter195, 4
  %niter195.ncmp.3 = icmp eq i64 %niter195.next.3, %unroll_iter194
  br i1 %niter195.ncmp.3, label %._crit_edge123.2.preheader.unr-lcssa, label %._crit_edge123.1, !llvm.loop !20

._crit_edge123.2.preheader.unr-lcssa:             ; preds = %._crit_edge123.1, %._crit_edge123.1.preheader
  %indvars.iv153.2.unr = phi i64 [ 1, %._crit_edge123.1.preheader ], [ %indvars.iv.next154.2.3, %._crit_edge123.1 ]
  %lcmp.mod193.not = icmp eq i64 %xtraiter191, 0
  br i1 %lcmp.mod193.not, label %._crit_edge123.2.preheader, label %._crit_edge123.1.epil

._crit_edge123.1.epil:                            ; preds = %._crit_edge123.2.preheader.unr-lcssa, %._crit_edge123.1.epil
  %indvars.iv153.2.epil = phi i64 [ %indvars.iv.next154.2.epil, %._crit_edge123.1.epil ], [ %indvars.iv153.2.unr, %._crit_edge123.2.preheader.unr-lcssa ]
  %epil.iter192 = phi i64 [ %epil.iter192.next, %._crit_edge123.1.epil ], [ 0, %._crit_edge123.2.preheader.unr-lcssa ]
  %166 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %indvars.iv153.2.epil
  %167 = load i32, ptr %166, align 4, !tbaa !7
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 2, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !7
  %171 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %indvars.iv153.2.epil
  store i32 %170, ptr %171, align 4, !tbaa !7
  %indvars.iv.next154.2.epil = add nuw nsw i64 %indvars.iv153.2.epil, 1
  %epil.iter192.next = add i64 %epil.iter192, 1
  %epil.iter192.cmp.not = icmp eq i64 %epil.iter192.next, %xtraiter191
  br i1 %epil.iter192.cmp.not, label %._crit_edge123.2.preheader, label %._crit_edge123.1.epil, !llvm.loop !23

._crit_edge123.2.preheader:                       ; preds = %._crit_edge123.1.epil, %._crit_edge123.2.preheader.unr-lcssa
  %xtraiter196 = and i64 %63, 3
  %172 = icmp ult i32 %62, 4
  br i1 %172, label %._crit_edge123.3.preheader.unr-lcssa, label %._crit_edge123.2.preheader.new

._crit_edge123.2.preheader.new:                   ; preds = %._crit_edge123.2.preheader
  %unroll_iter199 = and i64 %63, 2147483644
  br label %._crit_edge123.2

._crit_edge123.2:                                 ; preds = %._crit_edge123.2, %._crit_edge123.2.preheader.new
  %indvars.iv153.3 = phi i64 [ 1, %._crit_edge123.2.preheader.new ], [ %indvars.iv.next154.3.3, %._crit_edge123.2 ]
  %niter200 = phi i64 [ 0, %._crit_edge123.2.preheader.new ], [ %niter200.next.3, %._crit_edge123.2 ]
  %173 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %indvars.iv153.3
  %174 = load i32, ptr %173, align 4, !tbaa !7
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !7
  %178 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %indvars.iv153.3
  store i32 %177, ptr %178, align 4, !tbaa !7
  %indvars.iv.next154.3 = add nuw nsw i64 %indvars.iv153.3, 1
  %179 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %indvars.iv.next154.3
  %180 = load i32, ptr %179, align 4, !tbaa !7
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !7
  %184 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %indvars.iv.next154.3
  store i32 %183, ptr %184, align 4, !tbaa !7
  %indvars.iv.next154.3.1 = add nuw nsw i64 %indvars.iv153.3, 2
  %185 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %indvars.iv.next154.3.1
  %186 = load i32, ptr %185, align 4, !tbaa !7
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !7
  %190 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %indvars.iv.next154.3.1
  store i32 %189, ptr %190, align 4, !tbaa !7
  %indvars.iv.next154.3.2 = add nuw nsw i64 %indvars.iv153.3, 3
  %191 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %indvars.iv.next154.3.2
  %192 = load i32, ptr %191, align 4, !tbaa !7
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !7
  %196 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %indvars.iv.next154.3.2
  store i32 %195, ptr %196, align 4, !tbaa !7
  %indvars.iv.next154.3.3 = add nuw nsw i64 %indvars.iv153.3, 4
  %niter200.next.3 = add i64 %niter200, 4
  %niter200.ncmp.3 = icmp eq i64 %niter200.next.3, %unroll_iter199
  br i1 %niter200.ncmp.3, label %._crit_edge123.3.preheader.unr-lcssa, label %._crit_edge123.2, !llvm.loop !20

._crit_edge123.3.preheader.unr-lcssa:             ; preds = %._crit_edge123.2, %._crit_edge123.2.preheader
  %indvars.iv153.3.unr = phi i64 [ 1, %._crit_edge123.2.preheader ], [ %indvars.iv.next154.3.3, %._crit_edge123.2 ]
  %lcmp.mod198.not = icmp eq i64 %xtraiter196, 0
  br i1 %lcmp.mod198.not, label %._crit_edge123.3.preheader, label %._crit_edge123.2.epil

._crit_edge123.2.epil:                            ; preds = %._crit_edge123.3.preheader.unr-lcssa, %._crit_edge123.2.epil
  %indvars.iv153.3.epil = phi i64 [ %indvars.iv.next154.3.epil, %._crit_edge123.2.epil ], [ %indvars.iv153.3.unr, %._crit_edge123.3.preheader.unr-lcssa ]
  %epil.iter197 = phi i64 [ %epil.iter197.next, %._crit_edge123.2.epil ], [ 0, %._crit_edge123.3.preheader.unr-lcssa ]
  %197 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %indvars.iv153.3.epil
  %198 = load i32, ptr %197, align 4, !tbaa !7
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 3, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !7
  %202 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %indvars.iv153.3.epil
  store i32 %201, ptr %202, align 4, !tbaa !7
  %indvars.iv.next154.3.epil = add nuw nsw i64 %indvars.iv153.3.epil, 1
  %epil.iter197.next = add i64 %epil.iter197, 1
  %epil.iter197.cmp.not = icmp eq i64 %epil.iter197.next, %xtraiter196
  br i1 %epil.iter197.cmp.not, label %._crit_edge123.3.preheader, label %._crit_edge123.2.epil, !llvm.loop !24

._crit_edge123.3.preheader:                       ; preds = %._crit_edge123.2.epil, %._crit_edge123.3.preheader.unr-lcssa
  %xtraiter201 = and i64 %63, 3
  %203 = icmp ult i32 %62, 4
  br i1 %203, label %._crit_edge123.4.preheader.unr-lcssa, label %._crit_edge123.3.preheader.new

._crit_edge123.3.preheader.new:                   ; preds = %._crit_edge123.3.preheader
  %unroll_iter204 = and i64 %63, 2147483644
  br label %._crit_edge123.3

._crit_edge123.3:                                 ; preds = %._crit_edge123.3, %._crit_edge123.3.preheader.new
  %indvars.iv153.4 = phi i64 [ 1, %._crit_edge123.3.preheader.new ], [ %indvars.iv.next154.4.3, %._crit_edge123.3 ]
  %niter205 = phi i64 [ 0, %._crit_edge123.3.preheader.new ], [ %niter205.next.3, %._crit_edge123.3 ]
  %204 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %indvars.iv153.4
  %205 = load i32, ptr %204, align 4, !tbaa !7
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !7
  %209 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %indvars.iv153.4
  store i32 %208, ptr %209, align 4, !tbaa !7
  %indvars.iv.next154.4 = add nuw nsw i64 %indvars.iv153.4, 1
  %210 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %indvars.iv.next154.4
  %211 = load i32, ptr %210, align 4, !tbaa !7
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !7
  %215 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %indvars.iv.next154.4
  store i32 %214, ptr %215, align 4, !tbaa !7
  %indvars.iv.next154.4.1 = add nuw nsw i64 %indvars.iv153.4, 2
  %216 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %indvars.iv.next154.4.1
  %217 = load i32, ptr %216, align 4, !tbaa !7
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %218
  %220 = load i32, ptr %219, align 4, !tbaa !7
  %221 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %indvars.iv.next154.4.1
  store i32 %220, ptr %221, align 4, !tbaa !7
  %indvars.iv.next154.4.2 = add nuw nsw i64 %indvars.iv153.4, 3
  %222 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %indvars.iv.next154.4.2
  %223 = load i32, ptr %222, align 4, !tbaa !7
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %224
  %226 = load i32, ptr %225, align 4, !tbaa !7
  %227 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %indvars.iv.next154.4.2
  store i32 %226, ptr %227, align 4, !tbaa !7
  %indvars.iv.next154.4.3 = add nuw nsw i64 %indvars.iv153.4, 4
  %niter205.next.3 = add i64 %niter205, 4
  %niter205.ncmp.3 = icmp eq i64 %niter205.next.3, %unroll_iter204
  br i1 %niter205.ncmp.3, label %._crit_edge123.4.preheader.unr-lcssa, label %._crit_edge123.3, !llvm.loop !20

._crit_edge123.4.preheader.unr-lcssa:             ; preds = %._crit_edge123.3, %._crit_edge123.3.preheader
  %indvars.iv153.4.unr = phi i64 [ 1, %._crit_edge123.3.preheader ], [ %indvars.iv.next154.4.3, %._crit_edge123.3 ]
  %lcmp.mod203.not = icmp eq i64 %xtraiter201, 0
  br i1 %lcmp.mod203.not, label %._crit_edge123.4.preheader, label %._crit_edge123.3.epil

._crit_edge123.3.epil:                            ; preds = %._crit_edge123.4.preheader.unr-lcssa, %._crit_edge123.3.epil
  %indvars.iv153.4.epil = phi i64 [ %indvars.iv.next154.4.epil, %._crit_edge123.3.epil ], [ %indvars.iv153.4.unr, %._crit_edge123.4.preheader.unr-lcssa ]
  %epil.iter202 = phi i64 [ %epil.iter202.next, %._crit_edge123.3.epil ], [ 0, %._crit_edge123.4.preheader.unr-lcssa ]
  %228 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %indvars.iv153.4.epil
  %229 = load i32, ptr %228, align 4, !tbaa !7
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 4, i64 %230
  %232 = load i32, ptr %231, align 4, !tbaa !7
  %233 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %indvars.iv153.4.epil
  store i32 %232, ptr %233, align 4, !tbaa !7
  %indvars.iv.next154.4.epil = add nuw nsw i64 %indvars.iv153.4.epil, 1
  %epil.iter202.next = add i64 %epil.iter202, 1
  %epil.iter202.cmp.not = icmp eq i64 %epil.iter202.next, %xtraiter201
  br i1 %epil.iter202.cmp.not, label %._crit_edge123.4.preheader, label %._crit_edge123.3.epil, !llvm.loop !25

._crit_edge123.4.preheader:                       ; preds = %._crit_edge123.3.epil, %._crit_edge123.4.preheader.unr-lcssa
  %xtraiter206 = and i64 %63, 3
  %234 = icmp ult i32 %62, 4
  br i1 %234, label %._crit_edge123.5.preheader.unr-lcssa, label %._crit_edge123.4.preheader.new

._crit_edge123.4.preheader.new:                   ; preds = %._crit_edge123.4.preheader
  %unroll_iter209 = and i64 %63, 2147483644
  br label %._crit_edge123.4

._crit_edge123.4:                                 ; preds = %._crit_edge123.4, %._crit_edge123.4.preheader.new
  %indvars.iv153.5 = phi i64 [ 1, %._crit_edge123.4.preheader.new ], [ %indvars.iv.next154.5.3, %._crit_edge123.4 ]
  %niter210 = phi i64 [ 0, %._crit_edge123.4.preheader.new ], [ %niter210.next.3, %._crit_edge123.4 ]
  %235 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %indvars.iv153.5
  %236 = load i32, ptr %235, align 4, !tbaa !7
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !7
  %240 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %indvars.iv153.5
  store i32 %239, ptr %240, align 4, !tbaa !7
  %indvars.iv.next154.5 = add nuw nsw i64 %indvars.iv153.5, 1
  %241 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %indvars.iv.next154.5
  %242 = load i32, ptr %241, align 4, !tbaa !7
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %243
  %245 = load i32, ptr %244, align 4, !tbaa !7
  %246 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %indvars.iv.next154.5
  store i32 %245, ptr %246, align 4, !tbaa !7
  %indvars.iv.next154.5.1 = add nuw nsw i64 %indvars.iv153.5, 2
  %247 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %indvars.iv.next154.5.1
  %248 = load i32, ptr %247, align 4, !tbaa !7
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %249
  %251 = load i32, ptr %250, align 4, !tbaa !7
  %252 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %indvars.iv.next154.5.1
  store i32 %251, ptr %252, align 4, !tbaa !7
  %indvars.iv.next154.5.2 = add nuw nsw i64 %indvars.iv153.5, 3
  %253 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %indvars.iv.next154.5.2
  %254 = load i32, ptr %253, align 4, !tbaa !7
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %255
  %257 = load i32, ptr %256, align 4, !tbaa !7
  %258 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %indvars.iv.next154.5.2
  store i32 %257, ptr %258, align 4, !tbaa !7
  %indvars.iv.next154.5.3 = add nuw nsw i64 %indvars.iv153.5, 4
  %niter210.next.3 = add i64 %niter210, 4
  %niter210.ncmp.3 = icmp eq i64 %niter210.next.3, %unroll_iter209
  br i1 %niter210.ncmp.3, label %._crit_edge123.5.preheader.unr-lcssa, label %._crit_edge123.4, !llvm.loop !20

._crit_edge123.5.preheader.unr-lcssa:             ; preds = %._crit_edge123.4, %._crit_edge123.4.preheader
  %indvars.iv153.5.unr = phi i64 [ 1, %._crit_edge123.4.preheader ], [ %indvars.iv.next154.5.3, %._crit_edge123.4 ]
  %lcmp.mod208.not = icmp eq i64 %xtraiter206, 0
  br i1 %lcmp.mod208.not, label %._crit_edge123.5.preheader, label %._crit_edge123.4.epil

._crit_edge123.4.epil:                            ; preds = %._crit_edge123.5.preheader.unr-lcssa, %._crit_edge123.4.epil
  %indvars.iv153.5.epil = phi i64 [ %indvars.iv.next154.5.epil, %._crit_edge123.4.epil ], [ %indvars.iv153.5.unr, %._crit_edge123.5.preheader.unr-lcssa ]
  %epil.iter207 = phi i64 [ %epil.iter207.next, %._crit_edge123.4.epil ], [ 0, %._crit_edge123.5.preheader.unr-lcssa ]
  %259 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %indvars.iv153.5.epil
  %260 = load i32, ptr %259, align 4, !tbaa !7
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 5, i64 %261
  %263 = load i32, ptr %262, align 4, !tbaa !7
  %264 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %indvars.iv153.5.epil
  store i32 %263, ptr %264, align 4, !tbaa !7
  %indvars.iv.next154.5.epil = add nuw nsw i64 %indvars.iv153.5.epil, 1
  %epil.iter207.next = add i64 %epil.iter207, 1
  %epil.iter207.cmp.not = icmp eq i64 %epil.iter207.next, %xtraiter206
  br i1 %epil.iter207.cmp.not, label %._crit_edge123.5.preheader, label %._crit_edge123.4.epil, !llvm.loop !26

._crit_edge123.5.preheader:                       ; preds = %._crit_edge123.4.epil, %._crit_edge123.5.preheader.unr-lcssa
  %xtraiter211 = and i64 %63, 3
  %265 = icmp ult i32 %62, 4
  br i1 %265, label %._crit_edge123.6.preheader.unr-lcssa, label %._crit_edge123.5.preheader.new

._crit_edge123.5.preheader.new:                   ; preds = %._crit_edge123.5.preheader
  %unroll_iter214 = and i64 %63, 2147483644
  br label %._crit_edge123.5

._crit_edge123.5:                                 ; preds = %._crit_edge123.5, %._crit_edge123.5.preheader.new
  %indvars.iv153.6 = phi i64 [ 1, %._crit_edge123.5.preheader.new ], [ %indvars.iv.next154.6.3, %._crit_edge123.5 ]
  %niter215 = phi i64 [ 0, %._crit_edge123.5.preheader.new ], [ %niter215.next.3, %._crit_edge123.5 ]
  %266 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %indvars.iv153.6
  %267 = load i32, ptr %266, align 4, !tbaa !7
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %268
  %270 = load i32, ptr %269, align 4, !tbaa !7
  %271 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %indvars.iv153.6
  store i32 %270, ptr %271, align 4, !tbaa !7
  %indvars.iv.next154.6 = add nuw nsw i64 %indvars.iv153.6, 1
  %272 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %indvars.iv.next154.6
  %273 = load i32, ptr %272, align 4, !tbaa !7
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %274
  %276 = load i32, ptr %275, align 4, !tbaa !7
  %277 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %indvars.iv.next154.6
  store i32 %276, ptr %277, align 4, !tbaa !7
  %indvars.iv.next154.6.1 = add nuw nsw i64 %indvars.iv153.6, 2
  %278 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %indvars.iv.next154.6.1
  %279 = load i32, ptr %278, align 4, !tbaa !7
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %280
  %282 = load i32, ptr %281, align 4, !tbaa !7
  %283 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %indvars.iv.next154.6.1
  store i32 %282, ptr %283, align 4, !tbaa !7
  %indvars.iv.next154.6.2 = add nuw nsw i64 %indvars.iv153.6, 3
  %284 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %indvars.iv.next154.6.2
  %285 = load i32, ptr %284, align 4, !tbaa !7
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %286
  %288 = load i32, ptr %287, align 4, !tbaa !7
  %289 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %indvars.iv.next154.6.2
  store i32 %288, ptr %289, align 4, !tbaa !7
  %indvars.iv.next154.6.3 = add nuw nsw i64 %indvars.iv153.6, 4
  %niter215.next.3 = add i64 %niter215, 4
  %niter215.ncmp.3 = icmp eq i64 %niter215.next.3, %unroll_iter214
  br i1 %niter215.ncmp.3, label %._crit_edge123.6.preheader.unr-lcssa, label %._crit_edge123.5, !llvm.loop !20

._crit_edge123.6.preheader.unr-lcssa:             ; preds = %._crit_edge123.5, %._crit_edge123.5.preheader
  %indvars.iv153.6.unr = phi i64 [ 1, %._crit_edge123.5.preheader ], [ %indvars.iv.next154.6.3, %._crit_edge123.5 ]
  %lcmp.mod213.not = icmp eq i64 %xtraiter211, 0
  br i1 %lcmp.mod213.not, label %._crit_edge123.6.preheader, label %._crit_edge123.5.epil

._crit_edge123.5.epil:                            ; preds = %._crit_edge123.6.preheader.unr-lcssa, %._crit_edge123.5.epil
  %indvars.iv153.6.epil = phi i64 [ %indvars.iv.next154.6.epil, %._crit_edge123.5.epil ], [ %indvars.iv153.6.unr, %._crit_edge123.6.preheader.unr-lcssa ]
  %epil.iter212 = phi i64 [ %epil.iter212.next, %._crit_edge123.5.epil ], [ 0, %._crit_edge123.6.preheader.unr-lcssa ]
  %290 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %indvars.iv153.6.epil
  %291 = load i32, ptr %290, align 4, !tbaa !7
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 6, i64 %292
  %294 = load i32, ptr %293, align 4, !tbaa !7
  %295 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %indvars.iv153.6.epil
  store i32 %294, ptr %295, align 4, !tbaa !7
  %indvars.iv.next154.6.epil = add nuw nsw i64 %indvars.iv153.6.epil, 1
  %epil.iter212.next = add i64 %epil.iter212, 1
  %epil.iter212.cmp.not = icmp eq i64 %epil.iter212.next, %xtraiter211
  br i1 %epil.iter212.cmp.not, label %._crit_edge123.6.preheader, label %._crit_edge123.5.epil, !llvm.loop !27

._crit_edge123.6.preheader:                       ; preds = %._crit_edge123.5.epil, %._crit_edge123.6.preheader.unr-lcssa
  %xtraiter216 = and i64 %63, 3
  %296 = icmp ult i32 %62, 4
  br i1 %296, label %._crit_edge123.7.preheader.unr-lcssa, label %._crit_edge123.6.preheader.new

._crit_edge123.6.preheader.new:                   ; preds = %._crit_edge123.6.preheader
  %unroll_iter219 = and i64 %63, 2147483644
  br label %._crit_edge123.6

._crit_edge123.6:                                 ; preds = %._crit_edge123.6, %._crit_edge123.6.preheader.new
  %indvars.iv153.7 = phi i64 [ 1, %._crit_edge123.6.preheader.new ], [ %indvars.iv.next154.7.3, %._crit_edge123.6 ]
  %niter220 = phi i64 [ 0, %._crit_edge123.6.preheader.new ], [ %niter220.next.3, %._crit_edge123.6 ]
  %297 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %indvars.iv153.7
  %298 = load i32, ptr %297, align 4, !tbaa !7
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %299
  %301 = load i32, ptr %300, align 4, !tbaa !7
  %302 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %indvars.iv153.7
  store i32 %301, ptr %302, align 4, !tbaa !7
  %indvars.iv.next154.7 = add nuw nsw i64 %indvars.iv153.7, 1
  %303 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %indvars.iv.next154.7
  %304 = load i32, ptr %303, align 4, !tbaa !7
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %305
  %307 = load i32, ptr %306, align 4, !tbaa !7
  %308 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %indvars.iv.next154.7
  store i32 %307, ptr %308, align 4, !tbaa !7
  %indvars.iv.next154.7.1 = add nuw nsw i64 %indvars.iv153.7, 2
  %309 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %indvars.iv.next154.7.1
  %310 = load i32, ptr %309, align 4, !tbaa !7
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %311
  %313 = load i32, ptr %312, align 4, !tbaa !7
  %314 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %indvars.iv.next154.7.1
  store i32 %313, ptr %314, align 4, !tbaa !7
  %indvars.iv.next154.7.2 = add nuw nsw i64 %indvars.iv153.7, 3
  %315 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %indvars.iv.next154.7.2
  %316 = load i32, ptr %315, align 4, !tbaa !7
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %317
  %319 = load i32, ptr %318, align 4, !tbaa !7
  %320 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %indvars.iv.next154.7.2
  store i32 %319, ptr %320, align 4, !tbaa !7
  %indvars.iv.next154.7.3 = add nuw nsw i64 %indvars.iv153.7, 4
  %niter220.next.3 = add i64 %niter220, 4
  %niter220.ncmp.3 = icmp eq i64 %niter220.next.3, %unroll_iter219
  br i1 %niter220.ncmp.3, label %._crit_edge123.7.preheader.unr-lcssa, label %._crit_edge123.6, !llvm.loop !20

._crit_edge123.7.preheader.unr-lcssa:             ; preds = %._crit_edge123.6, %._crit_edge123.6.preheader
  %indvars.iv153.7.unr = phi i64 [ 1, %._crit_edge123.6.preheader ], [ %indvars.iv.next154.7.3, %._crit_edge123.6 ]
  %lcmp.mod218.not = icmp eq i64 %xtraiter216, 0
  br i1 %lcmp.mod218.not, label %._crit_edge123.7.preheader, label %._crit_edge123.6.epil

._crit_edge123.6.epil:                            ; preds = %._crit_edge123.7.preheader.unr-lcssa, %._crit_edge123.6.epil
  %indvars.iv153.7.epil = phi i64 [ %indvars.iv.next154.7.epil, %._crit_edge123.6.epil ], [ %indvars.iv153.7.unr, %._crit_edge123.7.preheader.unr-lcssa ]
  %epil.iter217 = phi i64 [ %epil.iter217.next, %._crit_edge123.6.epil ], [ 0, %._crit_edge123.7.preheader.unr-lcssa ]
  %321 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %indvars.iv153.7.epil
  %322 = load i32, ptr %321, align 4, !tbaa !7
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 7, i64 %323
  %325 = load i32, ptr %324, align 4, !tbaa !7
  %326 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %indvars.iv153.7.epil
  store i32 %325, ptr %326, align 4, !tbaa !7
  %indvars.iv.next154.7.epil = add nuw nsw i64 %indvars.iv153.7.epil, 1
  %epil.iter217.next = add i64 %epil.iter217, 1
  %epil.iter217.cmp.not = icmp eq i64 %epil.iter217.next, %xtraiter216
  br i1 %epil.iter217.cmp.not, label %._crit_edge123.7.preheader, label %._crit_edge123.6.epil, !llvm.loop !28

._crit_edge123.7.preheader:                       ; preds = %._crit_edge123.6.epil, %._crit_edge123.7.preheader.unr-lcssa
  %xtraiter221 = and i64 %63, 3
  %327 = icmp ult i32 %62, 4
  br i1 %327, label %._crit_edge123.8.preheader.unr-lcssa, label %._crit_edge123.7.preheader.new

._crit_edge123.7.preheader.new:                   ; preds = %._crit_edge123.7.preheader
  %unroll_iter224 = and i64 %63, 2147483644
  br label %._crit_edge123.7

._crit_edge123.7:                                 ; preds = %._crit_edge123.7, %._crit_edge123.7.preheader.new
  %indvars.iv153.8 = phi i64 [ 1, %._crit_edge123.7.preheader.new ], [ %indvars.iv.next154.8.3, %._crit_edge123.7 ]
  %niter225 = phi i64 [ 0, %._crit_edge123.7.preheader.new ], [ %niter225.next.3, %._crit_edge123.7 ]
  %328 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %indvars.iv153.8
  %329 = load i32, ptr %328, align 4, !tbaa !7
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %330
  %332 = load i32, ptr %331, align 4, !tbaa !7
  %333 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 9, i64 %indvars.iv153.8
  store i32 %332, ptr %333, align 4, !tbaa !7
  %indvars.iv.next154.8 = add nuw nsw i64 %indvars.iv153.8, 1
  %334 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %indvars.iv.next154.8
  %335 = load i32, ptr %334, align 4, !tbaa !7
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %336
  %338 = load i32, ptr %337, align 4, !tbaa !7
  %339 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 9, i64 %indvars.iv.next154.8
  store i32 %338, ptr %339, align 4, !tbaa !7
  %indvars.iv.next154.8.1 = add nuw nsw i64 %indvars.iv153.8, 2
  %340 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %indvars.iv.next154.8.1
  %341 = load i32, ptr %340, align 4, !tbaa !7
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %342
  %344 = load i32, ptr %343, align 4, !tbaa !7
  %345 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 9, i64 %indvars.iv.next154.8.1
  store i32 %344, ptr %345, align 4, !tbaa !7
  %indvars.iv.next154.8.2 = add nuw nsw i64 %indvars.iv153.8, 3
  %346 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %indvars.iv.next154.8.2
  %347 = load i32, ptr %346, align 4, !tbaa !7
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %348
  %350 = load i32, ptr %349, align 4, !tbaa !7
  %351 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 9, i64 %indvars.iv.next154.8.2
  store i32 %350, ptr %351, align 4, !tbaa !7
  %indvars.iv.next154.8.3 = add nuw nsw i64 %indvars.iv153.8, 4
  %niter225.next.3 = add i64 %niter225, 4
  %niter225.ncmp.3 = icmp eq i64 %niter225.next.3, %unroll_iter224
  br i1 %niter225.ncmp.3, label %._crit_edge123.8.preheader.unr-lcssa, label %._crit_edge123.7, !llvm.loop !20

._crit_edge123.8.preheader.unr-lcssa:             ; preds = %._crit_edge123.7, %._crit_edge123.7.preheader
  %indvars.iv153.8.unr = phi i64 [ 1, %._crit_edge123.7.preheader ], [ %indvars.iv.next154.8.3, %._crit_edge123.7 ]
  %lcmp.mod223.not = icmp eq i64 %xtraiter221, 0
  br i1 %lcmp.mod223.not, label %._crit_edge123.8.preheader, label %._crit_edge123.7.epil

._crit_edge123.7.epil:                            ; preds = %._crit_edge123.8.preheader.unr-lcssa, %._crit_edge123.7.epil
  %indvars.iv153.8.epil = phi i64 [ %indvars.iv.next154.8.epil, %._crit_edge123.7.epil ], [ %indvars.iv153.8.unr, %._crit_edge123.8.preheader.unr-lcssa ]
  %epil.iter222 = phi i64 [ %epil.iter222.next, %._crit_edge123.7.epil ], [ 0, %._crit_edge123.8.preheader.unr-lcssa ]
  %352 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %indvars.iv153.8.epil
  %353 = load i32, ptr %352, align 4, !tbaa !7
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 8, i64 %354
  %356 = load i32, ptr %355, align 4, !tbaa !7
  %357 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 9, i64 %indvars.iv153.8.epil
  store i32 %356, ptr %357, align 4, !tbaa !7
  %indvars.iv.next154.8.epil = add nuw nsw i64 %indvars.iv153.8.epil, 1
  %epil.iter222.next = add i64 %epil.iter222, 1
  %epil.iter222.cmp.not = icmp eq i64 %epil.iter222.next, %xtraiter221
  br i1 %epil.iter222.cmp.not, label %._crit_edge123.8.preheader, label %._crit_edge123.7.epil, !llvm.loop !29

._crit_edge123.8.preheader:                       ; preds = %._crit_edge123.7.epil, %._crit_edge123.8.preheader.unr-lcssa
  %xtraiter226 = and i64 %63, 1
  %358 = icmp eq i64 %65, 0
  br i1 %358, label %._crit_edge123.9.preheader.unr-lcssa, label %._crit_edge123.8.preheader.new

._crit_edge123.8.preheader.new:                   ; preds = %._crit_edge123.8.preheader
  %unroll_iter229 = and i64 %63, 2147483646
  br label %._crit_edge123.8

._crit_edge123.8:                                 ; preds = %._crit_edge123.8, %._crit_edge123.8.preheader.new
  %indvars.iv153.9 = phi i64 [ 1, %._crit_edge123.8.preheader.new ], [ %indvars.iv.next154.9.1, %._crit_edge123.8 ]
  %niter230 = phi i64 [ 0, %._crit_edge123.8.preheader.new ], [ %niter230.next.1, %._crit_edge123.8 ]
  %359 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 9, i64 %indvars.iv153.9
  %360 = load i32, ptr %359, align 4, !tbaa !7
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 9, i64 %361
  %363 = load i32, ptr %362, align 4, !tbaa !7
  %364 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 10, i64 %indvars.iv153.9
  store i32 %363, ptr %364, align 4, !tbaa !7
  %indvars.iv.next154.9 = add nuw nsw i64 %indvars.iv153.9, 1
  %365 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 9, i64 %indvars.iv.next154.9
  %366 = load i32, ptr %365, align 4, !tbaa !7
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 9, i64 %367
  %369 = load i32, ptr %368, align 4, !tbaa !7
  %370 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 10, i64 %indvars.iv.next154.9
  store i32 %369, ptr %370, align 4, !tbaa !7
  %indvars.iv.next154.9.1 = add nuw nsw i64 %indvars.iv153.9, 2
  %niter230.next.1 = add i64 %niter230, 2
  %niter230.ncmp.1 = icmp eq i64 %niter230.next.1, %unroll_iter229
  br i1 %niter230.ncmp.1, label %._crit_edge123.9.preheader.unr-lcssa, label %._crit_edge123.8, !llvm.loop !20

._crit_edge123.9.preheader.unr-lcssa:             ; preds = %._crit_edge123.8, %._crit_edge123.8.preheader
  %indvars.iv153.9.unr = phi i64 [ 1, %._crit_edge123.8.preheader ], [ %indvars.iv.next154.9.1, %._crit_edge123.8 ]
  %lcmp.mod228.not = icmp eq i64 %xtraiter226, 0
  br i1 %lcmp.mod228.not, label %._crit_edge123.9.preheader, label %._crit_edge123.8.epil

._crit_edge123.8.epil:                            ; preds = %._crit_edge123.9.preheader.unr-lcssa
  %371 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 9, i64 %indvars.iv153.9.unr
  %372 = load i32, ptr %371, align 4, !tbaa !7
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 9, i64 %373
  %375 = load i32, ptr %374, align 4, !tbaa !7
  %376 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 10, i64 %indvars.iv153.9.unr
  store i32 %375, ptr %376, align 4, !tbaa !7
  br label %._crit_edge123.9.preheader

._crit_edge123.9.preheader:                       ; preds = %._crit_edge123.9.preheader.unr-lcssa, %._crit_edge123.8.epil
  %xtraiter231 = and i64 %63, 1
  %377 = icmp eq i64 %65, 0
  br i1 %377, label %._crit_edge123.10.preheader.unr-lcssa, label %._crit_edge123.9.preheader.new

._crit_edge123.9.preheader.new:                   ; preds = %._crit_edge123.9.preheader
  %unroll_iter234 = and i64 %63, 2147483646
  br label %._crit_edge123.9

._crit_edge123.9:                                 ; preds = %._crit_edge123.9, %._crit_edge123.9.preheader.new
  %indvars.iv153.10 = phi i64 [ 1, %._crit_edge123.9.preheader.new ], [ %indvars.iv.next154.10.1, %._crit_edge123.9 ]
  %niter235 = phi i64 [ 0, %._crit_edge123.9.preheader.new ], [ %niter235.next.1, %._crit_edge123.9 ]
  %378 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 10, i64 %indvars.iv153.10
  %379 = load i32, ptr %378, align 4, !tbaa !7
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 10, i64 %380
  %382 = load i32, ptr %381, align 4, !tbaa !7
  %383 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 11, i64 %indvars.iv153.10
  store i32 %382, ptr %383, align 4, !tbaa !7
  %indvars.iv.next154.10 = add nuw nsw i64 %indvars.iv153.10, 1
  %384 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 10, i64 %indvars.iv.next154.10
  %385 = load i32, ptr %384, align 4, !tbaa !7
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 10, i64 %386
  %388 = load i32, ptr %387, align 4, !tbaa !7
  %389 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 11, i64 %indvars.iv.next154.10
  store i32 %388, ptr %389, align 4, !tbaa !7
  %indvars.iv.next154.10.1 = add nuw nsw i64 %indvars.iv153.10, 2
  %niter235.next.1 = add i64 %niter235, 2
  %niter235.ncmp.1 = icmp eq i64 %niter235.next.1, %unroll_iter234
  br i1 %niter235.ncmp.1, label %._crit_edge123.10.preheader.unr-lcssa, label %._crit_edge123.9, !llvm.loop !20

._crit_edge123.10.preheader.unr-lcssa:            ; preds = %._crit_edge123.9, %._crit_edge123.9.preheader
  %indvars.iv153.10.unr = phi i64 [ 1, %._crit_edge123.9.preheader ], [ %indvars.iv.next154.10.1, %._crit_edge123.9 ]
  %lcmp.mod233.not = icmp eq i64 %xtraiter231, 0
  br i1 %lcmp.mod233.not, label %._crit_edge123.10.preheader, label %._crit_edge123.9.epil

._crit_edge123.9.epil:                            ; preds = %._crit_edge123.10.preheader.unr-lcssa
  %390 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 10, i64 %indvars.iv153.10.unr
  %391 = load i32, ptr %390, align 4, !tbaa !7
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 10, i64 %392
  %394 = load i32, ptr %393, align 4, !tbaa !7
  %395 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 11, i64 %indvars.iv153.10.unr
  store i32 %394, ptr %395, align 4, !tbaa !7
  br label %._crit_edge123.10.preheader

._crit_edge123.10.preheader:                      ; preds = %._crit_edge123.10.preheader.unr-lcssa, %._crit_edge123.9.epil
  %xtraiter236 = and i64 %63, 1
  %396 = icmp eq i64 %65, 0
  br i1 %396, label %._crit_edge123.11.preheader.unr-lcssa, label %._crit_edge123.10.preheader.new

._crit_edge123.10.preheader.new:                  ; preds = %._crit_edge123.10.preheader
  %unroll_iter239 = and i64 %63, 2147483646
  br label %._crit_edge123.10

._crit_edge123.10:                                ; preds = %._crit_edge123.10, %._crit_edge123.10.preheader.new
  %indvars.iv153.11 = phi i64 [ 1, %._crit_edge123.10.preheader.new ], [ %indvars.iv.next154.11.1, %._crit_edge123.10 ]
  %niter240 = phi i64 [ 0, %._crit_edge123.10.preheader.new ], [ %niter240.next.1, %._crit_edge123.10 ]
  %397 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 11, i64 %indvars.iv153.11
  %398 = load i32, ptr %397, align 4, !tbaa !7
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 11, i64 %399
  %401 = load i32, ptr %400, align 4, !tbaa !7
  %402 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 12, i64 %indvars.iv153.11
  store i32 %401, ptr %402, align 4, !tbaa !7
  %indvars.iv.next154.11 = add nuw nsw i64 %indvars.iv153.11, 1
  %403 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 11, i64 %indvars.iv.next154.11
  %404 = load i32, ptr %403, align 4, !tbaa !7
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 11, i64 %405
  %407 = load i32, ptr %406, align 4, !tbaa !7
  %408 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 12, i64 %indvars.iv.next154.11
  store i32 %407, ptr %408, align 4, !tbaa !7
  %indvars.iv.next154.11.1 = add nuw nsw i64 %indvars.iv153.11, 2
  %niter240.next.1 = add i64 %niter240, 2
  %niter240.ncmp.1 = icmp eq i64 %niter240.next.1, %unroll_iter239
  br i1 %niter240.ncmp.1, label %._crit_edge123.11.preheader.unr-lcssa, label %._crit_edge123.10, !llvm.loop !20

._crit_edge123.11.preheader.unr-lcssa:            ; preds = %._crit_edge123.10, %._crit_edge123.10.preheader
  %indvars.iv153.11.unr = phi i64 [ 1, %._crit_edge123.10.preheader ], [ %indvars.iv.next154.11.1, %._crit_edge123.10 ]
  %lcmp.mod238.not = icmp eq i64 %xtraiter236, 0
  br i1 %lcmp.mod238.not, label %._crit_edge123.11.preheader, label %._crit_edge123.10.epil

._crit_edge123.10.epil:                           ; preds = %._crit_edge123.11.preheader.unr-lcssa
  %409 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 11, i64 %indvars.iv153.11.unr
  %410 = load i32, ptr %409, align 4, !tbaa !7
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 11, i64 %411
  %413 = load i32, ptr %412, align 4, !tbaa !7
  %414 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 12, i64 %indvars.iv153.11.unr
  store i32 %413, ptr %414, align 4, !tbaa !7
  br label %._crit_edge123.11.preheader

._crit_edge123.11.preheader:                      ; preds = %._crit_edge123.11.preheader.unr-lcssa, %._crit_edge123.10.epil
  %xtraiter241 = and i64 %63, 1
  %415 = icmp eq i64 %65, 0
  br i1 %415, label %._crit_edge123.12.preheader.unr-lcssa, label %._crit_edge123.11.preheader.new

._crit_edge123.11.preheader.new:                  ; preds = %._crit_edge123.11.preheader
  %unroll_iter244 = and i64 %63, 2147483646
  br label %._crit_edge123.11

._crit_edge123.11:                                ; preds = %._crit_edge123.11, %._crit_edge123.11.preheader.new
  %indvars.iv153.12 = phi i64 [ 1, %._crit_edge123.11.preheader.new ], [ %indvars.iv.next154.12.1, %._crit_edge123.11 ]
  %niter245 = phi i64 [ 0, %._crit_edge123.11.preheader.new ], [ %niter245.next.1, %._crit_edge123.11 ]
  %416 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 12, i64 %indvars.iv153.12
  %417 = load i32, ptr %416, align 4, !tbaa !7
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 12, i64 %418
  %420 = load i32, ptr %419, align 4, !tbaa !7
  %421 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 13, i64 %indvars.iv153.12
  store i32 %420, ptr %421, align 4, !tbaa !7
  %indvars.iv.next154.12 = add nuw nsw i64 %indvars.iv153.12, 1
  %422 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 12, i64 %indvars.iv.next154.12
  %423 = load i32, ptr %422, align 4, !tbaa !7
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 12, i64 %424
  %426 = load i32, ptr %425, align 4, !tbaa !7
  %427 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 13, i64 %indvars.iv.next154.12
  store i32 %426, ptr %427, align 4, !tbaa !7
  %indvars.iv.next154.12.1 = add nuw nsw i64 %indvars.iv153.12, 2
  %niter245.next.1 = add i64 %niter245, 2
  %niter245.ncmp.1 = icmp eq i64 %niter245.next.1, %unroll_iter244
  br i1 %niter245.ncmp.1, label %._crit_edge123.12.preheader.unr-lcssa, label %._crit_edge123.11, !llvm.loop !20

._crit_edge123.12.preheader.unr-lcssa:            ; preds = %._crit_edge123.11, %._crit_edge123.11.preheader
  %indvars.iv153.12.unr = phi i64 [ 1, %._crit_edge123.11.preheader ], [ %indvars.iv.next154.12.1, %._crit_edge123.11 ]
  %lcmp.mod243.not = icmp eq i64 %xtraiter241, 0
  br i1 %lcmp.mod243.not, label %._crit_edge123.12.preheader, label %._crit_edge123.11.epil

._crit_edge123.11.epil:                           ; preds = %._crit_edge123.12.preheader.unr-lcssa
  %428 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 12, i64 %indvars.iv153.12.unr
  %429 = load i32, ptr %428, align 4, !tbaa !7
  %430 = sext i32 %429 to i64
  %431 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 12, i64 %430
  %432 = load i32, ptr %431, align 4, !tbaa !7
  %433 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 13, i64 %indvars.iv153.12.unr
  store i32 %432, ptr %433, align 4, !tbaa !7
  br label %._crit_edge123.12.preheader

._crit_edge123.12.preheader:                      ; preds = %._crit_edge123.12.preheader.unr-lcssa, %._crit_edge123.11.epil
  %xtraiter246 = and i64 %63, 1
  %434 = icmp eq i64 %65, 0
  br i1 %434, label %._crit_edge123.13.preheader.unr-lcssa, label %._crit_edge123.12.preheader.new

._crit_edge123.12.preheader.new:                  ; preds = %._crit_edge123.12.preheader
  %unroll_iter249 = and i64 %63, 2147483646
  br label %._crit_edge123.12

._crit_edge123.12:                                ; preds = %._crit_edge123.12, %._crit_edge123.12.preheader.new
  %indvars.iv153.13 = phi i64 [ 1, %._crit_edge123.12.preheader.new ], [ %indvars.iv.next154.13.1, %._crit_edge123.12 ]
  %niter250 = phi i64 [ 0, %._crit_edge123.12.preheader.new ], [ %niter250.next.1, %._crit_edge123.12 ]
  %435 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 13, i64 %indvars.iv153.13
  %436 = load i32, ptr %435, align 4, !tbaa !7
  %437 = sext i32 %436 to i64
  %438 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 13, i64 %437
  %439 = load i32, ptr %438, align 4, !tbaa !7
  %440 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 14, i64 %indvars.iv153.13
  store i32 %439, ptr %440, align 4, !tbaa !7
  %indvars.iv.next154.13 = add nuw nsw i64 %indvars.iv153.13, 1
  %441 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 13, i64 %indvars.iv.next154.13
  %442 = load i32, ptr %441, align 4, !tbaa !7
  %443 = sext i32 %442 to i64
  %444 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 13, i64 %443
  %445 = load i32, ptr %444, align 4, !tbaa !7
  %446 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 14, i64 %indvars.iv.next154.13
  store i32 %445, ptr %446, align 4, !tbaa !7
  %indvars.iv.next154.13.1 = add nuw nsw i64 %indvars.iv153.13, 2
  %niter250.next.1 = add i64 %niter250, 2
  %niter250.ncmp.1 = icmp eq i64 %niter250.next.1, %unroll_iter249
  br i1 %niter250.ncmp.1, label %._crit_edge123.13.preheader.unr-lcssa, label %._crit_edge123.12, !llvm.loop !20

._crit_edge123.13.preheader.unr-lcssa:            ; preds = %._crit_edge123.12, %._crit_edge123.12.preheader
  %indvars.iv153.13.unr = phi i64 [ 1, %._crit_edge123.12.preheader ], [ %indvars.iv.next154.13.1, %._crit_edge123.12 ]
  %lcmp.mod248.not = icmp eq i64 %xtraiter246, 0
  br i1 %lcmp.mod248.not, label %._crit_edge123.13.preheader, label %._crit_edge123.12.epil

._crit_edge123.12.epil:                           ; preds = %._crit_edge123.13.preheader.unr-lcssa
  %447 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 13, i64 %indvars.iv153.13.unr
  %448 = load i32, ptr %447, align 4, !tbaa !7
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 13, i64 %449
  %451 = load i32, ptr %450, align 4, !tbaa !7
  %452 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 14, i64 %indvars.iv153.13.unr
  store i32 %451, ptr %452, align 4, !tbaa !7
  br label %._crit_edge123.13.preheader

._crit_edge123.13.preheader:                      ; preds = %._crit_edge123.13.preheader.unr-lcssa, %._crit_edge123.12.epil
  %xtraiter251 = and i64 %63, 1
  %453 = icmp eq i64 %65, 0
  br i1 %453, label %._crit_edge123.14.preheader.unr-lcssa, label %._crit_edge123.13.preheader.new

._crit_edge123.13.preheader.new:                  ; preds = %._crit_edge123.13.preheader
  %unroll_iter254 = and i64 %63, 2147483646
  br label %._crit_edge123.13

._crit_edge123.13:                                ; preds = %._crit_edge123.13, %._crit_edge123.13.preheader.new
  %indvars.iv153.14 = phi i64 [ 1, %._crit_edge123.13.preheader.new ], [ %indvars.iv.next154.14.1, %._crit_edge123.13 ]
  %niter255 = phi i64 [ 0, %._crit_edge123.13.preheader.new ], [ %niter255.next.1, %._crit_edge123.13 ]
  %454 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 14, i64 %indvars.iv153.14
  %455 = load i32, ptr %454, align 4, !tbaa !7
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 14, i64 %456
  %458 = load i32, ptr %457, align 4, !tbaa !7
  %459 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 15, i64 %indvars.iv153.14
  store i32 %458, ptr %459, align 4, !tbaa !7
  %indvars.iv.next154.14 = add nuw nsw i64 %indvars.iv153.14, 1
  %460 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 14, i64 %indvars.iv.next154.14
  %461 = load i32, ptr %460, align 4, !tbaa !7
  %462 = sext i32 %461 to i64
  %463 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 14, i64 %462
  %464 = load i32, ptr %463, align 4, !tbaa !7
  %465 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 15, i64 %indvars.iv.next154.14
  store i32 %464, ptr %465, align 4, !tbaa !7
  %indvars.iv.next154.14.1 = add nuw nsw i64 %indvars.iv153.14, 2
  %niter255.next.1 = add i64 %niter255, 2
  %niter255.ncmp.1 = icmp eq i64 %niter255.next.1, %unroll_iter254
  br i1 %niter255.ncmp.1, label %._crit_edge123.14.preheader.unr-lcssa, label %._crit_edge123.13, !llvm.loop !20

._crit_edge123.14.preheader.unr-lcssa:            ; preds = %._crit_edge123.13, %._crit_edge123.13.preheader
  %indvars.iv153.14.unr = phi i64 [ 1, %._crit_edge123.13.preheader ], [ %indvars.iv.next154.14.1, %._crit_edge123.13 ]
  %lcmp.mod253.not = icmp eq i64 %xtraiter251, 0
  br i1 %lcmp.mod253.not, label %._crit_edge123.14.preheader, label %._crit_edge123.13.epil

._crit_edge123.13.epil:                           ; preds = %._crit_edge123.14.preheader.unr-lcssa
  %466 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 14, i64 %indvars.iv153.14.unr
  %467 = load i32, ptr %466, align 4, !tbaa !7
  %468 = sext i32 %467 to i64
  %469 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 14, i64 %468
  %470 = load i32, ptr %469, align 4, !tbaa !7
  %471 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 15, i64 %indvars.iv153.14.unr
  store i32 %470, ptr %471, align 4, !tbaa !7
  br label %._crit_edge123.14.preheader

._crit_edge123.14.preheader:                      ; preds = %._crit_edge123.14.preheader.unr-lcssa, %._crit_edge123.13.epil
  %xtraiter256 = and i64 %63, 1
  %472 = icmp eq i64 %65, 0
  br i1 %472, label %._crit_edge123.15.preheader.unr-lcssa, label %._crit_edge123.14.preheader.new

._crit_edge123.14.preheader.new:                  ; preds = %._crit_edge123.14.preheader
  %unroll_iter259 = and i64 %63, 2147483646
  br label %._crit_edge123.14

._crit_edge123.14:                                ; preds = %._crit_edge123.14, %._crit_edge123.14.preheader.new
  %indvars.iv153.15 = phi i64 [ 1, %._crit_edge123.14.preheader.new ], [ %indvars.iv.next154.15.1, %._crit_edge123.14 ]
  %niter260 = phi i64 [ 0, %._crit_edge123.14.preheader.new ], [ %niter260.next.1, %._crit_edge123.14 ]
  %473 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 15, i64 %indvars.iv153.15
  %474 = load i32, ptr %473, align 4, !tbaa !7
  %475 = sext i32 %474 to i64
  %476 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 15, i64 %475
  %477 = load i32, ptr %476, align 4, !tbaa !7
  %478 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 16, i64 %indvars.iv153.15
  store i32 %477, ptr %478, align 4, !tbaa !7
  %indvars.iv.next154.15 = add nuw nsw i64 %indvars.iv153.15, 1
  %479 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 15, i64 %indvars.iv.next154.15
  %480 = load i32, ptr %479, align 4, !tbaa !7
  %481 = sext i32 %480 to i64
  %482 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 15, i64 %481
  %483 = load i32, ptr %482, align 4, !tbaa !7
  %484 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 16, i64 %indvars.iv.next154.15
  store i32 %483, ptr %484, align 4, !tbaa !7
  %indvars.iv.next154.15.1 = add nuw nsw i64 %indvars.iv153.15, 2
  %niter260.next.1 = add i64 %niter260, 2
  %niter260.ncmp.1 = icmp eq i64 %niter260.next.1, %unroll_iter259
  br i1 %niter260.ncmp.1, label %._crit_edge123.15.preheader.unr-lcssa, label %._crit_edge123.14, !llvm.loop !20

._crit_edge123.15.preheader.unr-lcssa:            ; preds = %._crit_edge123.14, %._crit_edge123.14.preheader
  %indvars.iv153.15.unr = phi i64 [ 1, %._crit_edge123.14.preheader ], [ %indvars.iv.next154.15.1, %._crit_edge123.14 ]
  %lcmp.mod258.not = icmp eq i64 %xtraiter256, 0
  br i1 %lcmp.mod258.not, label %._crit_edge123.15.preheader, label %._crit_edge123.14.epil

._crit_edge123.14.epil:                           ; preds = %._crit_edge123.15.preheader.unr-lcssa
  %485 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 15, i64 %indvars.iv153.15.unr
  %486 = load i32, ptr %485, align 4, !tbaa !7
  %487 = sext i32 %486 to i64
  %488 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 15, i64 %487
  %489 = load i32, ptr %488, align 4, !tbaa !7
  %490 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 16, i64 %indvars.iv153.15.unr
  store i32 %489, ptr %490, align 4, !tbaa !7
  br label %._crit_edge123.15.preheader

._crit_edge123.15.preheader:                      ; preds = %._crit_edge123.15.preheader.unr-lcssa, %._crit_edge123.14.epil
  %xtraiter261 = and i64 %63, 1
  %491 = icmp eq i64 %65, 0
  br i1 %491, label %._crit_edge123.16.preheader.unr-lcssa, label %._crit_edge123.15.preheader.new

._crit_edge123.15.preheader.new:                  ; preds = %._crit_edge123.15.preheader
  %unroll_iter264 = and i64 %63, 2147483646
  br label %._crit_edge123.15

._crit_edge123.15:                                ; preds = %._crit_edge123.15, %._crit_edge123.15.preheader.new
  %indvars.iv153.16 = phi i64 [ 1, %._crit_edge123.15.preheader.new ], [ %indvars.iv.next154.16.1, %._crit_edge123.15 ]
  %niter265 = phi i64 [ 0, %._crit_edge123.15.preheader.new ], [ %niter265.next.1, %._crit_edge123.15 ]
  %492 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 16, i64 %indvars.iv153.16
  %493 = load i32, ptr %492, align 4, !tbaa !7
  %494 = sext i32 %493 to i64
  %495 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 16, i64 %494
  %496 = load i32, ptr %495, align 4, !tbaa !7
  %497 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 17, i64 %indvars.iv153.16
  store i32 %496, ptr %497, align 4, !tbaa !7
  %indvars.iv.next154.16 = add nuw nsw i64 %indvars.iv153.16, 1
  %498 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 16, i64 %indvars.iv.next154.16
  %499 = load i32, ptr %498, align 4, !tbaa !7
  %500 = sext i32 %499 to i64
  %501 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 16, i64 %500
  %502 = load i32, ptr %501, align 4, !tbaa !7
  %503 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 17, i64 %indvars.iv.next154.16
  store i32 %502, ptr %503, align 4, !tbaa !7
  %indvars.iv.next154.16.1 = add nuw nsw i64 %indvars.iv153.16, 2
  %niter265.next.1 = add i64 %niter265, 2
  %niter265.ncmp.1 = icmp eq i64 %niter265.next.1, %unroll_iter264
  br i1 %niter265.ncmp.1, label %._crit_edge123.16.preheader.unr-lcssa, label %._crit_edge123.15, !llvm.loop !20

._crit_edge123.16.preheader.unr-lcssa:            ; preds = %._crit_edge123.15, %._crit_edge123.15.preheader
  %indvars.iv153.16.unr = phi i64 [ 1, %._crit_edge123.15.preheader ], [ %indvars.iv.next154.16.1, %._crit_edge123.15 ]
  %lcmp.mod263.not = icmp eq i64 %xtraiter261, 0
  br i1 %lcmp.mod263.not, label %._crit_edge123.16.preheader, label %._crit_edge123.15.epil

._crit_edge123.15.epil:                           ; preds = %._crit_edge123.16.preheader.unr-lcssa
  %504 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 16, i64 %indvars.iv153.16.unr
  %505 = load i32, ptr %504, align 4, !tbaa !7
  %506 = sext i32 %505 to i64
  %507 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 16, i64 %506
  %508 = load i32, ptr %507, align 4, !tbaa !7
  %509 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 17, i64 %indvars.iv153.16.unr
  store i32 %508, ptr %509, align 4, !tbaa !7
  br label %._crit_edge123.16.preheader

._crit_edge123.16.preheader:                      ; preds = %._crit_edge123.16.preheader.unr-lcssa, %._crit_edge123.15.epil
  %xtraiter266 = and i64 %63, 1
  %510 = icmp eq i64 %65, 0
  br i1 %510, label %.split.us.loopexit.unr-lcssa, label %._crit_edge123.16.preheader.new

._crit_edge123.16.preheader.new:                  ; preds = %._crit_edge123.16.preheader
  %unroll_iter269 = and i64 %63, 2147483646
  br label %._crit_edge123.16

._crit_edge123.16:                                ; preds = %._crit_edge123.16, %._crit_edge123.16.preheader.new
  %indvars.iv153.17 = phi i64 [ 1, %._crit_edge123.16.preheader.new ], [ %indvars.iv.next154.17.1, %._crit_edge123.16 ]
  %niter270 = phi i64 [ 0, %._crit_edge123.16.preheader.new ], [ %niter270.next.1, %._crit_edge123.16 ]
  %511 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 17, i64 %indvars.iv153.17
  %512 = load i32, ptr %511, align 4, !tbaa !7
  %513 = sext i32 %512 to i64
  %514 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 17, i64 %513
  %515 = load i32, ptr %514, align 4, !tbaa !7
  %516 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 18, i64 %indvars.iv153.17
  store i32 %515, ptr %516, align 4, !tbaa !7
  %indvars.iv.next154.17 = add nuw nsw i64 %indvars.iv153.17, 1
  %517 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 17, i64 %indvars.iv.next154.17
  %518 = load i32, ptr %517, align 4, !tbaa !7
  %519 = sext i32 %518 to i64
  %520 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 17, i64 %519
  %521 = load i32, ptr %520, align 4, !tbaa !7
  %522 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 18, i64 %indvars.iv.next154.17
  store i32 %521, ptr %522, align 4, !tbaa !7
  %indvars.iv.next154.17.1 = add nuw nsw i64 %indvars.iv153.17, 2
  %niter270.next.1 = add i64 %niter270, 2
  %niter270.ncmp.1 = icmp eq i64 %niter270.next.1, %unroll_iter269
  br i1 %niter270.ncmp.1, label %.split.us.loopexit.unr-lcssa, label %._crit_edge123.16, !llvm.loop !20

523:                                              ; preds = %523, %.preheader.preheader.new
  %indvars.iv153 = phi i64 [ 1, %.preheader.preheader.new ], [ %indvars.iv.next154.3182, %523 ]
  %niter = phi i64 [ 0, %.preheader.preheader.new ], [ %niter.next.3, %523 ]
  %524 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 0, i64 %indvars.iv153
  %525 = load i32, ptr %524, align 4, !tbaa !7
  %526 = sext i32 %525 to i64
  %527 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 0, i64 %526
  %528 = load i32, ptr %527, align 4, !tbaa !7
  %529 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %indvars.iv153
  store i32 %528, ptr %529, align 4, !tbaa !7
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %530 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 0, i64 %indvars.iv.next154
  %531 = load i32, ptr %530, align 4, !tbaa !7
  %532 = sext i32 %531 to i64
  %533 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 0, i64 %532
  %534 = load i32, ptr %533, align 4, !tbaa !7
  %535 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %indvars.iv.next154
  store i32 %534, ptr %535, align 4, !tbaa !7
  %indvars.iv.next154.1178 = add nuw nsw i64 %indvars.iv153, 2
  %536 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 0, i64 %indvars.iv.next154.1178
  %537 = load i32, ptr %536, align 4, !tbaa !7
  %538 = sext i32 %537 to i64
  %539 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 0, i64 %538
  %540 = load i32, ptr %539, align 4, !tbaa !7
  %541 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %indvars.iv.next154.1178
  store i32 %540, ptr %541, align 4, !tbaa !7
  %indvars.iv.next154.2180 = add nuw nsw i64 %indvars.iv153, 3
  %542 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 0, i64 %indvars.iv.next154.2180
  %543 = load i32, ptr %542, align 4, !tbaa !7
  %544 = sext i32 %543 to i64
  %545 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 0, i64 %544
  %546 = load i32, ptr %545, align 4, !tbaa !7
  %547 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %indvars.iv.next154.2180
  store i32 %546, ptr %547, align 4, !tbaa !7
  %indvars.iv.next154.3182 = add nuw nsw i64 %indvars.iv153, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge123.preheader.unr-lcssa, label %523, !llvm.loop !20

._crit_edge123.preheader.unr-lcssa:               ; preds = %523, %.preheader.preheader
  %indvars.iv153.unr = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next154.3182, %523 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge123.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge123.preheader.unr-lcssa, %.epil.preheader
  %indvars.iv153.epil = phi i64 [ %indvars.iv.next154.epil, %.epil.preheader ], [ %indvars.iv153.unr, %._crit_edge123.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge123.preheader.unr-lcssa ]
  %548 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 0, i64 %indvars.iv153.epil
  %549 = load i32, ptr %548, align 4, !tbaa !7
  %550 = sext i32 %549 to i64
  %551 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 0, i64 %550
  %552 = load i32, ptr %551, align 4, !tbaa !7
  %553 = getelementptr inbounds [19 x [500001 x i32]], ptr @fa, i64 0, i64 1, i64 %indvars.iv153.epil
  store i32 %552, ptr %553, align 4, !tbaa !7
  %indvars.iv.next154.epil = add nuw nsw i64 %indvars.iv153.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge123.preheader, label %.epil.preheader, !llvm.loop !30

._crit_edge123.preheader:                         ; preds = %.epil.preheader, %._crit_edge123.preheader.unr-lcssa
  %xtraiter183 = and i64 %63, 3
  %554 = icmp ult i32 %62, 4
  br i1 %554, label %._crit_edge123.1.preheader.unr-lcssa, label %._crit_edge123.preheader.new

._crit_edge123.preheader.new:                     ; preds = %._crit_edge123.preheader
  %unroll_iter186 = and i64 %63, 2147483644
  br label %._crit_edge123

._crit_edge129.loopexit:                          ; preds = %598
  %.pre175 = load i32, ptr @tot, align 4, !tbaa !7
  br label %._crit_edge129

._crit_edge129:                                   ; preds = %._crit_edge129.loopexit, %.split.us
  %555 = phi i32 [ %.pre175, %._crit_edge129.loopexit ], [ 0, %.split.us ]
  %556 = sext i32 %555 to i64
  %gep147 = getelementptr %struct.Event, ptr getelementptr inbounds (i8, ptr @event, i64 8), i64 %556
  call void @_ZSt4sortIP5EventEvT_S2_(ptr noundef nonnull getelementptr inbounds (i8, ptr @event, i64 8), ptr noundef nonnull %gep147)
  %557 = load i32, ptr @st, align 4, !tbaa !7
  %558 = add nsw i32 %557, 1
  store i32 %558, ptr @st, align 4, !tbaa !7
  %559 = load i32, ptr @tot, align 4, !tbaa !7
  %.not101130 = icmp slt i32 %559, 1
  br i1 %.not101130, label %._crit_edge134, label %.lr.ph133

.lr.ph128:                                        ; preds = %.split.us, %598
  %560 = phi i32 [ %599, %598 ], [ %110, %.split.us ]
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %598 ], [ 1, %.split.us ]
  %561 = getelementptr inbounds [100001 x %struct.Query], ptr @query, i64 0, i64 %indvars.iv160
  %562 = load i32, ptr %561, align 4, !tbaa !12
  %563 = icmp eq i32 %562, 1
  br i1 %563, label %564, label %584

564:                                              ; preds = %.lr.ph128
  %565 = load i32, ptr @tot, align 4, !tbaa !7
  %566 = add nsw i32 %565, 1
  store i32 %566, ptr @tot, align 4, !tbaa !7
  %567 = sext i32 %566 to i64
  %568 = getelementptr inbounds [200003 x %struct.Event], ptr @event, i64 0, i64 %567
  %569 = trunc nuw nsw i64 %indvars.iv160 to i32
  store i32 %569, ptr %568, align 8, !tbaa !7
  %.sroa.432.0..sroa_idx = getelementptr inbounds i8, ptr %568, i64 4
  store i32 %569, ptr %.sroa.432.0..sroa_idx, align 4, !tbaa !7
  %570 = load i32, ptr @qtot, align 4, !tbaa !7
  %571 = sext i32 %570 to i64
  %gep = getelementptr i32, ptr getelementptr inbounds (i8, ptr @que, i64 4), i64 %571
  %572 = getelementptr inbounds i8, ptr %561, i64 12
  %573 = call noundef ptr @_ZSt11lower_boundIPiiET_S1_S1_RKT0_(ptr noundef nonnull getelementptr inbounds (i8, ptr @que, i64 4), ptr noundef nonnull %gep, ptr noundef nonnull align 4 dereferenceable(4) %572)
  %574 = ptrtoint ptr %573 to i64
  %575 = sub i64 %574, ptrtoint (ptr @que to i64)
  %576 = lshr exact i64 %575, 2
  %577 = trunc i64 %576 to i32
  store i32 %577, ptr %572, align 4, !tbaa !14
  %578 = getelementptr inbounds i8, ptr %561, i64 4
  %579 = load i32, ptr %578, align 4, !tbaa !31
  %580 = getelementptr inbounds i8, ptr %561, i64 8
  %581 = load i32, ptr %580, align 4, !tbaa !32
  %582 = call noundef i32 @_Z3lcaii(i32 noundef %579, i32 noundef %581)
  %583 = getelementptr inbounds i8, ptr %561, i64 16
  store i32 %582, ptr %583, align 4, !tbaa !33
  %.pre174 = load i32, ptr @q, align 4, !tbaa !7
  br label %598

584:                                              ; preds = %.lr.ph128
  %585 = getelementptr inbounds i8, ptr %561, i64 8
  %586 = load i32, ptr %585, align 4, !tbaa !32
  %587 = add nsw i32 %586, -1
  %588 = load i32, ptr @tot, align 4, !tbaa !7
  %589 = add nsw i32 %588, 1
  %590 = sext i32 %589 to i64
  %591 = getelementptr inbounds [200003 x %struct.Event], ptr @event, i64 0, i64 %590
  store i32 %587, ptr %591, align 8, !tbaa !7
  %.sroa.430.0..sroa_idx = getelementptr inbounds i8, ptr %591, i64 4
  %592 = trunc nuw nsw i64 %indvars.iv160 to i32
  store i32 %592, ptr %.sroa.430.0..sroa_idx, align 4, !tbaa !7
  %593 = getelementptr inbounds i8, ptr %561, i64 12
  %594 = load i32, ptr %593, align 4, !tbaa !14
  %595 = add nsw i32 %588, 2
  store i32 %595, ptr @tot, align 4, !tbaa !7
  %596 = sext i32 %595 to i64
  %597 = getelementptr inbounds [200003 x %struct.Event], ptr @event, i64 0, i64 %596
  store i32 %594, ptr %597, align 8, !tbaa !7
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %597, i64 4
  store i32 %592, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !7
  br label %598

598:                                              ; preds = %584, %564
  %599 = phi i32 [ %560, %584 ], [ %.pre174, %564 ]
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %600 = sext i32 %599 to i64
  %.not100.not = icmp slt i64 %indvars.iv160, %600
  br i1 %.not100.not, label %.lr.ph128, label %._crit_edge129.loopexit, !llvm.loop !34

._crit_edge134:                                   ; preds = %663, %._crit_edge129
  store i32 0, ptr @tot, align 4, !tbaa !7
  %601 = load i32, ptr @q, align 4, !tbaa !7
  %.not102136 = icmp slt i32 %601, 1
  br i1 %.not102136, label %._crit_edge140, label %.lr.ph139.preheader

.lr.ph139.preheader:                              ; preds = %._crit_edge134
  %602 = add nuw i32 %601, 1
  %wide.trip.count169 = zext i32 %602 to i64
  br label %.lr.ph139

.lr.ph133:                                        ; preds = %._crit_edge129, %663
  %indvars.iv163 = phi i64 [ %indvars.iv.next164, %663 ], [ 1, %._crit_edge129 ]
  %603 = getelementptr inbounds [200003 x %struct.Event], ptr @event, i64 0, i64 %indvars.iv163
  %604 = getelementptr inbounds i8, ptr %603, i64 4
  %605 = load i32, ptr %604, align 4, !tbaa !35
  %606 = sext i32 %605 to i64
  %607 = getelementptr inbounds [100001 x %struct.Query], ptr @query, i64 0, i64 %606
  %608 = load i32, ptr %607, align 4, !tbaa !12
  %609 = icmp eq i32 %608, 1
  br i1 %609, label %610, label %634

610:                                              ; preds = %.lr.ph133
  %611 = getelementptr inbounds i8, ptr %607, i64 4
  %612 = load i32, ptr %611, align 4, !tbaa !31
  %613 = sext i32 %612 to i64
  %614 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %613
  %615 = load i32, ptr %614, align 4, !tbaa !7
  call void @_Z7bit_addii(i32 noundef %615, i32 noundef 1)
  %616 = getelementptr inbounds i8, ptr %607, i64 8
  %617 = load i32, ptr %616, align 4, !tbaa !32
  %618 = sext i32 %617 to i64
  %619 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %618
  %620 = load i32, ptr %619, align 4, !tbaa !7
  call void @_Z7bit_addii(i32 noundef %620, i32 noundef 1)
  %621 = getelementptr inbounds i8, ptr %607, i64 16
  %622 = load i32, ptr %621, align 4, !tbaa !33
  %623 = sext i32 %622 to i64
  %624 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %623
  %625 = load i32, ptr %624, align 4, !tbaa !7
  call void @_Z7bit_addii(i32 noundef %625, i32 noundef -1)
  %626 = load i32, ptr %621, align 4, !tbaa !33
  %627 = sext i32 %626 to i64
  %628 = getelementptr inbounds [500001 x i32], ptr @fa, i64 0, i64 %627
  %629 = load i32, ptr %628, align 4, !tbaa !7
  %.not104 = icmp eq i32 %629, 0
  br i1 %.not104, label %663, label %630

630:                                              ; preds = %610
  %631 = sext i32 %629 to i64
  %632 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %631
  %633 = load i32, ptr %632, align 4, !tbaa !7
  call void @_Z7bit_addii(i32 noundef %633, i32 noundef -1)
  br label %663

634:                                              ; preds = %.lr.ph133
  %635 = load i32, ptr %603, align 8, !tbaa !37
  %636 = getelementptr inbounds i8, ptr %607, i64 8
  %637 = load i32, ptr %636, align 4, !tbaa !32
  %638 = icmp slt i32 %635, %637
  %639 = getelementptr inbounds i8, ptr %607, i64 4
  %640 = load i32, ptr %639, align 4, !tbaa !31
  %641 = sext i32 %640 to i64
  %642 = getelementptr inbounds [500001 x i32], ptr @out, i64 0, i64 %641
  %643 = load i32, ptr %642, align 4, !tbaa !7
  %644 = call noundef i32 @_Z7bit_sumi(i32 noundef %643)
  %645 = load i32, ptr %639, align 4, !tbaa !31
  %646 = sext i32 %645 to i64
  %647 = getelementptr inbounds [500001 x i32], ptr @in, i64 0, i64 %646
  %648 = load i32, ptr %647, align 4, !tbaa !7
  %649 = add nsw i32 %648, -1
  %650 = call noundef i32 @_Z7bit_sumi(i32 noundef %649)
  br i1 %638, label %651, label %656

651:                                              ; preds = %634
  %652 = sub nsw i32 %644, %650
  %653 = load i32, ptr %604, align 4, !tbaa !35
  %654 = sext i32 %653 to i64
  %655 = getelementptr inbounds [100001 x i32], ptr @res, i64 0, i64 %654
  store i32 %652, ptr %655, align 4, !tbaa !7
  br label %663

656:                                              ; preds = %634
  %657 = load i32, ptr %604, align 4, !tbaa !35
  %658 = sext i32 %657 to i64
  %659 = getelementptr inbounds [100001 x i32], ptr @res, i64 0, i64 %658
  %660 = load i32, ptr %659, align 4, !tbaa !7
  %661 = add i32 %650, %660
  %662 = sub i32 %644, %661
  store i32 %662, ptr %659, align 4, !tbaa !7
  br label %663

663:                                              ; preds = %651, %656, %610, %630
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %664 = load i32, ptr @tot, align 4, !tbaa !7
  %665 = sext i32 %664 to i64
  %.not101.not = icmp slt i64 %indvars.iv163, %665
  br i1 %.not101.not, label %.lr.ph133, label %._crit_edge134, !llvm.loop !38

._crit_edge140:                                   ; preds = %685, %._crit_edge134
  %666 = phi i32 [ 0, %._crit_edge134 ], [ %686, %685 ]
  %667 = load i32, ptr @qtot, align 4, !tbaa !7
  call void @_Z5solveiiii(i32 noundef 1, i32 noundef %666, i32 noundef 1, i32 noundef %667)
  %668 = load i32, ptr @q, align 4, !tbaa !7
  %.not103141 = icmp slt i32 %668, 1
  br i1 %.not103141, label %.loopexit, label %.lr.ph144

.lr.ph139:                                        ; preds = %.lr.ph139.preheader, %685
  %indvars.iv166 = phi i64 [ 1, %.lr.ph139.preheader ], [ %indvars.iv.next167, %685 ]
  %669 = phi i32 [ 0, %.lr.ph139.preheader ], [ %686, %685 ]
  %670 = getelementptr inbounds [100001 x %struct.Query], ptr @query, i64 0, i64 %indvars.iv166
  %671 = load i32, ptr %670, align 4, !tbaa !12
  %672 = icmp eq i32 %671, 2
  br i1 %672, label %673, label %680

673:                                              ; preds = %.lr.ph139
  %674 = getelementptr inbounds [100001 x i32], ptr @res, i64 0, i64 %indvars.iv166
  %675 = load i32, ptr %674, align 4, !tbaa !7
  %676 = getelementptr inbounds i8, ptr %670, i64 16
  %677 = load i32, ptr %676, align 4, !tbaa !33
  %678 = icmp slt i32 %675, %677
  br i1 %678, label %679, label %680

679:                                              ; preds = %673
  store i32 -1, ptr %674, align 4, !tbaa !7
  br label %685

680:                                              ; preds = %673, %.lr.ph139
  %681 = add nsw i32 %669, 1
  store i32 %681, ptr @tot, align 4, !tbaa !7
  %682 = sext i32 %681 to i64
  %683 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %682
  %684 = trunc nuw nsw i64 %indvars.iv166 to i32
  store i32 %684, ptr %683, align 4, !tbaa !7
  br label %685

685:                                              ; preds = %679, %680
  %686 = phi i32 [ %669, %679 ], [ %681, %680 ]
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %exitcond170.not = icmp eq i64 %indvars.iv.next167, %wide.trip.count169
  br i1 %exitcond170.not, label %._crit_edge140, label %.lr.ph139, !llvm.loop !39

.lr.ph144:                                        ; preds = %._crit_edge140, %695
  %687 = phi i32 [ %696, %695 ], [ %668, %._crit_edge140 ]
  %indvars.iv171 = phi i64 [ %indvars.iv.next172, %695 ], [ 1, %._crit_edge140 ]
  %688 = getelementptr inbounds [100001 x %struct.Query], ptr @query, i64 0, i64 %indvars.iv171
  %689 = load i32, ptr %688, align 4, !tbaa !12
  %690 = icmp eq i32 %689, 2
  br i1 %690, label %691, label %695

691:                                              ; preds = %.lr.ph144
  %692 = getelementptr inbounds [100001 x i32], ptr @res, i64 0, i64 %indvars.iv171
  %693 = load i32, ptr %692, align 4, !tbaa !7
  %694 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %693)
  %.pre176 = load i32, ptr @q, align 4, !tbaa !7
  br label %695

695:                                              ; preds = %.lr.ph144, %691
  %696 = phi i32 [ %687, %.lr.ph144 ], [ %.pre176, %691 ]
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %697 = sext i32 %696 to i64
  %.not103.not = icmp slt i64 %indvars.iv171, %697
  br i1 %.not103.not, label %.lr.ph144, label %.loopexit, !llvm.loop !40

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPiET_S1_S1_(ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = !{!13, !8, i64 0}
!13 = !{!"_ZTS5Query", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16}
!14 = !{!13, !8, i64 12}
!15 = distinct !{!15, !6}
!16 = !{!17, !8, i64 4}
!17 = !{!"_ZTS4Edge", !8, i64 0, !8, i64 4}
!18 = !{!17, !8, i64 0}
!19 = distinct !{!19, !6}
!20 = distinct !{!20, !6}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}
!29 = distinct !{!29, !22}
!30 = distinct !{!30, !22}
!31 = !{!13, !8, i64 4}
!32 = !{!13, !8, i64 8}
!33 = !{!13, !8, i64 16}
!34 = distinct !{!34, !6}
!35 = !{!36, !8, i64 4}
!36 = !{!"_ZTS5Event", !8, i64 0, !8, i64 4}
!37 = !{!36, !8, i64 0}
!38 = distinct !{!38, !6}
!39 = distinct !{!39, !6}
!40 = distinct !{!40, !6}


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