; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Week of Code/Week 14/Subtrees and Paths (a)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@adj_list = external dso_local global [110001 x %"class.std::vector"], align 16
@n = external dso_local global i32, align 4
@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@chain_no = external dso_local global i32, align 4
@chain_head = external dso_local global [110001 x i32], align 16
@ptr = external dso_local global i32, align 4
@pa = external dso_local global [17 x [110001 x i32]], align 16
@instr = external dso_local global [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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
  store i32 0, ptr %1, align 4
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %9

9:                                                ; preds = %33, %0
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = icmp sle i32 %10, %11
  br i1 %12, label %14, label %13

13:                                               ; preds = %9
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %36

14:                                               ; preds = %9
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [110001 x i32], ptr @chain_head, i64 0, i64 %16
  store i32 -1, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %29, %14
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = icmp slt i32 %19, 17
  br i1 %20, label %22, label %21

21:                                               ; preds = %18
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %32

22:                                               ; preds = %18
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 %24
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [110001 x i32], ptr %25, i64 0, i64 %27
  store i32 -1, ptr %28, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %22
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %4, align 4, !tbaa !5
  br label %18, !llvm.loop !9

32:                                               ; preds = %21
  br label %33

33:                                               ; preds = %32
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %2, align 4, !tbaa !5
  br label %9, !llvm.loop !11

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

37:                                               ; preds = %50, %36
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = load i32, ptr @n, align 4, !tbaa !5
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %53

42:                                               ; preds = %37
  %43 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef @a, ptr noundef @b)
  %44 = load i32, ptr @a, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [110001 x %"class.std::vector"], ptr @adj_list, i64 0, i64 %45
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 4 dereferenceable(4) @b)
  %47 = load i32, ptr @b, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [110001 x %"class.std::vector"], ptr @adj_list, i64 0, i64 %48
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 4 dereferenceable(4) @a)
  br label %50

50:                                               ; preds = %42
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %5, align 4, !tbaa !5
  br label %37, !llvm.loop !12

53:                                               ; preds = %41
  store i32 0, ptr @chain_no, align 4, !tbaa !5
  store i32 0, ptr @ptr, align 4, !tbaa !5
  call void @_Z3dfsiii(i32 noundef 1, i32 noundef -1, i32 noundef 0)
  call void @_Z3hldii(i32 noundef 1, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %101, %53
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = icmp slt i32 %55, 17
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %104

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %97, %58
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = load i32, ptr @n, align 4, !tbaa !5
  %62 = icmp sle i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %100

64:                                               ; preds = %59
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = sub nsw i32 %65, 1
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 %67
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [110001 x i32], ptr %68, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = icmp ne i32 %72, -1
  br i1 %73, label %74, label %96

74:                                               ; preds = %64
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = sub nsw i32 %75, 1
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 %77
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = sub nsw i32 %79, 1
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 %81
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [110001 x i32], ptr %82, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [110001 x i32], ptr %78, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 %91
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [110001 x i32], ptr %92, i64 0, i64 %94
  store i32 %89, ptr %95, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %74, %64
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %7, align 4, !tbaa !5
  br label %59, !llvm.loop !13

100:                                              ; preds = %63
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %6, align 4, !tbaa !5
  br label %54, !llvm.loop !14

104:                                              ; preds = %57
  %105 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @q)
  br label %106

106:                                              ; preds = %123, %104
  %107 = load i32, ptr @q, align 4, !tbaa !5
  %108 = add nsw i32 %107, -1
  store i32 %108, ptr @q, align 4, !tbaa !5
  %109 = icmp ne i32 %107, 0
  br i1 %109, label %110, label %124

110:                                              ; preds = %106
  %111 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef @instr)
  %112 = load i8, ptr @instr, align 1, !tbaa !15
  %113 = sext i8 %112 to i32
  %114 = icmp eq i32 %113, 97
  br i1 %114, label %115, label %119

115:                                              ; preds = %110
  %116 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef @a, ptr noundef @b)
  %117 = load i32, ptr @a, align 4, !tbaa !5
  %118 = load i32, ptr @b, align 4, !tbaa !5
  call void @_Z6changeii(i32 noundef %117, i32 noundef %118)
  br label %123

119:                                              ; preds = %110
  %120 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef @a, ptr noundef @b)
  %121 = load i32, ptr @a, align 4, !tbaa !5
  %122 = load i32, ptr @b, align 4, !tbaa !5
  call void @_Z5queryii(i32 noundef %121, i32 noundef %122)
  br label %123

123:                                              ; preds = %119, %115
  br label %106, !llvm.loop !16

124:                                              ; preds = %106
  ret i32 0
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { 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 = !{!7, !7, i64 0}
!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"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@adj_list = external dso_local global [110001 x %"class.std::vector"], align 16
@n = external dso_local global i32, align 4
@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@chain_no = external dso_local local_unnamed_addr global i32, align 4
@chain_head = external dso_local local_unnamed_addr global [110001 x i32], align 16
@ptr = external dso_local local_unnamed_addr global i32, align 4
@pa = external dso_local local_unnamed_addr global [17 x [110001 x i32]], align 16
@instr = external dso_local global [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @n)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %.not30 = icmp slt i32 %2, 0
  br i1 %.not30, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %0
  %3 = add nuw i32 %2, 1
  %4 = zext i32 %3 to i64
  %5 = shl nuw nsw i64 %4, 2
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) @chain_head, i8 -1, i64 %5, i1 false), !tbaa !5
  %min.iters.check = icmp ult i32 %2, 3
  br i1 %min.iters.check, label %.lr.ph.preheader57, label %vector.ph

.lr.ph.preheader57:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %4, 4294967292
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %6 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 0, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %6, align 16, !tbaa !5
  %7 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 1, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %7, align 4, !tbaa !5
  %8 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 2, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 3, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %9, align 4, !tbaa !5
  %10 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 4, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %10, align 16, !tbaa !5
  %11 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 5, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %11, align 4, !tbaa !5
  %12 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 6, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %12, align 8, !tbaa !5
  %13 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 7, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %13, align 4, !tbaa !5
  %14 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 8, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %14, align 16, !tbaa !5
  %15 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 9, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %15, align 4, !tbaa !5
  %16 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 10, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %16, align 8, !tbaa !5
  %17 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 11, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 12, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %18, align 16, !tbaa !5
  %19 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 13, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %19, align 4, !tbaa !5
  %20 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 14, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %20, align 8, !tbaa !5
  %21 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 15, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 16, i64 %index
  store <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, ptr %22, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %23 = icmp eq i64 %index.next, %n.vec
  br i1 %23, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %4
  br i1 %cmp.n, label %.preheader28, label %.lr.ph.preheader57

.preheader28:                                     ; preds = %.lr.ph, %middle.block
  %24 = icmp sgt i32 %2, 1
  br i1 %24, label %.lr.ph33, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph.preheader57, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader57 ]
  %25 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 0, i64 %indvars.iv
  store i32 -1, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv
  store i32 -1, ptr %26, align 4, !tbaa !5
  %27 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv
  store i32 -1, ptr %27, align 4, !tbaa !5
  %28 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv
  store i32 -1, ptr %28, align 4, !tbaa !5
  %29 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv
  store i32 -1, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv
  store i32 -1, ptr %30, align 4, !tbaa !5
  %31 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv
  store i32 -1, ptr %31, align 4, !tbaa !5
  %32 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv
  store i32 -1, ptr %32, align 4, !tbaa !5
  %33 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv
  store i32 -1, ptr %33, align 4, !tbaa !5
  %34 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv
  store i32 -1, ptr %34, align 4, !tbaa !5
  %35 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv
  store i32 -1, ptr %35, align 4, !tbaa !5
  %36 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv
  store i32 -1, ptr %36, align 4, !tbaa !5
  %37 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv
  store i32 -1, ptr %37, align 4, !tbaa !5
  %38 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv
  store i32 -1, ptr %38, align 4, !tbaa !5
  %39 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 14, i64 %indvars.iv
  store i32 -1, ptr %39, align 4, !tbaa !5
  %40 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 15, i64 %indvars.iv
  store i32 -1, ptr %40, align 4, !tbaa !5
  %41 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 16, i64 %indvars.iv
  store i32 -1, ptr %41, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %4
  br i1 %exitcond.not, label %.preheader28, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph33, %0, %.preheader28
  store i32 0, ptr @chain_no, align 4, !tbaa !5
  store i32 0, ptr @ptr, align 4, !tbaa !5
  tail call void @_Z3dfsiii(i32 noundef 1, i32 noundef -1, i32 noundef 0)
  tail call void @_Z3hldii(i32 noundef 1, i32 noundef -1)
  %42 = load i32, ptr @n, align 4, !tbaa !5
  %.not2634 = icmp slt i32 %42, 0
  br i1 %.not2634, label %.split40.us, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge
  %43 = add nuw i32 %42, 1
  %wide.trip.count51 = zext i32 %43 to i64
  %xtraiter = and i64 %wide.trip.count51, 1
  %44 = icmp eq i32 %42, 0
  br i1 %44, label %._crit_edge37.preheader.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter = and i64 %wide.trip.count51, 4294967294
  br label %402

.lr.ph33:                                         ; preds = %.preheader28, %.lr.ph33
  %.02132 = phi i32 [ %52, %.lr.ph33 ], [ 1, %.preheader28 ]
  %45 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull @a, ptr noundef nonnull @b)
  %46 = load i32, ptr @a, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [110001 x %"class.std::vector"], ptr @adj_list, i64 0, i64 %47
  tail call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull align 4 dereferenceable(4) @b)
  %49 = load i32, ptr @b, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [110001 x %"class.std::vector"], ptr @adj_list, i64 0, i64 %50
  tail call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 4 dereferenceable(4) @a)
  %52 = add nuw nsw i32 %.02132, 1
  %53 = load i32, ptr @n, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %.lr.ph33, label %._crit_edge, !llvm.loop !14

.split40.us.loopexit.unr-lcssa:                   ; preds = %401, %._crit_edge37.14.preheader
  %indvars.iv48.15.unr = phi i64 [ 0, %._crit_edge37.14.preheader ], [ %indvars.iv.next49.15.1, %401 ]
  %lcmp.mod119.not = icmp eq i64 %xtraiter118, 0
  br i1 %lcmp.mod119.not, label %.split40.us, label %._crit_edge37.14.epil

._crit_edge37.14.epil:                            ; preds = %.split40.us.loopexit.unr-lcssa
  %55 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 15, i64 %indvars.iv48.15.unr
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %.not27.15.epil = icmp eq i32 %56, -1
  br i1 %.not27.15.epil, label %.split40.us, label %57

57:                                               ; preds = %._crit_edge37.14.epil
  %58 = sext i32 %56 to i64
  %59 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 15, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 16, i64 %indvars.iv48.15.unr
  store i32 %60, ptr %61, align 4, !tbaa !5
  br label %.split40.us

.split40.us:                                      ; preds = %.split40.us.loopexit.unr-lcssa, %57, %._crit_edge37.14.epil, %._crit_edge
  %62 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @q)
  %63 = load i32, ptr @q, align 4, !tbaa !5
  %64 = add nsw i32 %63, -1
  store i32 %64, ptr @q, align 4, !tbaa !5
  %.not2541 = icmp eq i32 %63, 0
  br i1 %.not2541, label %._crit_edge44, label %.lr.ph43

._crit_edge37:                                    ; preds = %79, %._crit_edge37.preheader.new
  %indvars.iv48.1 = phi i64 [ 0, %._crit_edge37.preheader.new ], [ %indvars.iv.next49.1.1, %79 ]
  %niter64 = phi i64 [ 0, %._crit_edge37.preheader.new ], [ %niter64.next.1, %79 ]
  %65 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv48.1
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %.not27.1 = icmp eq i32 %66, -1
  br i1 %.not27.1, label %._crit_edge37.165, label %67

67:                                               ; preds = %._crit_edge37
  %68 = sext i32 %66 to i64
  %69 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 1, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv48.1
  store i32 %70, ptr %71, align 8, !tbaa !5
  br label %._crit_edge37.165

._crit_edge37.165:                                ; preds = %67, %._crit_edge37
  %indvars.iv.next49.1 = or disjoint i64 %indvars.iv48.1, 1
  %72 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv.next49.1
  %73 = load i32, ptr %72, align 8, !tbaa !5
  %.not27.1.1 = icmp eq i32 %73, -1
  br i1 %.not27.1.1, label %79, label %74

74:                                               ; preds = %._crit_edge37.165
  %75 = sext i32 %73 to i64
  %76 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 1, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv.next49.1
  store i32 %77, ptr %78, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %74, %._crit_edge37.165
  %indvars.iv.next49.1.1 = add nuw nsw i64 %indvars.iv48.1, 2
  %niter64.next.1 = add i64 %niter64, 2
  %niter64.ncmp.1 = icmp eq i64 %niter64.next.1, %unroll_iter63
  br i1 %niter64.ncmp.1, label %._crit_edge37.1.preheader.unr-lcssa, label %._crit_edge37, !llvm.loop !15

._crit_edge37.1.preheader.unr-lcssa:              ; preds = %79, %._crit_edge37.preheader
  %indvars.iv48.1.unr = phi i64 [ 0, %._crit_edge37.preheader ], [ %indvars.iv.next49.1.1, %79 ]
  %lcmp.mod62.not = icmp eq i64 %xtraiter61, 0
  br i1 %lcmp.mod62.not, label %._crit_edge37.1.preheader, label %._crit_edge37.epil

._crit_edge37.epil:                               ; preds = %._crit_edge37.1.preheader.unr-lcssa
  %80 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv48.1.unr
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %.not27.1.epil = icmp eq i32 %81, -1
  br i1 %.not27.1.epil, label %._crit_edge37.1.preheader, label %82

82:                                               ; preds = %._crit_edge37.epil
  %83 = sext i32 %81 to i64
  %84 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 1, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv48.1.unr
  store i32 %85, ptr %86, align 4, !tbaa !5
  br label %._crit_edge37.1.preheader

._crit_edge37.1.preheader:                        ; preds = %._crit_edge37.epil, %82, %._crit_edge37.1.preheader.unr-lcssa
  %xtraiter66 = and i64 %wide.trip.count51, 1
  %87 = icmp eq i32 %42, 0
  br i1 %87, label %._crit_edge37.2.preheader.unr-lcssa, label %._crit_edge37.1.preheader.new

._crit_edge37.1.preheader.new:                    ; preds = %._crit_edge37.1.preheader
  %unroll_iter68 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.1

._crit_edge37.1:                                  ; preds = %102, %._crit_edge37.1.preheader.new
  %indvars.iv48.2 = phi i64 [ 0, %._crit_edge37.1.preheader.new ], [ %indvars.iv.next49.2.1, %102 ]
  %niter69 = phi i64 [ 0, %._crit_edge37.1.preheader.new ], [ %niter69.next.1, %102 ]
  %88 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv48.2
  %89 = load i32, ptr %88, align 8, !tbaa !5
  %.not27.2 = icmp eq i32 %89, -1
  br i1 %.not27.2, label %._crit_edge37.1.1, label %90

90:                                               ; preds = %._crit_edge37.1
  %91 = sext i32 %89 to i64
  %92 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 2, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv48.2
  store i32 %93, ptr %94, align 4, !tbaa !5
  br label %._crit_edge37.1.1

._crit_edge37.1.1:                                ; preds = %90, %._crit_edge37.1
  %indvars.iv.next49.2 = or disjoint i64 %indvars.iv48.2, 1
  %95 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv.next49.2
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %.not27.2.1 = icmp eq i32 %96, -1
  br i1 %.not27.2.1, label %102, label %97

97:                                               ; preds = %._crit_edge37.1.1
  %98 = sext i32 %96 to i64
  %99 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 2, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv.next49.2
  store i32 %100, ptr %101, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %97, %._crit_edge37.1.1
  %indvars.iv.next49.2.1 = add nuw nsw i64 %indvars.iv48.2, 2
  %niter69.next.1 = add i64 %niter69, 2
  %niter69.ncmp.1 = icmp eq i64 %niter69.next.1, %unroll_iter68
  br i1 %niter69.ncmp.1, label %._crit_edge37.2.preheader.unr-lcssa, label %._crit_edge37.1, !llvm.loop !15

._crit_edge37.2.preheader.unr-lcssa:              ; preds = %102, %._crit_edge37.1.preheader
  %indvars.iv48.2.unr = phi i64 [ 0, %._crit_edge37.1.preheader ], [ %indvars.iv.next49.2.1, %102 ]
  %lcmp.mod67.not = icmp eq i64 %xtraiter66, 0
  br i1 %lcmp.mod67.not, label %._crit_edge37.2.preheader, label %._crit_edge37.1.epil

._crit_edge37.1.epil:                             ; preds = %._crit_edge37.2.preheader.unr-lcssa
  %103 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv48.2.unr
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %.not27.2.epil = icmp eq i32 %104, -1
  br i1 %.not27.2.epil, label %._crit_edge37.2.preheader, label %105

105:                                              ; preds = %._crit_edge37.1.epil
  %106 = sext i32 %104 to i64
  %107 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 2, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv48.2.unr
  store i32 %108, ptr %109, align 4, !tbaa !5
  br label %._crit_edge37.2.preheader

._crit_edge37.2.preheader:                        ; preds = %._crit_edge37.1.epil, %105, %._crit_edge37.2.preheader.unr-lcssa
  %xtraiter70 = and i64 %wide.trip.count51, 1
  %110 = icmp eq i32 %42, 0
  br i1 %110, label %._crit_edge37.3.preheader.unr-lcssa, label %._crit_edge37.2.preheader.new

._crit_edge37.2.preheader.new:                    ; preds = %._crit_edge37.2.preheader
  %unroll_iter72 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.2

._crit_edge37.2:                                  ; preds = %125, %._crit_edge37.2.preheader.new
  %indvars.iv48.3 = phi i64 [ 0, %._crit_edge37.2.preheader.new ], [ %indvars.iv.next49.3.1, %125 ]
  %niter73 = phi i64 [ 0, %._crit_edge37.2.preheader.new ], [ %niter73.next.1, %125 ]
  %111 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv48.3
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %.not27.3 = icmp eq i32 %112, -1
  br i1 %.not27.3, label %._crit_edge37.2.1, label %113

113:                                              ; preds = %._crit_edge37.2
  %114 = sext i32 %112 to i64
  %115 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 3, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv48.3
  store i32 %116, ptr %117, align 8, !tbaa !5
  br label %._crit_edge37.2.1

._crit_edge37.2.1:                                ; preds = %113, %._crit_edge37.2
  %indvars.iv.next49.3 = or disjoint i64 %indvars.iv48.3, 1
  %118 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv.next49.3
  %119 = load i32, ptr %118, align 8, !tbaa !5
  %.not27.3.1 = icmp eq i32 %119, -1
  br i1 %.not27.3.1, label %125, label %120

120:                                              ; preds = %._crit_edge37.2.1
  %121 = sext i32 %119 to i64
  %122 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 3, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv.next49.3
  store i32 %123, ptr %124, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %120, %._crit_edge37.2.1
  %indvars.iv.next49.3.1 = add nuw nsw i64 %indvars.iv48.3, 2
  %niter73.next.1 = add i64 %niter73, 2
  %niter73.ncmp.1 = icmp eq i64 %niter73.next.1, %unroll_iter72
  br i1 %niter73.ncmp.1, label %._crit_edge37.3.preheader.unr-lcssa, label %._crit_edge37.2, !llvm.loop !15

._crit_edge37.3.preheader.unr-lcssa:              ; preds = %125, %._crit_edge37.2.preheader
  %indvars.iv48.3.unr = phi i64 [ 0, %._crit_edge37.2.preheader ], [ %indvars.iv.next49.3.1, %125 ]
  %lcmp.mod71.not = icmp eq i64 %xtraiter70, 0
  br i1 %lcmp.mod71.not, label %._crit_edge37.3.preheader, label %._crit_edge37.2.epil

._crit_edge37.2.epil:                             ; preds = %._crit_edge37.3.preheader.unr-lcssa
  %126 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv48.3.unr
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %.not27.3.epil = icmp eq i32 %127, -1
  br i1 %.not27.3.epil, label %._crit_edge37.3.preheader, label %128

128:                                              ; preds = %._crit_edge37.2.epil
  %129 = sext i32 %127 to i64
  %130 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 3, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv48.3.unr
  store i32 %131, ptr %132, align 4, !tbaa !5
  br label %._crit_edge37.3.preheader

._crit_edge37.3.preheader:                        ; preds = %._crit_edge37.2.epil, %128, %._crit_edge37.3.preheader.unr-lcssa
  %xtraiter74 = and i64 %wide.trip.count51, 1
  %133 = icmp eq i32 %42, 0
  br i1 %133, label %._crit_edge37.4.preheader.unr-lcssa, label %._crit_edge37.3.preheader.new

._crit_edge37.3.preheader.new:                    ; preds = %._crit_edge37.3.preheader
  %unroll_iter76 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.3

._crit_edge37.3:                                  ; preds = %148, %._crit_edge37.3.preheader.new
  %indvars.iv48.4 = phi i64 [ 0, %._crit_edge37.3.preheader.new ], [ %indvars.iv.next49.4.1, %148 ]
  %niter77 = phi i64 [ 0, %._crit_edge37.3.preheader.new ], [ %niter77.next.1, %148 ]
  %134 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv48.4
  %135 = load i32, ptr %134, align 8, !tbaa !5
  %.not27.4 = icmp eq i32 %135, -1
  br i1 %.not27.4, label %._crit_edge37.3.1, label %136

136:                                              ; preds = %._crit_edge37.3
  %137 = sext i32 %135 to i64
  %138 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 4, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv48.4
  store i32 %139, ptr %140, align 4, !tbaa !5
  br label %._crit_edge37.3.1

._crit_edge37.3.1:                                ; preds = %136, %._crit_edge37.3
  %indvars.iv.next49.4 = or disjoint i64 %indvars.iv48.4, 1
  %141 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv.next49.4
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %.not27.4.1 = icmp eq i32 %142, -1
  br i1 %.not27.4.1, label %148, label %143

143:                                              ; preds = %._crit_edge37.3.1
  %144 = sext i32 %142 to i64
  %145 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 4, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv.next49.4
  store i32 %146, ptr %147, align 8, !tbaa !5
  br label %148

148:                                              ; preds = %143, %._crit_edge37.3.1
  %indvars.iv.next49.4.1 = add nuw nsw i64 %indvars.iv48.4, 2
  %niter77.next.1 = add i64 %niter77, 2
  %niter77.ncmp.1 = icmp eq i64 %niter77.next.1, %unroll_iter76
  br i1 %niter77.ncmp.1, label %._crit_edge37.4.preheader.unr-lcssa, label %._crit_edge37.3, !llvm.loop !15

._crit_edge37.4.preheader.unr-lcssa:              ; preds = %148, %._crit_edge37.3.preheader
  %indvars.iv48.4.unr = phi i64 [ 0, %._crit_edge37.3.preheader ], [ %indvars.iv.next49.4.1, %148 ]
  %lcmp.mod75.not = icmp eq i64 %xtraiter74, 0
  br i1 %lcmp.mod75.not, label %._crit_edge37.4.preheader, label %._crit_edge37.3.epil

._crit_edge37.3.epil:                             ; preds = %._crit_edge37.4.preheader.unr-lcssa
  %149 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv48.4.unr
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %.not27.4.epil = icmp eq i32 %150, -1
  br i1 %.not27.4.epil, label %._crit_edge37.4.preheader, label %151

151:                                              ; preds = %._crit_edge37.3.epil
  %152 = sext i32 %150 to i64
  %153 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 4, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv48.4.unr
  store i32 %154, ptr %155, align 4, !tbaa !5
  br label %._crit_edge37.4.preheader

._crit_edge37.4.preheader:                        ; preds = %._crit_edge37.3.epil, %151, %._crit_edge37.4.preheader.unr-lcssa
  %xtraiter78 = and i64 %wide.trip.count51, 1
  %156 = icmp eq i32 %42, 0
  br i1 %156, label %._crit_edge37.5.preheader.unr-lcssa, label %._crit_edge37.4.preheader.new

._crit_edge37.4.preheader.new:                    ; preds = %._crit_edge37.4.preheader
  %unroll_iter80 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.4

._crit_edge37.4:                                  ; preds = %171, %._crit_edge37.4.preheader.new
  %indvars.iv48.5 = phi i64 [ 0, %._crit_edge37.4.preheader.new ], [ %indvars.iv.next49.5.1, %171 ]
  %niter81 = phi i64 [ 0, %._crit_edge37.4.preheader.new ], [ %niter81.next.1, %171 ]
  %157 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv48.5
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %.not27.5 = icmp eq i32 %158, -1
  br i1 %.not27.5, label %._crit_edge37.4.1, label %159

159:                                              ; preds = %._crit_edge37.4
  %160 = sext i32 %158 to i64
  %161 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 5, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv48.5
  store i32 %162, ptr %163, align 8, !tbaa !5
  br label %._crit_edge37.4.1

._crit_edge37.4.1:                                ; preds = %159, %._crit_edge37.4
  %indvars.iv.next49.5 = or disjoint i64 %indvars.iv48.5, 1
  %164 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv.next49.5
  %165 = load i32, ptr %164, align 8, !tbaa !5
  %.not27.5.1 = icmp eq i32 %165, -1
  br i1 %.not27.5.1, label %171, label %166

166:                                              ; preds = %._crit_edge37.4.1
  %167 = sext i32 %165 to i64
  %168 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 5, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv.next49.5
  store i32 %169, ptr %170, align 4, !tbaa !5
  br label %171

171:                                              ; preds = %166, %._crit_edge37.4.1
  %indvars.iv.next49.5.1 = add nuw nsw i64 %indvars.iv48.5, 2
  %niter81.next.1 = add i64 %niter81, 2
  %niter81.ncmp.1 = icmp eq i64 %niter81.next.1, %unroll_iter80
  br i1 %niter81.ncmp.1, label %._crit_edge37.5.preheader.unr-lcssa, label %._crit_edge37.4, !llvm.loop !15

._crit_edge37.5.preheader.unr-lcssa:              ; preds = %171, %._crit_edge37.4.preheader
  %indvars.iv48.5.unr = phi i64 [ 0, %._crit_edge37.4.preheader ], [ %indvars.iv.next49.5.1, %171 ]
  %lcmp.mod79.not = icmp eq i64 %xtraiter78, 0
  br i1 %lcmp.mod79.not, label %._crit_edge37.5.preheader, label %._crit_edge37.4.epil

._crit_edge37.4.epil:                             ; preds = %._crit_edge37.5.preheader.unr-lcssa
  %172 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv48.5.unr
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %.not27.5.epil = icmp eq i32 %173, -1
  br i1 %.not27.5.epil, label %._crit_edge37.5.preheader, label %174

174:                                              ; preds = %._crit_edge37.4.epil
  %175 = sext i32 %173 to i64
  %176 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 5, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv48.5.unr
  store i32 %177, ptr %178, align 4, !tbaa !5
  br label %._crit_edge37.5.preheader

._crit_edge37.5.preheader:                        ; preds = %._crit_edge37.4.epil, %174, %._crit_edge37.5.preheader.unr-lcssa
  %xtraiter82 = and i64 %wide.trip.count51, 1
  %179 = icmp eq i32 %42, 0
  br i1 %179, label %._crit_edge37.6.preheader.unr-lcssa, label %._crit_edge37.5.preheader.new

._crit_edge37.5.preheader.new:                    ; preds = %._crit_edge37.5.preheader
  %unroll_iter84 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.5

._crit_edge37.5:                                  ; preds = %194, %._crit_edge37.5.preheader.new
  %indvars.iv48.6 = phi i64 [ 0, %._crit_edge37.5.preheader.new ], [ %indvars.iv.next49.6.1, %194 ]
  %niter85 = phi i64 [ 0, %._crit_edge37.5.preheader.new ], [ %niter85.next.1, %194 ]
  %180 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv48.6
  %181 = load i32, ptr %180, align 8, !tbaa !5
  %.not27.6 = icmp eq i32 %181, -1
  br i1 %.not27.6, label %._crit_edge37.5.1, label %182

182:                                              ; preds = %._crit_edge37.5
  %183 = sext i32 %181 to i64
  %184 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 6, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv48.6
  store i32 %185, ptr %186, align 4, !tbaa !5
  br label %._crit_edge37.5.1

._crit_edge37.5.1:                                ; preds = %182, %._crit_edge37.5
  %indvars.iv.next49.6 = or disjoint i64 %indvars.iv48.6, 1
  %187 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv.next49.6
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %.not27.6.1 = icmp eq i32 %188, -1
  br i1 %.not27.6.1, label %194, label %189

189:                                              ; preds = %._crit_edge37.5.1
  %190 = sext i32 %188 to i64
  %191 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 6, i64 %190
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv.next49.6
  store i32 %192, ptr %193, align 8, !tbaa !5
  br label %194

194:                                              ; preds = %189, %._crit_edge37.5.1
  %indvars.iv.next49.6.1 = add nuw nsw i64 %indvars.iv48.6, 2
  %niter85.next.1 = add i64 %niter85, 2
  %niter85.ncmp.1 = icmp eq i64 %niter85.next.1, %unroll_iter84
  br i1 %niter85.ncmp.1, label %._crit_edge37.6.preheader.unr-lcssa, label %._crit_edge37.5, !llvm.loop !15

._crit_edge37.6.preheader.unr-lcssa:              ; preds = %194, %._crit_edge37.5.preheader
  %indvars.iv48.6.unr = phi i64 [ 0, %._crit_edge37.5.preheader ], [ %indvars.iv.next49.6.1, %194 ]
  %lcmp.mod83.not = icmp eq i64 %xtraiter82, 0
  br i1 %lcmp.mod83.not, label %._crit_edge37.6.preheader, label %._crit_edge37.5.epil

._crit_edge37.5.epil:                             ; preds = %._crit_edge37.6.preheader.unr-lcssa
  %195 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv48.6.unr
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %.not27.6.epil = icmp eq i32 %196, -1
  br i1 %.not27.6.epil, label %._crit_edge37.6.preheader, label %197

197:                                              ; preds = %._crit_edge37.5.epil
  %198 = sext i32 %196 to i64
  %199 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 6, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv48.6.unr
  store i32 %200, ptr %201, align 4, !tbaa !5
  br label %._crit_edge37.6.preheader

._crit_edge37.6.preheader:                        ; preds = %._crit_edge37.5.epil, %197, %._crit_edge37.6.preheader.unr-lcssa
  %xtraiter86 = and i64 %wide.trip.count51, 1
  %202 = icmp eq i32 %42, 0
  br i1 %202, label %._crit_edge37.7.preheader.unr-lcssa, label %._crit_edge37.6.preheader.new

._crit_edge37.6.preheader.new:                    ; preds = %._crit_edge37.6.preheader
  %unroll_iter88 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.6

._crit_edge37.6:                                  ; preds = %217, %._crit_edge37.6.preheader.new
  %indvars.iv48.7 = phi i64 [ 0, %._crit_edge37.6.preheader.new ], [ %indvars.iv.next49.7.1, %217 ]
  %niter89 = phi i64 [ 0, %._crit_edge37.6.preheader.new ], [ %niter89.next.1, %217 ]
  %203 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv48.7
  %204 = load i32, ptr %203, align 4, !tbaa !5
  %.not27.7 = icmp eq i32 %204, -1
  br i1 %.not27.7, label %._crit_edge37.6.1, label %205

205:                                              ; preds = %._crit_edge37.6
  %206 = sext i32 %204 to i64
  %207 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 7, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv48.7
  store i32 %208, ptr %209, align 8, !tbaa !5
  br label %._crit_edge37.6.1

._crit_edge37.6.1:                                ; preds = %205, %._crit_edge37.6
  %indvars.iv.next49.7 = or disjoint i64 %indvars.iv48.7, 1
  %210 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv.next49.7
  %211 = load i32, ptr %210, align 8, !tbaa !5
  %.not27.7.1 = icmp eq i32 %211, -1
  br i1 %.not27.7.1, label %217, label %212

212:                                              ; preds = %._crit_edge37.6.1
  %213 = sext i32 %211 to i64
  %214 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 7, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv.next49.7
  store i32 %215, ptr %216, align 4, !tbaa !5
  br label %217

217:                                              ; preds = %212, %._crit_edge37.6.1
  %indvars.iv.next49.7.1 = add nuw nsw i64 %indvars.iv48.7, 2
  %niter89.next.1 = add i64 %niter89, 2
  %niter89.ncmp.1 = icmp eq i64 %niter89.next.1, %unroll_iter88
  br i1 %niter89.ncmp.1, label %._crit_edge37.7.preheader.unr-lcssa, label %._crit_edge37.6, !llvm.loop !15

._crit_edge37.7.preheader.unr-lcssa:              ; preds = %217, %._crit_edge37.6.preheader
  %indvars.iv48.7.unr = phi i64 [ 0, %._crit_edge37.6.preheader ], [ %indvars.iv.next49.7.1, %217 ]
  %lcmp.mod87.not = icmp eq i64 %xtraiter86, 0
  br i1 %lcmp.mod87.not, label %._crit_edge37.7.preheader, label %._crit_edge37.6.epil

._crit_edge37.6.epil:                             ; preds = %._crit_edge37.7.preheader.unr-lcssa
  %218 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv48.7.unr
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %.not27.7.epil = icmp eq i32 %219, -1
  br i1 %.not27.7.epil, label %._crit_edge37.7.preheader, label %220

220:                                              ; preds = %._crit_edge37.6.epil
  %221 = sext i32 %219 to i64
  %222 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 7, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv48.7.unr
  store i32 %223, ptr %224, align 4, !tbaa !5
  br label %._crit_edge37.7.preheader

._crit_edge37.7.preheader:                        ; preds = %._crit_edge37.6.epil, %220, %._crit_edge37.7.preheader.unr-lcssa
  %xtraiter90 = and i64 %wide.trip.count51, 1
  %225 = icmp eq i32 %42, 0
  br i1 %225, label %._crit_edge37.8.preheader.unr-lcssa, label %._crit_edge37.7.preheader.new

._crit_edge37.7.preheader.new:                    ; preds = %._crit_edge37.7.preheader
  %unroll_iter92 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.7

._crit_edge37.7:                                  ; preds = %240, %._crit_edge37.7.preheader.new
  %indvars.iv48.8 = phi i64 [ 0, %._crit_edge37.7.preheader.new ], [ %indvars.iv.next49.8.1, %240 ]
  %niter93 = phi i64 [ 0, %._crit_edge37.7.preheader.new ], [ %niter93.next.1, %240 ]
  %226 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv48.8
  %227 = load i32, ptr %226, align 8, !tbaa !5
  %.not27.8 = icmp eq i32 %227, -1
  br i1 %.not27.8, label %._crit_edge37.7.1, label %228

228:                                              ; preds = %._crit_edge37.7
  %229 = sext i32 %227 to i64
  %230 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 8, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !5
  %232 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv48.8
  store i32 %231, ptr %232, align 4, !tbaa !5
  br label %._crit_edge37.7.1

._crit_edge37.7.1:                                ; preds = %228, %._crit_edge37.7
  %indvars.iv.next49.8 = or disjoint i64 %indvars.iv48.8, 1
  %233 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv.next49.8
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %.not27.8.1 = icmp eq i32 %234, -1
  br i1 %.not27.8.1, label %240, label %235

235:                                              ; preds = %._crit_edge37.7.1
  %236 = sext i32 %234 to i64
  %237 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 8, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !5
  %239 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv.next49.8
  store i32 %238, ptr %239, align 8, !tbaa !5
  br label %240

240:                                              ; preds = %235, %._crit_edge37.7.1
  %indvars.iv.next49.8.1 = add nuw nsw i64 %indvars.iv48.8, 2
  %niter93.next.1 = add i64 %niter93, 2
  %niter93.ncmp.1 = icmp eq i64 %niter93.next.1, %unroll_iter92
  br i1 %niter93.ncmp.1, label %._crit_edge37.8.preheader.unr-lcssa, label %._crit_edge37.7, !llvm.loop !15

._crit_edge37.8.preheader.unr-lcssa:              ; preds = %240, %._crit_edge37.7.preheader
  %indvars.iv48.8.unr = phi i64 [ 0, %._crit_edge37.7.preheader ], [ %indvars.iv.next49.8.1, %240 ]
  %lcmp.mod91.not = icmp eq i64 %xtraiter90, 0
  br i1 %lcmp.mod91.not, label %._crit_edge37.8.preheader, label %._crit_edge37.7.epil

._crit_edge37.7.epil:                             ; preds = %._crit_edge37.8.preheader.unr-lcssa
  %241 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv48.8.unr
  %242 = load i32, ptr %241, align 4, !tbaa !5
  %.not27.8.epil = icmp eq i32 %242, -1
  br i1 %.not27.8.epil, label %._crit_edge37.8.preheader, label %243

243:                                              ; preds = %._crit_edge37.7.epil
  %244 = sext i32 %242 to i64
  %245 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 8, i64 %244
  %246 = load i32, ptr %245, align 4, !tbaa !5
  %247 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv48.8.unr
  store i32 %246, ptr %247, align 4, !tbaa !5
  br label %._crit_edge37.8.preheader

._crit_edge37.8.preheader:                        ; preds = %._crit_edge37.7.epil, %243, %._crit_edge37.8.preheader.unr-lcssa
  %xtraiter94 = and i64 %wide.trip.count51, 1
  %248 = icmp eq i32 %42, 0
  br i1 %248, label %._crit_edge37.9.preheader.unr-lcssa, label %._crit_edge37.8.preheader.new

._crit_edge37.8.preheader.new:                    ; preds = %._crit_edge37.8.preheader
  %unroll_iter96 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.8

._crit_edge37.8:                                  ; preds = %263, %._crit_edge37.8.preheader.new
  %indvars.iv48.9 = phi i64 [ 0, %._crit_edge37.8.preheader.new ], [ %indvars.iv.next49.9.1, %263 ]
  %niter97 = phi i64 [ 0, %._crit_edge37.8.preheader.new ], [ %niter97.next.1, %263 ]
  %249 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv48.9
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %.not27.9 = icmp eq i32 %250, -1
  br i1 %.not27.9, label %._crit_edge37.8.1, label %251

251:                                              ; preds = %._crit_edge37.8
  %252 = sext i32 %250 to i64
  %253 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 9, i64 %252
  %254 = load i32, ptr %253, align 4, !tbaa !5
  %255 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv48.9
  store i32 %254, ptr %255, align 8, !tbaa !5
  br label %._crit_edge37.8.1

._crit_edge37.8.1:                                ; preds = %251, %._crit_edge37.8
  %indvars.iv.next49.9 = or disjoint i64 %indvars.iv48.9, 1
  %256 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv.next49.9
  %257 = load i32, ptr %256, align 8, !tbaa !5
  %.not27.9.1 = icmp eq i32 %257, -1
  br i1 %.not27.9.1, label %263, label %258

258:                                              ; preds = %._crit_edge37.8.1
  %259 = sext i32 %257 to i64
  %260 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 9, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv.next49.9
  store i32 %261, ptr %262, align 4, !tbaa !5
  br label %263

263:                                              ; preds = %258, %._crit_edge37.8.1
  %indvars.iv.next49.9.1 = add nuw nsw i64 %indvars.iv48.9, 2
  %niter97.next.1 = add i64 %niter97, 2
  %niter97.ncmp.1 = icmp eq i64 %niter97.next.1, %unroll_iter96
  br i1 %niter97.ncmp.1, label %._crit_edge37.9.preheader.unr-lcssa, label %._crit_edge37.8, !llvm.loop !15

._crit_edge37.9.preheader.unr-lcssa:              ; preds = %263, %._crit_edge37.8.preheader
  %indvars.iv48.9.unr = phi i64 [ 0, %._crit_edge37.8.preheader ], [ %indvars.iv.next49.9.1, %263 ]
  %lcmp.mod95.not = icmp eq i64 %xtraiter94, 0
  br i1 %lcmp.mod95.not, label %._crit_edge37.9.preheader, label %._crit_edge37.8.epil

._crit_edge37.8.epil:                             ; preds = %._crit_edge37.9.preheader.unr-lcssa
  %264 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv48.9.unr
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %.not27.9.epil = icmp eq i32 %265, -1
  br i1 %.not27.9.epil, label %._crit_edge37.9.preheader, label %266

266:                                              ; preds = %._crit_edge37.8.epil
  %267 = sext i32 %265 to i64
  %268 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 9, i64 %267
  %269 = load i32, ptr %268, align 4, !tbaa !5
  %270 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv48.9.unr
  store i32 %269, ptr %270, align 4, !tbaa !5
  br label %._crit_edge37.9.preheader

._crit_edge37.9.preheader:                        ; preds = %._crit_edge37.8.epil, %266, %._crit_edge37.9.preheader.unr-lcssa
  %xtraiter98 = and i64 %wide.trip.count51, 1
  %271 = icmp eq i32 %42, 0
  br i1 %271, label %._crit_edge37.10.preheader.unr-lcssa, label %._crit_edge37.9.preheader.new

._crit_edge37.9.preheader.new:                    ; preds = %._crit_edge37.9.preheader
  %unroll_iter100 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.9

._crit_edge37.9:                                  ; preds = %286, %._crit_edge37.9.preheader.new
  %indvars.iv48.10 = phi i64 [ 0, %._crit_edge37.9.preheader.new ], [ %indvars.iv.next49.10.1, %286 ]
  %niter101 = phi i64 [ 0, %._crit_edge37.9.preheader.new ], [ %niter101.next.1, %286 ]
  %272 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv48.10
  %273 = load i32, ptr %272, align 8, !tbaa !5
  %.not27.10 = icmp eq i32 %273, -1
  br i1 %.not27.10, label %._crit_edge37.9.1, label %274

274:                                              ; preds = %._crit_edge37.9
  %275 = sext i32 %273 to i64
  %276 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 10, i64 %275
  %277 = load i32, ptr %276, align 4, !tbaa !5
  %278 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv48.10
  store i32 %277, ptr %278, align 4, !tbaa !5
  br label %._crit_edge37.9.1

._crit_edge37.9.1:                                ; preds = %274, %._crit_edge37.9
  %indvars.iv.next49.10 = or disjoint i64 %indvars.iv48.10, 1
  %279 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv.next49.10
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %.not27.10.1 = icmp eq i32 %280, -1
  br i1 %.not27.10.1, label %286, label %281

281:                                              ; preds = %._crit_edge37.9.1
  %282 = sext i32 %280 to i64
  %283 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 10, i64 %282
  %284 = load i32, ptr %283, align 4, !tbaa !5
  %285 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv.next49.10
  store i32 %284, ptr %285, align 8, !tbaa !5
  br label %286

286:                                              ; preds = %281, %._crit_edge37.9.1
  %indvars.iv.next49.10.1 = add nuw nsw i64 %indvars.iv48.10, 2
  %niter101.next.1 = add i64 %niter101, 2
  %niter101.ncmp.1 = icmp eq i64 %niter101.next.1, %unroll_iter100
  br i1 %niter101.ncmp.1, label %._crit_edge37.10.preheader.unr-lcssa, label %._crit_edge37.9, !llvm.loop !15

._crit_edge37.10.preheader.unr-lcssa:             ; preds = %286, %._crit_edge37.9.preheader
  %indvars.iv48.10.unr = phi i64 [ 0, %._crit_edge37.9.preheader ], [ %indvars.iv.next49.10.1, %286 ]
  %lcmp.mod99.not = icmp eq i64 %xtraiter98, 0
  br i1 %lcmp.mod99.not, label %._crit_edge37.10.preheader, label %._crit_edge37.9.epil

._crit_edge37.9.epil:                             ; preds = %._crit_edge37.10.preheader.unr-lcssa
  %287 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv48.10.unr
  %288 = load i32, ptr %287, align 4, !tbaa !5
  %.not27.10.epil = icmp eq i32 %288, -1
  br i1 %.not27.10.epil, label %._crit_edge37.10.preheader, label %289

289:                                              ; preds = %._crit_edge37.9.epil
  %290 = sext i32 %288 to i64
  %291 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 10, i64 %290
  %292 = load i32, ptr %291, align 4, !tbaa !5
  %293 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv48.10.unr
  store i32 %292, ptr %293, align 4, !tbaa !5
  br label %._crit_edge37.10.preheader

._crit_edge37.10.preheader:                       ; preds = %._crit_edge37.9.epil, %289, %._crit_edge37.10.preheader.unr-lcssa
  %xtraiter102 = and i64 %wide.trip.count51, 1
  %294 = icmp eq i32 %42, 0
  br i1 %294, label %._crit_edge37.11.preheader.unr-lcssa, label %._crit_edge37.10.preheader.new

._crit_edge37.10.preheader.new:                   ; preds = %._crit_edge37.10.preheader
  %unroll_iter104 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.10

._crit_edge37.10:                                 ; preds = %309, %._crit_edge37.10.preheader.new
  %indvars.iv48.11 = phi i64 [ 0, %._crit_edge37.10.preheader.new ], [ %indvars.iv.next49.11.1, %309 ]
  %niter105 = phi i64 [ 0, %._crit_edge37.10.preheader.new ], [ %niter105.next.1, %309 ]
  %295 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv48.11
  %296 = load i32, ptr %295, align 4, !tbaa !5
  %.not27.11 = icmp eq i32 %296, -1
  br i1 %.not27.11, label %._crit_edge37.10.1, label %297

297:                                              ; preds = %._crit_edge37.10
  %298 = sext i32 %296 to i64
  %299 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 11, i64 %298
  %300 = load i32, ptr %299, align 4, !tbaa !5
  %301 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv48.11
  store i32 %300, ptr %301, align 8, !tbaa !5
  br label %._crit_edge37.10.1

._crit_edge37.10.1:                               ; preds = %297, %._crit_edge37.10
  %indvars.iv.next49.11 = or disjoint i64 %indvars.iv48.11, 1
  %302 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv.next49.11
  %303 = load i32, ptr %302, align 8, !tbaa !5
  %.not27.11.1 = icmp eq i32 %303, -1
  br i1 %.not27.11.1, label %309, label %304

304:                                              ; preds = %._crit_edge37.10.1
  %305 = sext i32 %303 to i64
  %306 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 11, i64 %305
  %307 = load i32, ptr %306, align 4, !tbaa !5
  %308 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv.next49.11
  store i32 %307, ptr %308, align 4, !tbaa !5
  br label %309

309:                                              ; preds = %304, %._crit_edge37.10.1
  %indvars.iv.next49.11.1 = add nuw nsw i64 %indvars.iv48.11, 2
  %niter105.next.1 = add i64 %niter105, 2
  %niter105.ncmp.1 = icmp eq i64 %niter105.next.1, %unroll_iter104
  br i1 %niter105.ncmp.1, label %._crit_edge37.11.preheader.unr-lcssa, label %._crit_edge37.10, !llvm.loop !15

._crit_edge37.11.preheader.unr-lcssa:             ; preds = %309, %._crit_edge37.10.preheader
  %indvars.iv48.11.unr = phi i64 [ 0, %._crit_edge37.10.preheader ], [ %indvars.iv.next49.11.1, %309 ]
  %lcmp.mod103.not = icmp eq i64 %xtraiter102, 0
  br i1 %lcmp.mod103.not, label %._crit_edge37.11.preheader, label %._crit_edge37.10.epil

._crit_edge37.10.epil:                            ; preds = %._crit_edge37.11.preheader.unr-lcssa
  %310 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv48.11.unr
  %311 = load i32, ptr %310, align 4, !tbaa !5
  %.not27.11.epil = icmp eq i32 %311, -1
  br i1 %.not27.11.epil, label %._crit_edge37.11.preheader, label %312

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

._crit_edge37.11.preheader:                       ; preds = %._crit_edge37.10.epil, %312, %._crit_edge37.11.preheader.unr-lcssa
  %xtraiter106 = and i64 %wide.trip.count51, 1
  %317 = icmp eq i32 %42, 0
  br i1 %317, label %._crit_edge37.12.preheader.unr-lcssa, label %._crit_edge37.11.preheader.new

._crit_edge37.11.preheader.new:                   ; preds = %._crit_edge37.11.preheader
  %unroll_iter108 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.11

._crit_edge37.11:                                 ; preds = %332, %._crit_edge37.11.preheader.new
  %indvars.iv48.12 = phi i64 [ 0, %._crit_edge37.11.preheader.new ], [ %indvars.iv.next49.12.1, %332 ]
  %niter109 = phi i64 [ 0, %._crit_edge37.11.preheader.new ], [ %niter109.next.1, %332 ]
  %318 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv48.12
  %319 = load i32, ptr %318, align 8, !tbaa !5
  %.not27.12 = icmp eq i32 %319, -1
  br i1 %.not27.12, label %._crit_edge37.11.1, label %320

320:                                              ; preds = %._crit_edge37.11
  %321 = sext i32 %319 to i64
  %322 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 12, i64 %321
  %323 = load i32, ptr %322, align 4, !tbaa !5
  %324 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv48.12
  store i32 %323, ptr %324, align 4, !tbaa !5
  br label %._crit_edge37.11.1

._crit_edge37.11.1:                               ; preds = %320, %._crit_edge37.11
  %indvars.iv.next49.12 = or disjoint i64 %indvars.iv48.12, 1
  %325 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv.next49.12
  %326 = load i32, ptr %325, align 4, !tbaa !5
  %.not27.12.1 = icmp eq i32 %326, -1
  br i1 %.not27.12.1, label %332, label %327

327:                                              ; preds = %._crit_edge37.11.1
  %328 = sext i32 %326 to i64
  %329 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 12, i64 %328
  %330 = load i32, ptr %329, align 4, !tbaa !5
  %331 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv.next49.12
  store i32 %330, ptr %331, align 8, !tbaa !5
  br label %332

332:                                              ; preds = %327, %._crit_edge37.11.1
  %indvars.iv.next49.12.1 = add nuw nsw i64 %indvars.iv48.12, 2
  %niter109.next.1 = add i64 %niter109, 2
  %niter109.ncmp.1 = icmp eq i64 %niter109.next.1, %unroll_iter108
  br i1 %niter109.ncmp.1, label %._crit_edge37.12.preheader.unr-lcssa, label %._crit_edge37.11, !llvm.loop !15

._crit_edge37.12.preheader.unr-lcssa:             ; preds = %332, %._crit_edge37.11.preheader
  %indvars.iv48.12.unr = phi i64 [ 0, %._crit_edge37.11.preheader ], [ %indvars.iv.next49.12.1, %332 ]
  %lcmp.mod107.not = icmp eq i64 %xtraiter106, 0
  br i1 %lcmp.mod107.not, label %._crit_edge37.12.preheader, label %._crit_edge37.11.epil

._crit_edge37.11.epil:                            ; preds = %._crit_edge37.12.preheader.unr-lcssa
  %333 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv48.12.unr
  %334 = load i32, ptr %333, align 4, !tbaa !5
  %.not27.12.epil = icmp eq i32 %334, -1
  br i1 %.not27.12.epil, label %._crit_edge37.12.preheader, label %335

335:                                              ; preds = %._crit_edge37.11.epil
  %336 = sext i32 %334 to i64
  %337 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 12, i64 %336
  %338 = load i32, ptr %337, align 4, !tbaa !5
  %339 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv48.12.unr
  store i32 %338, ptr %339, align 4, !tbaa !5
  br label %._crit_edge37.12.preheader

._crit_edge37.12.preheader:                       ; preds = %._crit_edge37.11.epil, %335, %._crit_edge37.12.preheader.unr-lcssa
  %xtraiter110 = and i64 %wide.trip.count51, 1
  %340 = icmp eq i32 %42, 0
  br i1 %340, label %._crit_edge37.13.preheader.unr-lcssa, label %._crit_edge37.12.preheader.new

._crit_edge37.12.preheader.new:                   ; preds = %._crit_edge37.12.preheader
  %unroll_iter112 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.12

._crit_edge37.12:                                 ; preds = %355, %._crit_edge37.12.preheader.new
  %indvars.iv48.13 = phi i64 [ 0, %._crit_edge37.12.preheader.new ], [ %indvars.iv.next49.13.1, %355 ]
  %niter113 = phi i64 [ 0, %._crit_edge37.12.preheader.new ], [ %niter113.next.1, %355 ]
  %341 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv48.13
  %342 = load i32, ptr %341, align 4, !tbaa !5
  %.not27.13 = icmp eq i32 %342, -1
  br i1 %.not27.13, label %._crit_edge37.12.1, label %343

343:                                              ; preds = %._crit_edge37.12
  %344 = sext i32 %342 to i64
  %345 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 13, i64 %344
  %346 = load i32, ptr %345, align 4, !tbaa !5
  %347 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 14, i64 %indvars.iv48.13
  store i32 %346, ptr %347, align 8, !tbaa !5
  br label %._crit_edge37.12.1

._crit_edge37.12.1:                               ; preds = %343, %._crit_edge37.12
  %indvars.iv.next49.13 = or disjoint i64 %indvars.iv48.13, 1
  %348 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv.next49.13
  %349 = load i32, ptr %348, align 8, !tbaa !5
  %.not27.13.1 = icmp eq i32 %349, -1
  br i1 %.not27.13.1, label %355, label %350

350:                                              ; preds = %._crit_edge37.12.1
  %351 = sext i32 %349 to i64
  %352 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 13, i64 %351
  %353 = load i32, ptr %352, align 4, !tbaa !5
  %354 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 14, i64 %indvars.iv.next49.13
  store i32 %353, ptr %354, align 4, !tbaa !5
  br label %355

355:                                              ; preds = %350, %._crit_edge37.12.1
  %indvars.iv.next49.13.1 = add nuw nsw i64 %indvars.iv48.13, 2
  %niter113.next.1 = add i64 %niter113, 2
  %niter113.ncmp.1 = icmp eq i64 %niter113.next.1, %unroll_iter112
  br i1 %niter113.ncmp.1, label %._crit_edge37.13.preheader.unr-lcssa, label %._crit_edge37.12, !llvm.loop !15

._crit_edge37.13.preheader.unr-lcssa:             ; preds = %355, %._crit_edge37.12.preheader
  %indvars.iv48.13.unr = phi i64 [ 0, %._crit_edge37.12.preheader ], [ %indvars.iv.next49.13.1, %355 ]
  %lcmp.mod111.not = icmp eq i64 %xtraiter110, 0
  br i1 %lcmp.mod111.not, label %._crit_edge37.13.preheader, label %._crit_edge37.12.epil

._crit_edge37.12.epil:                            ; preds = %._crit_edge37.13.preheader.unr-lcssa
  %356 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv48.13.unr
  %357 = load i32, ptr %356, align 4, !tbaa !5
  %.not27.13.epil = icmp eq i32 %357, -1
  br i1 %.not27.13.epil, label %._crit_edge37.13.preheader, label %358

358:                                              ; preds = %._crit_edge37.12.epil
  %359 = sext i32 %357 to i64
  %360 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 13, i64 %359
  %361 = load i32, ptr %360, align 4, !tbaa !5
  %362 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 14, i64 %indvars.iv48.13.unr
  store i32 %361, ptr %362, align 4, !tbaa !5
  br label %._crit_edge37.13.preheader

._crit_edge37.13.preheader:                       ; preds = %._crit_edge37.12.epil, %358, %._crit_edge37.13.preheader.unr-lcssa
  %xtraiter114 = and i64 %wide.trip.count51, 1
  %363 = icmp eq i32 %42, 0
  br i1 %363, label %._crit_edge37.14.preheader.unr-lcssa, label %._crit_edge37.13.preheader.new

._crit_edge37.13.preheader.new:                   ; preds = %._crit_edge37.13.preheader
  %unroll_iter116 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.13

._crit_edge37.13:                                 ; preds = %378, %._crit_edge37.13.preheader.new
  %indvars.iv48.14 = phi i64 [ 0, %._crit_edge37.13.preheader.new ], [ %indvars.iv.next49.14.1, %378 ]
  %niter117 = phi i64 [ 0, %._crit_edge37.13.preheader.new ], [ %niter117.next.1, %378 ]
  %364 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 14, i64 %indvars.iv48.14
  %365 = load i32, ptr %364, align 8, !tbaa !5
  %.not27.14 = icmp eq i32 %365, -1
  br i1 %.not27.14, label %._crit_edge37.13.1, label %366

366:                                              ; preds = %._crit_edge37.13
  %367 = sext i32 %365 to i64
  %368 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 14, i64 %367
  %369 = load i32, ptr %368, align 4, !tbaa !5
  %370 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 15, i64 %indvars.iv48.14
  store i32 %369, ptr %370, align 4, !tbaa !5
  br label %._crit_edge37.13.1

._crit_edge37.13.1:                               ; preds = %366, %._crit_edge37.13
  %indvars.iv.next49.14 = or disjoint i64 %indvars.iv48.14, 1
  %371 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 14, i64 %indvars.iv.next49.14
  %372 = load i32, ptr %371, align 4, !tbaa !5
  %.not27.14.1 = icmp eq i32 %372, -1
  br i1 %.not27.14.1, label %378, label %373

373:                                              ; preds = %._crit_edge37.13.1
  %374 = sext i32 %372 to i64
  %375 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 14, i64 %374
  %376 = load i32, ptr %375, align 4, !tbaa !5
  %377 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 15, i64 %indvars.iv.next49.14
  store i32 %376, ptr %377, align 8, !tbaa !5
  br label %378

378:                                              ; preds = %373, %._crit_edge37.13.1
  %indvars.iv.next49.14.1 = add nuw nsw i64 %indvars.iv48.14, 2
  %niter117.next.1 = add i64 %niter117, 2
  %niter117.ncmp.1 = icmp eq i64 %niter117.next.1, %unroll_iter116
  br i1 %niter117.ncmp.1, label %._crit_edge37.14.preheader.unr-lcssa, label %._crit_edge37.13, !llvm.loop !15

._crit_edge37.14.preheader.unr-lcssa:             ; preds = %378, %._crit_edge37.13.preheader
  %indvars.iv48.14.unr = phi i64 [ 0, %._crit_edge37.13.preheader ], [ %indvars.iv.next49.14.1, %378 ]
  %lcmp.mod115.not = icmp eq i64 %xtraiter114, 0
  br i1 %lcmp.mod115.not, label %._crit_edge37.14.preheader, label %._crit_edge37.13.epil

._crit_edge37.13.epil:                            ; preds = %._crit_edge37.14.preheader.unr-lcssa
  %379 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 14, i64 %indvars.iv48.14.unr
  %380 = load i32, ptr %379, align 4, !tbaa !5
  %.not27.14.epil = icmp eq i32 %380, -1
  br i1 %.not27.14.epil, label %._crit_edge37.14.preheader, label %381

381:                                              ; preds = %._crit_edge37.13.epil
  %382 = sext i32 %380 to i64
  %383 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 14, i64 %382
  %384 = load i32, ptr %383, align 4, !tbaa !5
  %385 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 15, i64 %indvars.iv48.14.unr
  store i32 %384, ptr %385, align 4, !tbaa !5
  br label %._crit_edge37.14.preheader

._crit_edge37.14.preheader:                       ; preds = %._crit_edge37.13.epil, %381, %._crit_edge37.14.preheader.unr-lcssa
  %xtraiter118 = and i64 %wide.trip.count51, 1
  %386 = icmp eq i32 %42, 0
  br i1 %386, label %.split40.us.loopexit.unr-lcssa, label %._crit_edge37.14.preheader.new

._crit_edge37.14.preheader.new:                   ; preds = %._crit_edge37.14.preheader
  %unroll_iter120 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37.14

._crit_edge37.14:                                 ; preds = %401, %._crit_edge37.14.preheader.new
  %indvars.iv48.15 = phi i64 [ 0, %._crit_edge37.14.preheader.new ], [ %indvars.iv.next49.15.1, %401 ]
  %niter121 = phi i64 [ 0, %._crit_edge37.14.preheader.new ], [ %niter121.next.1, %401 ]
  %387 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 15, i64 %indvars.iv48.15
  %388 = load i32, ptr %387, align 4, !tbaa !5
  %.not27.15 = icmp eq i32 %388, -1
  br i1 %.not27.15, label %._crit_edge37.14.1, label %389

389:                                              ; preds = %._crit_edge37.14
  %390 = sext i32 %388 to i64
  %391 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 15, i64 %390
  %392 = load i32, ptr %391, align 4, !tbaa !5
  %393 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 16, i64 %indvars.iv48.15
  store i32 %392, ptr %393, align 8, !tbaa !5
  br label %._crit_edge37.14.1

._crit_edge37.14.1:                               ; preds = %389, %._crit_edge37.14
  %indvars.iv.next49.15 = or disjoint i64 %indvars.iv48.15, 1
  %394 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 15, i64 %indvars.iv.next49.15
  %395 = load i32, ptr %394, align 8, !tbaa !5
  %.not27.15.1 = icmp eq i32 %395, -1
  br i1 %.not27.15.1, label %401, label %396

396:                                              ; preds = %._crit_edge37.14.1
  %397 = sext i32 %395 to i64
  %398 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 15, i64 %397
  %399 = load i32, ptr %398, align 4, !tbaa !5
  %400 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 16, i64 %indvars.iv.next49.15
  store i32 %399, ptr %400, align 4, !tbaa !5
  br label %401

401:                                              ; preds = %396, %._crit_edge37.14.1
  %indvars.iv.next49.15.1 = add nuw nsw i64 %indvars.iv48.15, 2
  %niter121.next.1 = add i64 %niter121, 2
  %niter121.ncmp.1 = icmp eq i64 %niter121.next.1, %unroll_iter120
  br i1 %niter121.ncmp.1, label %.split40.us.loopexit.unr-lcssa, label %._crit_edge37.14, !llvm.loop !15

402:                                              ; preds = %418, %.preheader.preheader.new
  %indvars.iv48 = phi i64 [ 0, %.preheader.preheader.new ], [ %indvars.iv.next49.160, %418 ]
  %niter = phi i64 [ 0, %.preheader.preheader.new ], [ %niter.next.1, %418 ]
  %403 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 0, i64 %indvars.iv48
  %404 = load i32, ptr %403, align 8, !tbaa !5
  %.not27 = icmp eq i32 %404, -1
  br i1 %.not27, label %410, label %405

405:                                              ; preds = %402
  %406 = sext i32 %404 to i64
  %407 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 0, i64 %406
  %408 = load i32, ptr %407, align 4, !tbaa !5
  %409 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv48
  store i32 %408, ptr %409, align 4, !tbaa !5
  br label %410

410:                                              ; preds = %402, %405
  %indvars.iv.next49 = or disjoint i64 %indvars.iv48, 1
  %411 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 0, i64 %indvars.iv.next49
  %412 = load i32, ptr %411, align 4, !tbaa !5
  %.not27.159 = icmp eq i32 %412, -1
  br i1 %.not27.159, label %418, label %413

413:                                              ; preds = %410
  %414 = sext i32 %412 to i64
  %415 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 0, i64 %414
  %416 = load i32, ptr %415, align 4, !tbaa !5
  %417 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv.next49
  store i32 %416, ptr %417, align 8, !tbaa !5
  br label %418

418:                                              ; preds = %413, %410
  %indvars.iv.next49.160 = add nuw nsw i64 %indvars.iv48, 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_edge37.preheader.unr-lcssa, label %402, !llvm.loop !15

._crit_edge37.preheader.unr-lcssa:                ; preds = %418, %.preheader.preheader
  %indvars.iv48.unr = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next49.160, %418 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge37.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge37.preheader.unr-lcssa
  %419 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 0, i64 %indvars.iv48.unr
  %420 = load i32, ptr %419, align 4, !tbaa !5
  %.not27.epil = icmp eq i32 %420, -1
  br i1 %.not27.epil, label %._crit_edge37.preheader, label %421

421:                                              ; preds = %.epil.preheader
  %422 = sext i32 %420 to i64
  %423 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 0, i64 %422
  %424 = load i32, ptr %423, align 4, !tbaa !5
  %425 = getelementptr inbounds [17 x [110001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv48.unr
  store i32 %424, ptr %425, align 4, !tbaa !5
  br label %._crit_edge37.preheader

._crit_edge37.preheader:                          ; preds = %.epil.preheader, %421, %._crit_edge37.preheader.unr-lcssa
  %xtraiter61 = and i64 %wide.trip.count51, 1
  %426 = icmp eq i32 %42, 0
  br i1 %426, label %._crit_edge37.1.preheader.unr-lcssa, label %._crit_edge37.preheader.new

._crit_edge37.preheader.new:                      ; preds = %._crit_edge37.preheader
  %unroll_iter63 = and i64 %wide.trip.count51, 4294967294
  br label %._crit_edge37

.lr.ph43:                                         ; preds = %.split40.us, %435
  %427 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull @instr)
  %428 = load i8, ptr @instr, align 1, !tbaa !16
  %429 = icmp eq i8 %428, 97
  %430 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull @a, ptr noundef nonnull @b)
  %431 = load i32, ptr @a, align 4, !tbaa !5
  %432 = load i32, ptr @b, align 4, !tbaa !5
  br i1 %429, label %433, label %434

433:                                              ; preds = %.lr.ph43
  tail call void @_Z6changeii(i32 noundef %431, i32 noundef %432)
  br label %435

434:                                              ; preds = %.lr.ph43
  tail call void @_Z5queryii(i32 noundef %431, i32 noundef %432)
  br label %435

435:                                              ; preds = %434, %433
  %436 = load i32, ptr @q, align 4, !tbaa !5
  %437 = add nsw i32 %436, -1
  store i32 %437, ptr @q, align 4, !tbaa !5
  %.not25 = icmp eq i32 %436, 0
  br i1 %.not25, label %._crit_edge44, label %.lr.ph43, !llvm.loop !17

._crit_edge44:                                    ; preds = %435, %.split40.us
  ret i32 0
}

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

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

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

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 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !10}


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