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

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

@n = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@nxt = external dso_local global [100010 x i32], align 16
@now = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@cir = external dso_local global [100010 x i32], align 16
@cir_cnt = external dso_local global [100010 x i32], align 16
@cir_no = external dso_local global [100010 x i32], align 16
@fa = external dso_local global [100010 x [18 x i32]], align 16
@gen = external dso_local global [100010 x i32], align 16
@dfsno = external dso_local global [100010 x i32], align 16
@vis = external dso_local global [100010 x i32], align 16
@dep = external dso_local global [100010 x i32], 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 [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  br label %13

13:                                               ; preds = %216, %0
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  %15 = icmp eq i32 %14, 1
  br i1 %15, label %16, label %217

16:                                               ; preds = %13
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @cir, i8 0, i64 400040, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @dep, i8 0, i64 400040, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @dfsno, i8 0, i64 400040, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @cir_no, i8 0, i64 400040, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 400040, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %27, %16
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = icmp sle i32 %18, %19
  br i1 %20, label %22, label %21

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

22:                                               ; preds = %17
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds i32, ptr @nxt, i64 %24
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %25)
  br label %27

27:                                               ; preds = %22
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %2, align 4, !tbaa !5
  br label %17, !llvm.loop !9

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

31:                                               ; preds = %46, %30
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = load i32, ptr @n, align 4, !tbaa !5
  %34 = icmp sle i32 %32, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %31
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100010 x i32], ptr @dfsno, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %45, label %42

42:                                               ; preds = %36
  %43 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %43, ptr @now, align 4, !tbaa !5
  %44 = load i32, ptr %3, align 4, !tbaa !5
  call void @_Z3pfsi(i32 noundef %44)
  br label %45

45:                                               ; preds = %42, %36
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %3, align 4, !tbaa !5
  br label %31, !llvm.loop !11

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

50:                                               ; preds = %64, %49
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = load i32, ptr @n, align 4, !tbaa !5
  %53 = icmp sle i32 %51, %52
  br i1 %53, label %55, label %54

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

55:                                               ; preds = %50
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100010 x i32], ptr @vis, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %63, label %61

61:                                               ; preds = %55
  %62 = load i32, ptr %4, align 4, !tbaa !5
  call void @_Z3dfsi(i32 noundef %62)
  br label %63

63:                                               ; preds = %61, %55
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %4, align 4, !tbaa !5
  br label %50, !llvm.loop !12

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

68:                                               ; preds = %104, %67
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = icmp slt i32 %69, 18
  br i1 %70, label %72, label %71

71:                                               ; preds = %68
  store i32 13, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %107

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

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

77:                                               ; preds = %73
  store i32 16, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %103

78:                                               ; preds = %73
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %80
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = sub nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [18 x i32], ptr %81, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %87
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = sub nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [18 x i32], ptr %88, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %95
  %97 = load i32, ptr %5, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [18 x i32], ptr %96, i64 0, i64 %98
  store i32 %93, ptr %99, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %78
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %7, align 4, !tbaa !5
  br label %73, !llvm.loop !13

103:                                              ; preds = %77
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %5, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %5, align 4, !tbaa !5
  br label %68, !llvm.loop !14

107:                                              ; preds = %71
  %108 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @q)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %213, %107
  %110 = load i32, ptr %8, align 4, !tbaa !5
  %111 = load i32, ptr @q, align 4, !tbaa !5
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 19, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %216

114:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %115 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %9, ptr noundef %10)
  %116 = load i32, ptr %9, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [100010 x i32], ptr @gen, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [100010 x i32], ptr @cir, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = load i32, ptr %10, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [100010 x i32], ptr @gen, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [100010 x i32], ptr @cir, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = icmp ne i32 %122, %129
  br i1 %130, label %131, label %133

131:                                              ; preds = %114
  %132 = call i32 @puts(ptr noundef @.str.2)
  br label %212

133:                                              ; preds = %114
  %134 = load i32, ptr %9, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [100010 x i32], ptr @gen, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = load i32, ptr %10, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [100010 x i32], ptr @gen, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = icmp eq i32 %137, %141
  br i1 %142, label %143, label %148

143:                                              ; preds = %133
  %144 = load i32, ptr %9, align 4, !tbaa !5
  %145 = load i32, ptr %10, align 4, !tbaa !5
  %146 = call noundef i32 @_Z4distii(i32 noundef %144, i32 noundef %145)
  %147 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %146)
  br label %211

148:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %149 = load i32, ptr %9, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [100010 x i32], ptr @dep, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = load i32, ptr %10, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [100010 x i32], ptr @dep, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = add nsw i32 %152, %156
  store i32 %157, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %158 = load i32, ptr %9, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [100010 x i32], ptr @gen, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [100010 x i32], ptr @cir_no, i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = load i32, ptr %10, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [100010 x i32], ptr @gen, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [100010 x i32], ptr @cir_no, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = sub nsw i32 %164, %171
  store i32 %172, ptr %12, align 4, !tbaa !5
  %173 = load i32, ptr %12, align 4, !tbaa !5
  %174 = icmp slt i32 %173, 0
  br i1 %174, label %175, label %178

175:                                              ; preds = %148
  %176 = load i32, ptr %12, align 4, !tbaa !5
  %177 = sub nsw i32 0, %176
  store i32 %177, ptr %12, align 4, !tbaa !5
  br label %178

178:                                              ; preds = %175, %148
  %179 = load i32, ptr %12, align 4, !tbaa !5
  %180 = load i32, ptr %9, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [100010 x i32], ptr @gen, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [100010 x i32], ptr @cir, i64 0, i64 %184
  %186 = load i32, ptr %185, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [100010 x i32], ptr @cir_cnt, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = load i32, ptr %12, align 4, !tbaa !5
  %191 = sub nsw i32 %189, %190
  %192 = icmp sgt i32 %179, %191
  br i1 %192, label %193, label %206

193:                                              ; preds = %178
  %194 = load i32, ptr %9, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [100010 x i32], ptr @gen, i64 0, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [100010 x i32], ptr @cir, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [100010 x i32], ptr @cir_cnt, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = load i32, ptr %12, align 4, !tbaa !5
  %205 = sub nsw i32 %203, %204
  store i32 %205, ptr %12, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %193, %178
  %207 = load i32, ptr %11, align 4, !tbaa !5
  %208 = load i32, ptr %12, align 4, !tbaa !5
  %209 = add nsw i32 %207, %208
  %210 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %209)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %211

211:                                              ; preds = %206, %143
  br label %212

212:                                              ; preds = %211, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %213

213:                                              ; preds = %212
  %214 = load i32, ptr %8, align 4, !tbaa !5
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %8, align 4, !tbaa !5
  br label %109, !llvm.loop !15

216:                                              ; preds = %113
  br label %13, !llvm.loop !16

217:                                              ; preds = %13
  ret i32 0
}

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

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

declare i32 @puts(ptr noundef) #4

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }

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

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


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

@n = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@nxt = external dso_local global [100010 x i32], align 16
@now = external dso_local local_unnamed_addr global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@cir = external dso_local local_unnamed_addr global [100010 x i32], align 16
@cir_cnt = external dso_local local_unnamed_addr global [100010 x i32], align 16
@cir_no = external dso_local local_unnamed_addr global [100010 x i32], align 16
@fa = external dso_local local_unnamed_addr global [100010 x [18 x i32]], align 16
@gen = external dso_local local_unnamed_addr global [100010 x i32], align 16
@dfsno = external dso_local local_unnamed_addr global [100010 x i32], align 16
@vis = external dso_local local_unnamed_addr global [100010 x i32], align 16
@dep = external dso_local local_unnamed_addr global [100010 x i32], 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 [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = 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.ph64, label %._crit_edge65

.loopexit:                                        ; preds = %397, %.split.us
  %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.ph64, label %._crit_edge65, !llvm.loop !5

.lr.ph64:                                         ; preds = %0, %.loopexit
  store i32 0, ptr @tot, align 4, !tbaa !7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400040) @cir, i8 0, i64 400040, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400040) @dep, i8 0, i64 400040, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400040) @dfsno, i8 0, i64 400040, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400040) @cir_no, i8 0, i64 400040, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400040) @vis, i8 0, i64 400040, i1 false)
  %7 = load i32, ptr @n, align 4, !tbaa !7
  %.not48 = icmp slt i32 %7, 1
  br i1 %.not48, label %.split.us, label %.lr.ph

.preheader47:                                     ; preds = %.lr.ph
  %.not3950 = icmp slt i32 %10, 1
  br i1 %.not3950, label %.split.us, label %.lr.ph52

.lr.ph:                                           ; preds = %.lr.ph64, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph64 ]
  %8 = getelementptr inbounds i32, ptr @nxt, i64 %indvars.iv
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %8)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %10 = load i32, ptr @n, align 4, !tbaa !7
  %11 = sext i32 %10 to i64
  %.not.not = icmp slt i64 %indvars.iv, %11
  br i1 %.not.not, label %.lr.ph, label %.preheader47, !llvm.loop !11

.preheader46:                                     ; preds = %17
  %.not4053 = icmp slt i32 %18, 1
  br i1 %.not4053, label %.split.us, label %.lr.ph55

.lr.ph52:                                         ; preds = %.preheader47, %17
  %12 = phi i32 [ %18, %17 ], [ %10, %.preheader47 ]
  %indvars.iv69 = phi i64 [ %indvars.iv.next70, %17 ], [ 1, %.preheader47 ]
  %13 = getelementptr inbounds [100010 x i32], ptr @dfsno, i64 0, i64 %indvars.iv69
  %14 = load i32, ptr %13, align 4, !tbaa !7
  %.not44 = icmp eq i32 %14, 0
  br i1 %.not44, label %15, label %17

15:                                               ; preds = %.lr.ph52
  %16 = trunc nuw nsw i64 %indvars.iv69 to i32
  store i32 %16, ptr @now, align 4, !tbaa !7
  call void @_Z3pfsi(i32 noundef %16)
  %.pre = load i32, ptr @n, align 4, !tbaa !7
  br label %17

17:                                               ; preds = %.lr.ph52, %15
  %18 = phi i32 [ %12, %.lr.ph52 ], [ %.pre, %15 ]
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %19 = sext i32 %18 to i64
  %.not39.not = icmp slt i64 %indvars.iv69, %19
  br i1 %.not39.not, label %.lr.ph52, label %.preheader46, !llvm.loop !12

.preheader45:                                     ; preds = %29
  %.not4256 = icmp slt i32 %30, 1
  br i1 %.not4256, label %.split.us, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader45
  %20 = zext nneg i32 %30 to i64
  %21 = zext nneg i32 %30 to i64
  %22 = add nsw i64 %21, -1
  %xtraiter = and i64 %20, 1
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %._crit_edge.preheader.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter = and i64 %20, 2147483646
  br label %338

.lr.ph55:                                         ; preds = %.preheader46, %29
  %24 = phi i32 [ %30, %29 ], [ %18, %.preheader46 ]
  %indvars.iv72 = phi i64 [ %indvars.iv.next73, %29 ], [ 1, %.preheader46 ]
  %25 = getelementptr inbounds [100010 x i32], ptr @vis, i64 0, i64 %indvars.iv72
  %26 = load i32, ptr %25, align 4, !tbaa !7
  %.not43 = icmp eq i32 %26, 0
  br i1 %.not43, label %27, label %29

27:                                               ; preds = %.lr.ph55
  %28 = trunc nuw nsw i64 %indvars.iv72 to i32
  call void @_Z3dfsi(i32 noundef %28)
  %.pre82 = load i32, ptr @n, align 4, !tbaa !7
  br label %29

29:                                               ; preds = %.lr.ph55, %27
  %30 = phi i32 [ %24, %.lr.ph55 ], [ %.pre82, %27 ]
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %31 = sext i32 %30 to i64
  %.not40.not = icmp slt i64 %indvars.iv72, %31
  br i1 %.not40.not, label %.lr.ph55, label %.preheader45, !llvm.loop !13

.split.us.loopexit.unr-lcssa:                     ; preds = %._crit_edge.15, %._crit_edge.15.preheader
  %indvars.iv75.16.unr = phi i64 [ 1, %._crit_edge.15.preheader ], [ %indvars.iv.next76.16.1, %._crit_edge.15 ]
  %lcmp.mod157.not = icmp eq i64 %xtraiter156, 0
  br i1 %lcmp.mod157.not, label %.split.us, label %._crit_edge.15.epil

._crit_edge.15.epil:                              ; preds = %.split.us.loopexit.unr-lcssa
  %32 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.16.unr, i64 16
  %33 = load i32, ptr %32, align 8, !tbaa !7
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %34, i64 16
  %36 = load i32, ptr %35, align 8, !tbaa !7
  %37 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.16.unr, i64 17
  store i32 %36, ptr %37, align 4, !tbaa !7
  br label %.split.us

.split.us:                                        ; preds = %._crit_edge.15.epil, %.split.us.loopexit.unr-lcssa, %.lr.ph64, %.preheader47, %.preheader46, %.preheader45
  %38 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @q)
  %39 = load i32, ptr @q, align 4, !tbaa !7
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph62, label %.loopexit

._crit_edge:                                      ; preds = %._crit_edge, %._crit_edge.preheader.new
  %indvars.iv75.1 = phi i64 [ 1, %._crit_edge.preheader.new ], [ %indvars.iv.next76.1.1, %._crit_edge ]
  %niter98 = phi i64 [ 0, %._crit_edge.preheader.new ], [ %niter98.next.1, %._crit_edge ]
  %41 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.1, i64 1
  %42 = load i32, ptr %41, align 4, !tbaa !7
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %43, i64 1
  %45 = load i32, ptr %44, align 4, !tbaa !7
  %46 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.1, i64 2
  store i32 %45, ptr %46, align 8, !tbaa !7
  %indvars.iv.next76.1 = add nuw nsw i64 %indvars.iv75.1, 1
  %47 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.1, i64 1
  %48 = load i32, ptr %47, align 4, !tbaa !7
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %49, i64 1
  %51 = load i32, ptr %50, align 4, !tbaa !7
  %52 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.1, i64 2
  store i32 %51, ptr %52, align 8, !tbaa !7
  %indvars.iv.next76.1.1 = add nuw nsw i64 %indvars.iv75.1, 2
  %niter98.next.1 = add i64 %niter98, 2
  %niter98.ncmp.1 = icmp eq i64 %niter98.next.1, %unroll_iter97
  br i1 %niter98.ncmp.1, label %._crit_edge.1.preheader.unr-lcssa, label %._crit_edge, !llvm.loop !14

._crit_edge.1.preheader.unr-lcssa:                ; preds = %._crit_edge, %._crit_edge.preheader
  %indvars.iv75.1.unr = phi i64 [ 1, %._crit_edge.preheader ], [ %indvars.iv.next76.1.1, %._crit_edge ]
  %lcmp.mod96.not = icmp eq i64 %xtraiter95, 0
  br i1 %lcmp.mod96.not, label %._crit_edge.1.preheader, label %._crit_edge.epil

._crit_edge.epil:                                 ; preds = %._crit_edge.1.preheader.unr-lcssa
  %53 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.1.unr, i64 1
  %54 = load i32, ptr %53, align 4, !tbaa !7
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %55, i64 1
  %57 = load i32, ptr %56, align 4, !tbaa !7
  %58 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.1.unr, i64 2
  store i32 %57, ptr %58, align 8, !tbaa !7
  br label %._crit_edge.1.preheader

._crit_edge.1.preheader:                          ; preds = %._crit_edge.1.preheader.unr-lcssa, %._crit_edge.epil
  %xtraiter100 = and i64 %20, 1
  %59 = icmp eq i64 %22, 0
  br i1 %59, label %._crit_edge.2.preheader.unr-lcssa, label %._crit_edge.1.preheader.new

._crit_edge.1.preheader.new:                      ; preds = %._crit_edge.1.preheader
  %unroll_iter102 = and i64 %20, 2147483646
  br label %._crit_edge.1

._crit_edge.1:                                    ; preds = %._crit_edge.1, %._crit_edge.1.preheader.new
  %indvars.iv75.2 = phi i64 [ 1, %._crit_edge.1.preheader.new ], [ %indvars.iv.next76.2.1, %._crit_edge.1 ]
  %niter103 = phi i64 [ 0, %._crit_edge.1.preheader.new ], [ %niter103.next.1, %._crit_edge.1 ]
  %60 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.2, i64 2
  %61 = load i32, ptr %60, align 8, !tbaa !7
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %62, i64 2
  %64 = load i32, ptr %63, align 8, !tbaa !7
  %65 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.2, i64 3
  store i32 %64, ptr %65, align 4, !tbaa !7
  %indvars.iv.next76.2 = add nuw nsw i64 %indvars.iv75.2, 1
  %66 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.2, i64 2
  %67 = load i32, ptr %66, align 8, !tbaa !7
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %68, i64 2
  %70 = load i32, ptr %69, align 8, !tbaa !7
  %71 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.2, i64 3
  store i32 %70, ptr %71, align 4, !tbaa !7
  %indvars.iv.next76.2.1 = add nuw nsw i64 %indvars.iv75.2, 2
  %niter103.next.1 = add i64 %niter103, 2
  %niter103.ncmp.1 = icmp eq i64 %niter103.next.1, %unroll_iter102
  br i1 %niter103.ncmp.1, label %._crit_edge.2.preheader.unr-lcssa, label %._crit_edge.1, !llvm.loop !14

._crit_edge.2.preheader.unr-lcssa:                ; preds = %._crit_edge.1, %._crit_edge.1.preheader
  %indvars.iv75.2.unr = phi i64 [ 1, %._crit_edge.1.preheader ], [ %indvars.iv.next76.2.1, %._crit_edge.1 ]
  %lcmp.mod101.not = icmp eq i64 %xtraiter100, 0
  br i1 %lcmp.mod101.not, label %._crit_edge.2.preheader, label %._crit_edge.1.epil

._crit_edge.1.epil:                               ; preds = %._crit_edge.2.preheader.unr-lcssa
  %72 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.2.unr, i64 2
  %73 = load i32, ptr %72, align 8, !tbaa !7
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %74, i64 2
  %76 = load i32, ptr %75, align 8, !tbaa !7
  %77 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.2.unr, i64 3
  store i32 %76, ptr %77, align 4, !tbaa !7
  br label %._crit_edge.2.preheader

._crit_edge.2.preheader:                          ; preds = %._crit_edge.2.preheader.unr-lcssa, %._crit_edge.1.epil
  %xtraiter104 = and i64 %20, 1
  %78 = icmp eq i64 %22, 0
  br i1 %78, label %._crit_edge.3.preheader.unr-lcssa, label %._crit_edge.2.preheader.new

._crit_edge.2.preheader.new:                      ; preds = %._crit_edge.2.preheader
  %unroll_iter106 = and i64 %20, 2147483646
  br label %._crit_edge.2

._crit_edge.2:                                    ; preds = %._crit_edge.2, %._crit_edge.2.preheader.new
  %indvars.iv75.3 = phi i64 [ 1, %._crit_edge.2.preheader.new ], [ %indvars.iv.next76.3.1, %._crit_edge.2 ]
  %niter107 = phi i64 [ 0, %._crit_edge.2.preheader.new ], [ %niter107.next.1, %._crit_edge.2 ]
  %79 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.3, i64 3
  %80 = load i32, ptr %79, align 4, !tbaa !7
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %81, i64 3
  %83 = load i32, ptr %82, align 4, !tbaa !7
  %84 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.3, i64 4
  store i32 %83, ptr %84, align 8, !tbaa !7
  %indvars.iv.next76.3 = add nuw nsw i64 %indvars.iv75.3, 1
  %85 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.3, i64 3
  %86 = load i32, ptr %85, align 4, !tbaa !7
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %87, i64 3
  %89 = load i32, ptr %88, align 4, !tbaa !7
  %90 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.3, i64 4
  store i32 %89, ptr %90, align 8, !tbaa !7
  %indvars.iv.next76.3.1 = add nuw nsw i64 %indvars.iv75.3, 2
  %niter107.next.1 = add i64 %niter107, 2
  %niter107.ncmp.1 = icmp eq i64 %niter107.next.1, %unroll_iter106
  br i1 %niter107.ncmp.1, label %._crit_edge.3.preheader.unr-lcssa, label %._crit_edge.2, !llvm.loop !14

._crit_edge.3.preheader.unr-lcssa:                ; preds = %._crit_edge.2, %._crit_edge.2.preheader
  %indvars.iv75.3.unr = phi i64 [ 1, %._crit_edge.2.preheader ], [ %indvars.iv.next76.3.1, %._crit_edge.2 ]
  %lcmp.mod105.not = icmp eq i64 %xtraiter104, 0
  br i1 %lcmp.mod105.not, label %._crit_edge.3.preheader, label %._crit_edge.2.epil

._crit_edge.2.epil:                               ; preds = %._crit_edge.3.preheader.unr-lcssa
  %91 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.3.unr, i64 3
  %92 = load i32, ptr %91, align 4, !tbaa !7
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %93, i64 3
  %95 = load i32, ptr %94, align 4, !tbaa !7
  %96 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.3.unr, i64 4
  store i32 %95, ptr %96, align 8, !tbaa !7
  br label %._crit_edge.3.preheader

._crit_edge.3.preheader:                          ; preds = %._crit_edge.3.preheader.unr-lcssa, %._crit_edge.2.epil
  %xtraiter108 = and i64 %20, 1
  %97 = icmp eq i64 %22, 0
  br i1 %97, label %._crit_edge.4.preheader.unr-lcssa, label %._crit_edge.3.preheader.new

._crit_edge.3.preheader.new:                      ; preds = %._crit_edge.3.preheader
  %unroll_iter110 = and i64 %20, 2147483646
  br label %._crit_edge.3

._crit_edge.3:                                    ; preds = %._crit_edge.3, %._crit_edge.3.preheader.new
  %indvars.iv75.4 = phi i64 [ 1, %._crit_edge.3.preheader.new ], [ %indvars.iv.next76.4.1, %._crit_edge.3 ]
  %niter111 = phi i64 [ 0, %._crit_edge.3.preheader.new ], [ %niter111.next.1, %._crit_edge.3 ]
  %98 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.4, i64 4
  %99 = load i32, ptr %98, align 8, !tbaa !7
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %100, i64 4
  %102 = load i32, ptr %101, align 8, !tbaa !7
  %103 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.4, i64 5
  store i32 %102, ptr %103, align 4, !tbaa !7
  %indvars.iv.next76.4 = add nuw nsw i64 %indvars.iv75.4, 1
  %104 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.4, i64 4
  %105 = load i32, ptr %104, align 8, !tbaa !7
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %106, i64 4
  %108 = load i32, ptr %107, align 8, !tbaa !7
  %109 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.4, i64 5
  store i32 %108, ptr %109, align 4, !tbaa !7
  %indvars.iv.next76.4.1 = add nuw nsw i64 %indvars.iv75.4, 2
  %niter111.next.1 = add i64 %niter111, 2
  %niter111.ncmp.1 = icmp eq i64 %niter111.next.1, %unroll_iter110
  br i1 %niter111.ncmp.1, label %._crit_edge.4.preheader.unr-lcssa, label %._crit_edge.3, !llvm.loop !14

._crit_edge.4.preheader.unr-lcssa:                ; preds = %._crit_edge.3, %._crit_edge.3.preheader
  %indvars.iv75.4.unr = phi i64 [ 1, %._crit_edge.3.preheader ], [ %indvars.iv.next76.4.1, %._crit_edge.3 ]
  %lcmp.mod109.not = icmp eq i64 %xtraiter108, 0
  br i1 %lcmp.mod109.not, label %._crit_edge.4.preheader, label %._crit_edge.3.epil

._crit_edge.3.epil:                               ; preds = %._crit_edge.4.preheader.unr-lcssa
  %110 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.4.unr, i64 4
  %111 = load i32, ptr %110, align 8, !tbaa !7
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %112, i64 4
  %114 = load i32, ptr %113, align 8, !tbaa !7
  %115 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.4.unr, i64 5
  store i32 %114, ptr %115, align 4, !tbaa !7
  br label %._crit_edge.4.preheader

._crit_edge.4.preheader:                          ; preds = %._crit_edge.4.preheader.unr-lcssa, %._crit_edge.3.epil
  %xtraiter112 = and i64 %20, 1
  %116 = icmp eq i64 %22, 0
  br i1 %116, label %._crit_edge.5.preheader.unr-lcssa, label %._crit_edge.4.preheader.new

._crit_edge.4.preheader.new:                      ; preds = %._crit_edge.4.preheader
  %unroll_iter114 = and i64 %20, 2147483646
  br label %._crit_edge.4

._crit_edge.4:                                    ; preds = %._crit_edge.4, %._crit_edge.4.preheader.new
  %indvars.iv75.5 = phi i64 [ 1, %._crit_edge.4.preheader.new ], [ %indvars.iv.next76.5.1, %._crit_edge.4 ]
  %niter115 = phi i64 [ 0, %._crit_edge.4.preheader.new ], [ %niter115.next.1, %._crit_edge.4 ]
  %117 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.5, i64 5
  %118 = load i32, ptr %117, align 4, !tbaa !7
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %119, i64 5
  %121 = load i32, ptr %120, align 4, !tbaa !7
  %122 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.5, i64 6
  store i32 %121, ptr %122, align 8, !tbaa !7
  %indvars.iv.next76.5 = add nuw nsw i64 %indvars.iv75.5, 1
  %123 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.5, i64 5
  %124 = load i32, ptr %123, align 4, !tbaa !7
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %125, i64 5
  %127 = load i32, ptr %126, align 4, !tbaa !7
  %128 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.5, i64 6
  store i32 %127, ptr %128, align 8, !tbaa !7
  %indvars.iv.next76.5.1 = add nuw nsw i64 %indvars.iv75.5, 2
  %niter115.next.1 = add i64 %niter115, 2
  %niter115.ncmp.1 = icmp eq i64 %niter115.next.1, %unroll_iter114
  br i1 %niter115.ncmp.1, label %._crit_edge.5.preheader.unr-lcssa, label %._crit_edge.4, !llvm.loop !14

._crit_edge.5.preheader.unr-lcssa:                ; preds = %._crit_edge.4, %._crit_edge.4.preheader
  %indvars.iv75.5.unr = phi i64 [ 1, %._crit_edge.4.preheader ], [ %indvars.iv.next76.5.1, %._crit_edge.4 ]
  %lcmp.mod113.not = icmp eq i64 %xtraiter112, 0
  br i1 %lcmp.mod113.not, label %._crit_edge.5.preheader, label %._crit_edge.4.epil

._crit_edge.4.epil:                               ; preds = %._crit_edge.5.preheader.unr-lcssa
  %129 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.5.unr, i64 5
  %130 = load i32, ptr %129, align 4, !tbaa !7
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %131, i64 5
  %133 = load i32, ptr %132, align 4, !tbaa !7
  %134 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.5.unr, i64 6
  store i32 %133, ptr %134, align 8, !tbaa !7
  br label %._crit_edge.5.preheader

._crit_edge.5.preheader:                          ; preds = %._crit_edge.5.preheader.unr-lcssa, %._crit_edge.4.epil
  %xtraiter116 = and i64 %20, 1
  %135 = icmp eq i64 %22, 0
  br i1 %135, label %._crit_edge.6.preheader.unr-lcssa, label %._crit_edge.5.preheader.new

._crit_edge.5.preheader.new:                      ; preds = %._crit_edge.5.preheader
  %unroll_iter118 = and i64 %20, 2147483646
  br label %._crit_edge.5

._crit_edge.5:                                    ; preds = %._crit_edge.5, %._crit_edge.5.preheader.new
  %indvars.iv75.6 = phi i64 [ 1, %._crit_edge.5.preheader.new ], [ %indvars.iv.next76.6.1, %._crit_edge.5 ]
  %niter119 = phi i64 [ 0, %._crit_edge.5.preheader.new ], [ %niter119.next.1, %._crit_edge.5 ]
  %136 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.6, i64 6
  %137 = load i32, ptr %136, align 8, !tbaa !7
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %138, i64 6
  %140 = load i32, ptr %139, align 8, !tbaa !7
  %141 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.6, i64 7
  store i32 %140, ptr %141, align 4, !tbaa !7
  %indvars.iv.next76.6 = add nuw nsw i64 %indvars.iv75.6, 1
  %142 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.6, i64 6
  %143 = load i32, ptr %142, align 8, !tbaa !7
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %144, i64 6
  %146 = load i32, ptr %145, align 8, !tbaa !7
  %147 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.6, i64 7
  store i32 %146, ptr %147, align 4, !tbaa !7
  %indvars.iv.next76.6.1 = add nuw nsw i64 %indvars.iv75.6, 2
  %niter119.next.1 = add i64 %niter119, 2
  %niter119.ncmp.1 = icmp eq i64 %niter119.next.1, %unroll_iter118
  br i1 %niter119.ncmp.1, label %._crit_edge.6.preheader.unr-lcssa, label %._crit_edge.5, !llvm.loop !14

._crit_edge.6.preheader.unr-lcssa:                ; preds = %._crit_edge.5, %._crit_edge.5.preheader
  %indvars.iv75.6.unr = phi i64 [ 1, %._crit_edge.5.preheader ], [ %indvars.iv.next76.6.1, %._crit_edge.5 ]
  %lcmp.mod117.not = icmp eq i64 %xtraiter116, 0
  br i1 %lcmp.mod117.not, label %._crit_edge.6.preheader, label %._crit_edge.5.epil

._crit_edge.5.epil:                               ; preds = %._crit_edge.6.preheader.unr-lcssa
  %148 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.6.unr, i64 6
  %149 = load i32, ptr %148, align 8, !tbaa !7
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %150, i64 6
  %152 = load i32, ptr %151, align 8, !tbaa !7
  %153 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.6.unr, i64 7
  store i32 %152, ptr %153, align 4, !tbaa !7
  br label %._crit_edge.6.preheader

._crit_edge.6.preheader:                          ; preds = %._crit_edge.6.preheader.unr-lcssa, %._crit_edge.5.epil
  %xtraiter120 = and i64 %20, 1
  %154 = icmp eq i64 %22, 0
  br i1 %154, label %._crit_edge.7.preheader.unr-lcssa, label %._crit_edge.6.preheader.new

._crit_edge.6.preheader.new:                      ; preds = %._crit_edge.6.preheader
  %unroll_iter122 = and i64 %20, 2147483646
  br label %._crit_edge.6

._crit_edge.6:                                    ; preds = %._crit_edge.6, %._crit_edge.6.preheader.new
  %indvars.iv75.7 = phi i64 [ 1, %._crit_edge.6.preheader.new ], [ %indvars.iv.next76.7.1, %._crit_edge.6 ]
  %niter123 = phi i64 [ 0, %._crit_edge.6.preheader.new ], [ %niter123.next.1, %._crit_edge.6 ]
  %155 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.7, i64 7
  %156 = load i32, ptr %155, align 4, !tbaa !7
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %157, i64 7
  %159 = load i32, ptr %158, align 4, !tbaa !7
  %160 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.7, i64 8
  store i32 %159, ptr %160, align 8, !tbaa !7
  %indvars.iv.next76.7 = add nuw nsw i64 %indvars.iv75.7, 1
  %161 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.7, i64 7
  %162 = load i32, ptr %161, align 4, !tbaa !7
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %163, i64 7
  %165 = load i32, ptr %164, align 4, !tbaa !7
  %166 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.7, i64 8
  store i32 %165, ptr %166, align 8, !tbaa !7
  %indvars.iv.next76.7.1 = add nuw nsw i64 %indvars.iv75.7, 2
  %niter123.next.1 = add i64 %niter123, 2
  %niter123.ncmp.1 = icmp eq i64 %niter123.next.1, %unroll_iter122
  br i1 %niter123.ncmp.1, label %._crit_edge.7.preheader.unr-lcssa, label %._crit_edge.6, !llvm.loop !14

._crit_edge.7.preheader.unr-lcssa:                ; preds = %._crit_edge.6, %._crit_edge.6.preheader
  %indvars.iv75.7.unr = phi i64 [ 1, %._crit_edge.6.preheader ], [ %indvars.iv.next76.7.1, %._crit_edge.6 ]
  %lcmp.mod121.not = icmp eq i64 %xtraiter120, 0
  br i1 %lcmp.mod121.not, label %._crit_edge.7.preheader, label %._crit_edge.6.epil

._crit_edge.6.epil:                               ; preds = %._crit_edge.7.preheader.unr-lcssa
  %167 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.7.unr, i64 7
  %168 = load i32, ptr %167, align 4, !tbaa !7
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %169, i64 7
  %171 = load i32, ptr %170, align 4, !tbaa !7
  %172 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.7.unr, i64 8
  store i32 %171, ptr %172, align 8, !tbaa !7
  br label %._crit_edge.7.preheader

._crit_edge.7.preheader:                          ; preds = %._crit_edge.7.preheader.unr-lcssa, %._crit_edge.6.epil
  %xtraiter124 = and i64 %20, 1
  %173 = icmp eq i64 %22, 0
  br i1 %173, label %._crit_edge.8.preheader.unr-lcssa, label %._crit_edge.7.preheader.new

._crit_edge.7.preheader.new:                      ; preds = %._crit_edge.7.preheader
  %unroll_iter126 = and i64 %20, 2147483646
  br label %._crit_edge.7

._crit_edge.7:                                    ; preds = %._crit_edge.7, %._crit_edge.7.preheader.new
  %indvars.iv75.8 = phi i64 [ 1, %._crit_edge.7.preheader.new ], [ %indvars.iv.next76.8.1, %._crit_edge.7 ]
  %niter127 = phi i64 [ 0, %._crit_edge.7.preheader.new ], [ %niter127.next.1, %._crit_edge.7 ]
  %174 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.8, i64 8
  %175 = load i32, ptr %174, align 8, !tbaa !7
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %176, i64 8
  %178 = load i32, ptr %177, align 8, !tbaa !7
  %179 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.8, i64 9
  store i32 %178, ptr %179, align 4, !tbaa !7
  %indvars.iv.next76.8 = add nuw nsw i64 %indvars.iv75.8, 1
  %180 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.8, i64 8
  %181 = load i32, ptr %180, align 8, !tbaa !7
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %182, i64 8
  %184 = load i32, ptr %183, align 8, !tbaa !7
  %185 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.8, i64 9
  store i32 %184, ptr %185, align 4, !tbaa !7
  %indvars.iv.next76.8.1 = add nuw nsw i64 %indvars.iv75.8, 2
  %niter127.next.1 = add i64 %niter127, 2
  %niter127.ncmp.1 = icmp eq i64 %niter127.next.1, %unroll_iter126
  br i1 %niter127.ncmp.1, label %._crit_edge.8.preheader.unr-lcssa, label %._crit_edge.7, !llvm.loop !14

._crit_edge.8.preheader.unr-lcssa:                ; preds = %._crit_edge.7, %._crit_edge.7.preheader
  %indvars.iv75.8.unr = phi i64 [ 1, %._crit_edge.7.preheader ], [ %indvars.iv.next76.8.1, %._crit_edge.7 ]
  %lcmp.mod125.not = icmp eq i64 %xtraiter124, 0
  br i1 %lcmp.mod125.not, label %._crit_edge.8.preheader, label %._crit_edge.7.epil

._crit_edge.7.epil:                               ; preds = %._crit_edge.8.preheader.unr-lcssa
  %186 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.8.unr, i64 8
  %187 = load i32, ptr %186, align 8, !tbaa !7
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %188, i64 8
  %190 = load i32, ptr %189, align 8, !tbaa !7
  %191 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.8.unr, i64 9
  store i32 %190, ptr %191, align 4, !tbaa !7
  br label %._crit_edge.8.preheader

._crit_edge.8.preheader:                          ; preds = %._crit_edge.8.preheader.unr-lcssa, %._crit_edge.7.epil
  %xtraiter128 = and i64 %20, 1
  %192 = icmp eq i64 %22, 0
  br i1 %192, label %._crit_edge.9.preheader.unr-lcssa, label %._crit_edge.8.preheader.new

._crit_edge.8.preheader.new:                      ; preds = %._crit_edge.8.preheader
  %unroll_iter130 = and i64 %20, 2147483646
  br label %._crit_edge.8

._crit_edge.8:                                    ; preds = %._crit_edge.8, %._crit_edge.8.preheader.new
  %indvars.iv75.9 = phi i64 [ 1, %._crit_edge.8.preheader.new ], [ %indvars.iv.next76.9.1, %._crit_edge.8 ]
  %niter131 = phi i64 [ 0, %._crit_edge.8.preheader.new ], [ %niter131.next.1, %._crit_edge.8 ]
  %193 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.9, i64 9
  %194 = load i32, ptr %193, align 4, !tbaa !7
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %195, i64 9
  %197 = load i32, ptr %196, align 4, !tbaa !7
  %198 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.9, i64 10
  store i32 %197, ptr %198, align 8, !tbaa !7
  %indvars.iv.next76.9 = add nuw nsw i64 %indvars.iv75.9, 1
  %199 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.9, i64 9
  %200 = load i32, ptr %199, align 4, !tbaa !7
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %201, i64 9
  %203 = load i32, ptr %202, align 4, !tbaa !7
  %204 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.9, i64 10
  store i32 %203, ptr %204, align 8, !tbaa !7
  %indvars.iv.next76.9.1 = add nuw nsw i64 %indvars.iv75.9, 2
  %niter131.next.1 = add i64 %niter131, 2
  %niter131.ncmp.1 = icmp eq i64 %niter131.next.1, %unroll_iter130
  br i1 %niter131.ncmp.1, label %._crit_edge.9.preheader.unr-lcssa, label %._crit_edge.8, !llvm.loop !14

._crit_edge.9.preheader.unr-lcssa:                ; preds = %._crit_edge.8, %._crit_edge.8.preheader
  %indvars.iv75.9.unr = phi i64 [ 1, %._crit_edge.8.preheader ], [ %indvars.iv.next76.9.1, %._crit_edge.8 ]
  %lcmp.mod129.not = icmp eq i64 %xtraiter128, 0
  br i1 %lcmp.mod129.not, label %._crit_edge.9.preheader, label %._crit_edge.8.epil

._crit_edge.8.epil:                               ; preds = %._crit_edge.9.preheader.unr-lcssa
  %205 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.9.unr, i64 9
  %206 = load i32, ptr %205, align 4, !tbaa !7
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %207, i64 9
  %209 = load i32, ptr %208, align 4, !tbaa !7
  %210 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.9.unr, i64 10
  store i32 %209, ptr %210, align 8, !tbaa !7
  br label %._crit_edge.9.preheader

._crit_edge.9.preheader:                          ; preds = %._crit_edge.9.preheader.unr-lcssa, %._crit_edge.8.epil
  %xtraiter132 = and i64 %20, 1
  %211 = icmp eq i64 %22, 0
  br i1 %211, label %._crit_edge.10.preheader.unr-lcssa, label %._crit_edge.9.preheader.new

._crit_edge.9.preheader.new:                      ; preds = %._crit_edge.9.preheader
  %unroll_iter134 = and i64 %20, 2147483646
  br label %._crit_edge.9

._crit_edge.9:                                    ; preds = %._crit_edge.9, %._crit_edge.9.preheader.new
  %indvars.iv75.10 = phi i64 [ 1, %._crit_edge.9.preheader.new ], [ %indvars.iv.next76.10.1, %._crit_edge.9 ]
  %niter135 = phi i64 [ 0, %._crit_edge.9.preheader.new ], [ %niter135.next.1, %._crit_edge.9 ]
  %212 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.10, i64 10
  %213 = load i32, ptr %212, align 8, !tbaa !7
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %214, i64 10
  %216 = load i32, ptr %215, align 8, !tbaa !7
  %217 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.10, i64 11
  store i32 %216, ptr %217, align 4, !tbaa !7
  %indvars.iv.next76.10 = add nuw nsw i64 %indvars.iv75.10, 1
  %218 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.10, i64 10
  %219 = load i32, ptr %218, align 8, !tbaa !7
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %220, i64 10
  %222 = load i32, ptr %221, align 8, !tbaa !7
  %223 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.10, i64 11
  store i32 %222, ptr %223, align 4, !tbaa !7
  %indvars.iv.next76.10.1 = add nuw nsw i64 %indvars.iv75.10, 2
  %niter135.next.1 = add i64 %niter135, 2
  %niter135.ncmp.1 = icmp eq i64 %niter135.next.1, %unroll_iter134
  br i1 %niter135.ncmp.1, label %._crit_edge.10.preheader.unr-lcssa, label %._crit_edge.9, !llvm.loop !14

._crit_edge.10.preheader.unr-lcssa:               ; preds = %._crit_edge.9, %._crit_edge.9.preheader
  %indvars.iv75.10.unr = phi i64 [ 1, %._crit_edge.9.preheader ], [ %indvars.iv.next76.10.1, %._crit_edge.9 ]
  %lcmp.mod133.not = icmp eq i64 %xtraiter132, 0
  br i1 %lcmp.mod133.not, label %._crit_edge.10.preheader, label %._crit_edge.9.epil

._crit_edge.9.epil:                               ; preds = %._crit_edge.10.preheader.unr-lcssa
  %224 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.10.unr, i64 10
  %225 = load i32, ptr %224, align 8, !tbaa !7
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %226, i64 10
  %228 = load i32, ptr %227, align 8, !tbaa !7
  %229 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.10.unr, i64 11
  store i32 %228, ptr %229, align 4, !tbaa !7
  br label %._crit_edge.10.preheader

._crit_edge.10.preheader:                         ; preds = %._crit_edge.10.preheader.unr-lcssa, %._crit_edge.9.epil
  %xtraiter136 = and i64 %20, 1
  %230 = icmp eq i64 %22, 0
  br i1 %230, label %._crit_edge.11.preheader.unr-lcssa, label %._crit_edge.10.preheader.new

._crit_edge.10.preheader.new:                     ; preds = %._crit_edge.10.preheader
  %unroll_iter138 = and i64 %20, 2147483646
  br label %._crit_edge.10

._crit_edge.10:                                   ; preds = %._crit_edge.10, %._crit_edge.10.preheader.new
  %indvars.iv75.11 = phi i64 [ 1, %._crit_edge.10.preheader.new ], [ %indvars.iv.next76.11.1, %._crit_edge.10 ]
  %niter139 = phi i64 [ 0, %._crit_edge.10.preheader.new ], [ %niter139.next.1, %._crit_edge.10 ]
  %231 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.11, i64 11
  %232 = load i32, ptr %231, align 4, !tbaa !7
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %233, i64 11
  %235 = load i32, ptr %234, align 4, !tbaa !7
  %236 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.11, i64 12
  store i32 %235, ptr %236, align 8, !tbaa !7
  %indvars.iv.next76.11 = add nuw nsw i64 %indvars.iv75.11, 1
  %237 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.11, i64 11
  %238 = load i32, ptr %237, align 4, !tbaa !7
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %239, i64 11
  %241 = load i32, ptr %240, align 4, !tbaa !7
  %242 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.11, i64 12
  store i32 %241, ptr %242, align 8, !tbaa !7
  %indvars.iv.next76.11.1 = add nuw nsw i64 %indvars.iv75.11, 2
  %niter139.next.1 = add i64 %niter139, 2
  %niter139.ncmp.1 = icmp eq i64 %niter139.next.1, %unroll_iter138
  br i1 %niter139.ncmp.1, label %._crit_edge.11.preheader.unr-lcssa, label %._crit_edge.10, !llvm.loop !14

._crit_edge.11.preheader.unr-lcssa:               ; preds = %._crit_edge.10, %._crit_edge.10.preheader
  %indvars.iv75.11.unr = phi i64 [ 1, %._crit_edge.10.preheader ], [ %indvars.iv.next76.11.1, %._crit_edge.10 ]
  %lcmp.mod137.not = icmp eq i64 %xtraiter136, 0
  br i1 %lcmp.mod137.not, label %._crit_edge.11.preheader, label %._crit_edge.10.epil

._crit_edge.10.epil:                              ; preds = %._crit_edge.11.preheader.unr-lcssa
  %243 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.11.unr, i64 11
  %244 = load i32, ptr %243, align 4, !tbaa !7
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %245, i64 11
  %247 = load i32, ptr %246, align 4, !tbaa !7
  %248 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.11.unr, i64 12
  store i32 %247, ptr %248, align 8, !tbaa !7
  br label %._crit_edge.11.preheader

._crit_edge.11.preheader:                         ; preds = %._crit_edge.11.preheader.unr-lcssa, %._crit_edge.10.epil
  %xtraiter140 = and i64 %20, 1
  %249 = icmp eq i64 %22, 0
  br i1 %249, label %._crit_edge.12.preheader.unr-lcssa, label %._crit_edge.11.preheader.new

._crit_edge.11.preheader.new:                     ; preds = %._crit_edge.11.preheader
  %unroll_iter142 = and i64 %20, 2147483646
  br label %._crit_edge.11

._crit_edge.11:                                   ; preds = %._crit_edge.11, %._crit_edge.11.preheader.new
  %indvars.iv75.12 = phi i64 [ 1, %._crit_edge.11.preheader.new ], [ %indvars.iv.next76.12.1, %._crit_edge.11 ]
  %niter143 = phi i64 [ 0, %._crit_edge.11.preheader.new ], [ %niter143.next.1, %._crit_edge.11 ]
  %250 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.12, i64 12
  %251 = load i32, ptr %250, align 8, !tbaa !7
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %252, i64 12
  %254 = load i32, ptr %253, align 8, !tbaa !7
  %255 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.12, i64 13
  store i32 %254, ptr %255, align 4, !tbaa !7
  %indvars.iv.next76.12 = add nuw nsw i64 %indvars.iv75.12, 1
  %256 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.12, i64 12
  %257 = load i32, ptr %256, align 8, !tbaa !7
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %258, i64 12
  %260 = load i32, ptr %259, align 8, !tbaa !7
  %261 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.12, i64 13
  store i32 %260, ptr %261, align 4, !tbaa !7
  %indvars.iv.next76.12.1 = add nuw nsw i64 %indvars.iv75.12, 2
  %niter143.next.1 = add i64 %niter143, 2
  %niter143.ncmp.1 = icmp eq i64 %niter143.next.1, %unroll_iter142
  br i1 %niter143.ncmp.1, label %._crit_edge.12.preheader.unr-lcssa, label %._crit_edge.11, !llvm.loop !14

._crit_edge.12.preheader.unr-lcssa:               ; preds = %._crit_edge.11, %._crit_edge.11.preheader
  %indvars.iv75.12.unr = phi i64 [ 1, %._crit_edge.11.preheader ], [ %indvars.iv.next76.12.1, %._crit_edge.11 ]
  %lcmp.mod141.not = icmp eq i64 %xtraiter140, 0
  br i1 %lcmp.mod141.not, label %._crit_edge.12.preheader, label %._crit_edge.11.epil

._crit_edge.11.epil:                              ; preds = %._crit_edge.12.preheader.unr-lcssa
  %262 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.12.unr, i64 12
  %263 = load i32, ptr %262, align 8, !tbaa !7
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %264, i64 12
  %266 = load i32, ptr %265, align 8, !tbaa !7
  %267 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.12.unr, i64 13
  store i32 %266, ptr %267, align 4, !tbaa !7
  br label %._crit_edge.12.preheader

._crit_edge.12.preheader:                         ; preds = %._crit_edge.12.preheader.unr-lcssa, %._crit_edge.11.epil
  %xtraiter144 = and i64 %20, 1
  %268 = icmp eq i64 %22, 0
  br i1 %268, label %._crit_edge.13.preheader.unr-lcssa, label %._crit_edge.12.preheader.new

._crit_edge.12.preheader.new:                     ; preds = %._crit_edge.12.preheader
  %unroll_iter146 = and i64 %20, 2147483646
  br label %._crit_edge.12

._crit_edge.12:                                   ; preds = %._crit_edge.12, %._crit_edge.12.preheader.new
  %indvars.iv75.13 = phi i64 [ 1, %._crit_edge.12.preheader.new ], [ %indvars.iv.next76.13.1, %._crit_edge.12 ]
  %niter147 = phi i64 [ 0, %._crit_edge.12.preheader.new ], [ %niter147.next.1, %._crit_edge.12 ]
  %269 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.13, i64 13
  %270 = load i32, ptr %269, align 4, !tbaa !7
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %271, i64 13
  %273 = load i32, ptr %272, align 4, !tbaa !7
  %274 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.13, i64 14
  store i32 %273, ptr %274, align 8, !tbaa !7
  %indvars.iv.next76.13 = add nuw nsw i64 %indvars.iv75.13, 1
  %275 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.13, i64 13
  %276 = load i32, ptr %275, align 4, !tbaa !7
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %277, i64 13
  %279 = load i32, ptr %278, align 4, !tbaa !7
  %280 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.13, i64 14
  store i32 %279, ptr %280, align 8, !tbaa !7
  %indvars.iv.next76.13.1 = add nuw nsw i64 %indvars.iv75.13, 2
  %niter147.next.1 = add i64 %niter147, 2
  %niter147.ncmp.1 = icmp eq i64 %niter147.next.1, %unroll_iter146
  br i1 %niter147.ncmp.1, label %._crit_edge.13.preheader.unr-lcssa, label %._crit_edge.12, !llvm.loop !14

._crit_edge.13.preheader.unr-lcssa:               ; preds = %._crit_edge.12, %._crit_edge.12.preheader
  %indvars.iv75.13.unr = phi i64 [ 1, %._crit_edge.12.preheader ], [ %indvars.iv.next76.13.1, %._crit_edge.12 ]
  %lcmp.mod145.not = icmp eq i64 %xtraiter144, 0
  br i1 %lcmp.mod145.not, label %._crit_edge.13.preheader, label %._crit_edge.12.epil

._crit_edge.12.epil:                              ; preds = %._crit_edge.13.preheader.unr-lcssa
  %281 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.13.unr, i64 13
  %282 = load i32, ptr %281, align 4, !tbaa !7
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %283, i64 13
  %285 = load i32, ptr %284, align 4, !tbaa !7
  %286 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.13.unr, i64 14
  store i32 %285, ptr %286, align 8, !tbaa !7
  br label %._crit_edge.13.preheader

._crit_edge.13.preheader:                         ; preds = %._crit_edge.13.preheader.unr-lcssa, %._crit_edge.12.epil
  %xtraiter148 = and i64 %20, 1
  %287 = icmp eq i64 %22, 0
  br i1 %287, label %._crit_edge.14.preheader.unr-lcssa, label %._crit_edge.13.preheader.new

._crit_edge.13.preheader.new:                     ; preds = %._crit_edge.13.preheader
  %unroll_iter150 = and i64 %20, 2147483646
  br label %._crit_edge.13

._crit_edge.13:                                   ; preds = %._crit_edge.13, %._crit_edge.13.preheader.new
  %indvars.iv75.14 = phi i64 [ 1, %._crit_edge.13.preheader.new ], [ %indvars.iv.next76.14.1, %._crit_edge.13 ]
  %niter151 = phi i64 [ 0, %._crit_edge.13.preheader.new ], [ %niter151.next.1, %._crit_edge.13 ]
  %288 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.14, i64 14
  %289 = load i32, ptr %288, align 8, !tbaa !7
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %290, i64 14
  %292 = load i32, ptr %291, align 8, !tbaa !7
  %293 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.14, i64 15
  store i32 %292, ptr %293, align 4, !tbaa !7
  %indvars.iv.next76.14 = add nuw nsw i64 %indvars.iv75.14, 1
  %294 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.14, i64 14
  %295 = load i32, ptr %294, align 8, !tbaa !7
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %296, i64 14
  %298 = load i32, ptr %297, align 8, !tbaa !7
  %299 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.14, i64 15
  store i32 %298, ptr %299, align 4, !tbaa !7
  %indvars.iv.next76.14.1 = add nuw nsw i64 %indvars.iv75.14, 2
  %niter151.next.1 = add i64 %niter151, 2
  %niter151.ncmp.1 = icmp eq i64 %niter151.next.1, %unroll_iter150
  br i1 %niter151.ncmp.1, label %._crit_edge.14.preheader.unr-lcssa, label %._crit_edge.13, !llvm.loop !14

._crit_edge.14.preheader.unr-lcssa:               ; preds = %._crit_edge.13, %._crit_edge.13.preheader
  %indvars.iv75.14.unr = phi i64 [ 1, %._crit_edge.13.preheader ], [ %indvars.iv.next76.14.1, %._crit_edge.13 ]
  %lcmp.mod149.not = icmp eq i64 %xtraiter148, 0
  br i1 %lcmp.mod149.not, label %._crit_edge.14.preheader, label %._crit_edge.13.epil

._crit_edge.13.epil:                              ; preds = %._crit_edge.14.preheader.unr-lcssa
  %300 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.14.unr, i64 14
  %301 = load i32, ptr %300, align 8, !tbaa !7
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %302, i64 14
  %304 = load i32, ptr %303, align 8, !tbaa !7
  %305 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.14.unr, i64 15
  store i32 %304, ptr %305, align 4, !tbaa !7
  br label %._crit_edge.14.preheader

._crit_edge.14.preheader:                         ; preds = %._crit_edge.14.preheader.unr-lcssa, %._crit_edge.13.epil
  %xtraiter152 = and i64 %20, 1
  %306 = icmp eq i64 %22, 0
  br i1 %306, label %._crit_edge.15.preheader.unr-lcssa, label %._crit_edge.14.preheader.new

._crit_edge.14.preheader.new:                     ; preds = %._crit_edge.14.preheader
  %unroll_iter154 = and i64 %20, 2147483646
  br label %._crit_edge.14

._crit_edge.14:                                   ; preds = %._crit_edge.14, %._crit_edge.14.preheader.new
  %indvars.iv75.15 = phi i64 [ 1, %._crit_edge.14.preheader.new ], [ %indvars.iv.next76.15.1, %._crit_edge.14 ]
  %niter155 = phi i64 [ 0, %._crit_edge.14.preheader.new ], [ %niter155.next.1, %._crit_edge.14 ]
  %307 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.15, i64 15
  %308 = load i32, ptr %307, align 4, !tbaa !7
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %309, i64 15
  %311 = load i32, ptr %310, align 4, !tbaa !7
  %312 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.15, i64 16
  store i32 %311, ptr %312, align 8, !tbaa !7
  %indvars.iv.next76.15 = add nuw nsw i64 %indvars.iv75.15, 1
  %313 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.15, i64 15
  %314 = load i32, ptr %313, align 4, !tbaa !7
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %315, i64 15
  %317 = load i32, ptr %316, align 4, !tbaa !7
  %318 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.15, i64 16
  store i32 %317, ptr %318, align 8, !tbaa !7
  %indvars.iv.next76.15.1 = add nuw nsw i64 %indvars.iv75.15, 2
  %niter155.next.1 = add i64 %niter155, 2
  %niter155.ncmp.1 = icmp eq i64 %niter155.next.1, %unroll_iter154
  br i1 %niter155.ncmp.1, label %._crit_edge.15.preheader.unr-lcssa, label %._crit_edge.14, !llvm.loop !14

._crit_edge.15.preheader.unr-lcssa:               ; preds = %._crit_edge.14, %._crit_edge.14.preheader
  %indvars.iv75.15.unr = phi i64 [ 1, %._crit_edge.14.preheader ], [ %indvars.iv.next76.15.1, %._crit_edge.14 ]
  %lcmp.mod153.not = icmp eq i64 %xtraiter152, 0
  br i1 %lcmp.mod153.not, label %._crit_edge.15.preheader, label %._crit_edge.14.epil

._crit_edge.14.epil:                              ; preds = %._crit_edge.15.preheader.unr-lcssa
  %319 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.15.unr, i64 15
  %320 = load i32, ptr %319, align 4, !tbaa !7
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %321, i64 15
  %323 = load i32, ptr %322, align 4, !tbaa !7
  %324 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.15.unr, i64 16
  store i32 %323, ptr %324, align 8, !tbaa !7
  br label %._crit_edge.15.preheader

._crit_edge.15.preheader:                         ; preds = %._crit_edge.15.preheader.unr-lcssa, %._crit_edge.14.epil
  %xtraiter156 = and i64 %20, 1
  %325 = icmp eq i64 %22, 0
  br i1 %325, label %.split.us.loopexit.unr-lcssa, label %._crit_edge.15.preheader.new

._crit_edge.15.preheader.new:                     ; preds = %._crit_edge.15.preheader
  %unroll_iter158 = and i64 %20, 2147483646
  br label %._crit_edge.15

._crit_edge.15:                                   ; preds = %._crit_edge.15, %._crit_edge.15.preheader.new
  %indvars.iv75.16 = phi i64 [ 1, %._crit_edge.15.preheader.new ], [ %indvars.iv.next76.16.1, %._crit_edge.15 ]
  %niter159 = phi i64 [ 0, %._crit_edge.15.preheader.new ], [ %niter159.next.1, %._crit_edge.15 ]
  %326 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.16, i64 16
  %327 = load i32, ptr %326, align 8, !tbaa !7
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %328, i64 16
  %330 = load i32, ptr %329, align 8, !tbaa !7
  %331 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.16, i64 17
  store i32 %330, ptr %331, align 4, !tbaa !7
  %indvars.iv.next76.16 = add nuw nsw i64 %indvars.iv75.16, 1
  %332 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.16, i64 16
  %333 = load i32, ptr %332, align 8, !tbaa !7
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %334, i64 16
  %336 = load i32, ptr %335, align 8, !tbaa !7
  %337 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76.16, i64 17
  store i32 %336, ptr %337, align 4, !tbaa !7
  %indvars.iv.next76.16.1 = add nuw nsw i64 %indvars.iv75.16, 2
  %niter159.next.1 = add i64 %niter159, 2
  %niter159.ncmp.1 = icmp eq i64 %niter159.next.1, %unroll_iter158
  br i1 %niter159.ncmp.1, label %.split.us.loopexit.unr-lcssa, label %._crit_edge.15, !llvm.loop !14

338:                                              ; preds = %338, %.preheader.preheader.new
  %indvars.iv75 = phi i64 [ 1, %.preheader.preheader.new ], [ %indvars.iv.next76.194, %338 ]
  %niter = phi i64 [ 0, %.preheader.preheader.new ], [ %niter.next.1, %338 ]
  %339 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75, i64 0
  %340 = load i32, ptr %339, align 8, !tbaa !7
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %341, i64 0
  %343 = load i32, ptr %342, align 8, !tbaa !7
  %344 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75, i64 1
  store i32 %343, ptr %344, align 4, !tbaa !7
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %345 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76, i64 0
  %346 = load i32, ptr %345, align 8, !tbaa !7
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %347, i64 0
  %349 = load i32, ptr %348, align 8, !tbaa !7
  %350 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv.next76, i64 1
  store i32 %349, ptr %350, align 4, !tbaa !7
  %indvars.iv.next76.194 = add nuw nsw i64 %indvars.iv75, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.preheader.unr-lcssa, label %338, !llvm.loop !14

._crit_edge.preheader.unr-lcssa:                  ; preds = %338, %.preheader.preheader
  %indvars.iv75.unr = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next76.194, %338 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge.preheader, label %._crit_edge.preheader.epilog-lcssa

._crit_edge.preheader.epilog-lcssa:               ; preds = %._crit_edge.preheader.unr-lcssa
  %351 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.unr, i64 0
  %352 = load i32, ptr %351, align 8, !tbaa !7
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %353, i64 0
  %355 = load i32, ptr %354, align 8, !tbaa !7
  %356 = getelementptr inbounds [100010 x [18 x i32]], ptr @fa, i64 0, i64 %indvars.iv75.unr, i64 1
  store i32 %355, ptr %356, align 4, !tbaa !7
  br label %._crit_edge.preheader

._crit_edge.preheader:                            ; preds = %._crit_edge.preheader.unr-lcssa, %._crit_edge.preheader.epilog-lcssa
  %xtraiter95 = and i64 %20, 1
  %357 = icmp eq i64 %22, 0
  br i1 %357, label %._crit_edge.1.preheader.unr-lcssa, label %._crit_edge.preheader.new

._crit_edge.preheader.new:                        ; preds = %._crit_edge.preheader
  %unroll_iter97 = and i64 %20, 2147483646
  br label %._crit_edge

.lr.ph62:                                         ; preds = %.split.us, %397
  %.03160 = phi i32 [ %398, %397 ], [ 0, %.split.us ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %358 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %359 = load i32, ptr %1, align 4, !tbaa !7
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [100010 x i32], ptr @gen, i64 0, i64 %360
  %362 = load i32, ptr %361, align 4, !tbaa !7
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [100010 x i32], ptr @cir, i64 0, i64 %363
  %365 = load i32, ptr %364, align 4, !tbaa !7
  %366 = load i32, ptr %2, align 4, !tbaa !7
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [100010 x i32], ptr @gen, i64 0, i64 %367
  %369 = load i32, ptr %368, align 4, !tbaa !7
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds [100010 x i32], ptr @cir, i64 0, i64 %370
  %372 = load i32, ptr %371, align 4, !tbaa !7
  %.not41 = icmp eq i32 %365, %372
  br i1 %.not41, label %375, label %373

373:                                              ; preds = %.lr.ph62
  %374 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %397

375:                                              ; preds = %.lr.ph62
  %376 = icmp eq i32 %362, %369
  br i1 %376, label %377, label %380

377:                                              ; preds = %375
  %378 = call noundef i32 @_Z4distii(i32 noundef %359, i32 noundef %366)
  %379 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %378)
  br label %397

380:                                              ; preds = %375
  %381 = getelementptr inbounds [100010 x i32], ptr @dep, i64 0, i64 %360
  %382 = load i32, ptr %381, align 4, !tbaa !7
  %383 = getelementptr inbounds [100010 x i32], ptr @dep, i64 0, i64 %367
  %384 = load i32, ptr %383, align 4, !tbaa !7
  %385 = add nsw i32 %384, %382
  %386 = getelementptr inbounds [100010 x i32], ptr @cir_no, i64 0, i64 %363
  %387 = load i32, ptr %386, align 4, !tbaa !7
  %388 = getelementptr inbounds [100010 x i32], ptr @cir_no, i64 0, i64 %370
  %389 = load i32, ptr %388, align 4, !tbaa !7
  %390 = sub nsw i32 %387, %389
  %spec.select = call i32 @llvm.abs.i32(i32 %390, i1 true)
  %391 = sext i32 %365 to i64
  %392 = getelementptr inbounds [100010 x i32], ptr @cir_cnt, i64 0, i64 %391
  %393 = load i32, ptr %392, align 4, !tbaa !7
  %394 = sub nsw i32 %393, %spec.select
  %.1 = call i32 @llvm.smin.i32(i32 %spec.select, i32 %394)
  %395 = add nsw i32 %385, %.1
  %396 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %395)
  br label %397

397:                                              ; preds = %377, %380, %373
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %398 = add nuw nsw i32 %.03160, 1
  %399 = load i32, ptr @q, align 4, !tbaa !7
  %400 = icmp slt i32 %398, %399
  br i1 %400, label %.lr.ph62, label %.loopexit, !llvm.loop !15

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!12, !6}
!13 = distinct !{!13, !6}
!14 = distinct !{!14, !6}
!15 = distinct !{!15, !6}


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