; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/Random/QTREE2 (qtree2)

; 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 [10100 x %"class.std::vector"], align 16
@lengths = external dso_local global [10100 x %"class.std::vector"], align 16
@indexx = external dso_local global [10100 x %"class.std::vector"], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@c = external dso_local global i32, align 4
@chain_no = external dso_local global i32, align 4
@chain_head = external dso_local global [10100 x i32], align 16
@ptr = external dso_local global i32, align 4
@pa = external dso_local global [14 x [10100 x i32]], align 16
@instr = external dso_local global [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

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

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

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

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

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

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

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

11:                                               ; preds = %169, %0
  %12 = load i32, ptr @t, align 4, !tbaa !5
  %13 = add nsw i32 %12, -1
  store i32 %13, ptr @t, align 4, !tbaa !5
  %14 = icmp ne i32 %12, 0
  br i1 %14, label %15, label %170

15:                                               ; preds = %11
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.7, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %17

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

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

22:                                               ; preds = %17
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @adj_list, i64 0, i64 %24
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @lengths, i64 0, i64 %27
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @indexx, i64 0, i64 %30
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #5
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [10100 x i32], ptr @chain_head, i64 0, i64 %33
  store i32 -1, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %46, %22
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = icmp slt i32 %36, 14
  br i1 %37, label %39, label %38

38:                                               ; preds = %35
  store i32 7, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %49

39:                                               ; preds = %35
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 %41
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [10100 x i32], ptr %42, i64 0, i64 %44
  store i32 -1, ptr %45, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %39
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %4, align 4, !tbaa !5
  br label %35, !llvm.loop !9

49:                                               ; preds = %38
  br label %50

50:                                               ; preds = %49
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %2, align 4, !tbaa !5
  br label %17, !llvm.loop !11

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

54:                                               ; preds = %87, %53
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = load i32, ptr @n, align 4, !tbaa !5
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %59, label %58

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

59:                                               ; preds = %54
  %60 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.8, ptr noundef @a, ptr noundef @b, ptr noundef @c)
  %61 = load i32, ptr @a, align 4, !tbaa !5
  %62 = add nsw i32 %61, -1
  store i32 %62, ptr @a, align 4, !tbaa !5
  %63 = load i32, ptr @b, align 4, !tbaa !5
  %64 = add nsw i32 %63, -1
  store i32 %64, ptr @b, align 4, !tbaa !5
  %65 = load i32, ptr @a, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @adj_list, i64 0, i64 %66
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 4 dereferenceable(4) @b)
  %68 = load i32, ptr @b, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @adj_list, i64 0, i64 %69
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 4 dereferenceable(4) @a)
  %71 = load i32, ptr @a, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @lengths, i64 0, i64 %72
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 4 dereferenceable(4) @c)
  %74 = load i32, ptr @b, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @lengths, i64 0, i64 %75
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %76, ptr noundef nonnull align 4 dereferenceable(4) @c)
  %77 = load i32, ptr @a, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @indexx, i64 0, i64 %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = sub nsw i32 %80, 1
  store i32 %81, ptr %6, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %82 = load i32, ptr @b, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @indexx, i64 0, i64 %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %85 = load i32, ptr %5, align 4, !tbaa !5
  %86 = sub nsw i32 %85, 1
  store i32 %86, ptr %7, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %87

87:                                               ; preds = %59
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %5, align 4, !tbaa !5
  br label %54, !llvm.loop !12

90:                                               ; preds = %58
  store i32 0, ptr @chain_no, align 4, !tbaa !5
  store i32 0, ptr @ptr, align 4, !tbaa !5
  call void @_Z3dfsiii(i32 noundef 0, i32 noundef -1, i32 noundef 0)
  call void @_Z3hldiii(i32 noundef 0, i32 noundef 0, i32 noundef -1)
  %91 = load i32, ptr @ptr, align 4, !tbaa !5
  call void @_Z4initiii(i32 noundef 1, i32 noundef 0, i32 noundef %91)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %139, %90
  %93 = load i32, ptr %8, align 4, !tbaa !5
  %94 = icmp slt i32 %93, 14
  br i1 %94, label %96, label %95

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

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %135, %96
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = load i32, ptr @n, align 4, !tbaa !5
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %97
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %138

102:                                              ; preds = %97
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = sub nsw i32 %103, 1
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 %105
  %107 = load i32, ptr %9, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [10100 x i32], ptr %106, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = icmp ne i32 %110, -1
  br i1 %111, label %112, label %134

112:                                              ; preds = %102
  %113 = load i32, ptr %8, align 4, !tbaa !5
  %114 = sub nsw i32 %113, 1
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 %115
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = sub nsw i32 %117, 1
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 %119
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [10100 x i32], ptr %120, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [10100 x i32], ptr %116, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = load i32, ptr %8, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 %129
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [10100 x i32], ptr %130, i64 0, i64 %132
  store i32 %127, ptr %133, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %112, %102
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %9, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %9, align 4, !tbaa !5
  br label %97, !llvm.loop !13

138:                                              ; preds = %101
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %8, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %8, align 4, !tbaa !5
  br label %92, !llvm.loop !14

142:                                              ; preds = %95
  br label %143

143:                                              ; preds = %168, %142
  %144 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.9, ptr noundef @instr)
  %145 = load i8, ptr getelementptr inbounds ([7 x i8], ptr @instr, i64 0, i64 1), align 1, !tbaa !15
  %146 = sext i8 %145 to i32
  %147 = icmp eq i32 %146, 79
  br i1 %147, label %148, label %150

148:                                              ; preds = %143
  %149 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  br label %169

150:                                              ; preds = %143
  %151 = load i8, ptr getelementptr inbounds ([7 x i8], ptr @instr, i64 0, i64 1), align 1, !tbaa !15
  %152 = sext i8 %151 to i32
  %153 = icmp eq i32 %152, 73
  br i1 %153, label %154, label %160

154:                                              ; preds = %150
  %155 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.11, ptr noundef @a, ptr noundef @b)
  %156 = load i32, ptr @a, align 4, !tbaa !5
  %157 = sub nsw i32 %156, 1
  %158 = load i32, ptr @b, align 4, !tbaa !5
  %159 = sub nsw i32 %158, 1
  call void @_Z5queryii(i32 noundef %157, i32 noundef %159)
  br label %167

160:                                              ; preds = %150
  %161 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.8, ptr noundef @a, ptr noundef @b, ptr noundef @c)
  %162 = load i32, ptr @a, align 4, !tbaa !5
  %163 = sub nsw i32 %162, 1
  %164 = load i32, ptr @b, align 4, !tbaa !5
  %165 = sub nsw i32 %164, 1
  %166 = load i32, ptr @c, align 4, !tbaa !5
  call void @_Z3kthiii(i32 noundef %163, i32 noundef %165, i32 noundef %166)
  br label %167

167:                                              ; preds = %160, %154
  br label %168

168:                                              ; preds = %167
  br label %143, !llvm.loop !16

169:                                              ; preds = %148
  br label %11, !llvm.loop !17

170:                                              ; preds = %11
  ret i32 0
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 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)) #0 align 2

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

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 = { "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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}
!17 = distinct !{!17, !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 [10100 x %"class.std::vector"], align 16
@lengths = external dso_local global [10100 x %"class.std::vector"], align 16
@indexx = external dso_local global [10100 x %"class.std::vector"], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@c = 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 [10100 x i32], align 16
@ptr = external dso_local local_unnamed_addr global i32, align 4
@pa = external dso_local local_unnamed_addr global [14 x [10100 x i32]], align 16
@instr = external dso_local global [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3hldiii(i32 noundef, 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.7, ptr noundef nonnull @t)
  %4 = load i32, ptr @t, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr @t, align 4, !tbaa !5
  %.not42 = icmp eq i32 %4, 0
  br i1 %.not42, label %._crit_edge45, label %.lr.ph44

.lr.ph44:                                         ; preds = %0, %364
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.7, ptr noundef nonnull @n)
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

.preheader33:                                     ; preds = %.lr.ph
  %9 = icmp sgt i32 %28, 1
  br i1 %9, label %.lr.ph37, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph44, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph44 ]
  %10 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @adj_list, i64 0, i64 %indvars.iv
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  %11 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @lengths, i64 0, i64 %indvars.iv
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %12 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @indexx, i64 0, i64 %indvars.iv
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  %13 = getelementptr inbounds [10100 x i32], ptr @chain_head, i64 0, i64 %indvars.iv
  store i32 -1, ptr %13, align 4, !tbaa !5
  %14 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 0, i64 %indvars.iv
  store i32 -1, ptr %14, align 4, !tbaa !5
  %15 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv
  store i32 -1, ptr %15, align 4, !tbaa !5
  %16 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv
  store i32 -1, ptr %16, align 4, !tbaa !5
  %17 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv
  store i32 -1, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv
  store i32 -1, ptr %18, align 4, !tbaa !5
  %19 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv
  store i32 -1, ptr %19, align 4, !tbaa !5
  %20 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv
  store i32 -1, ptr %20, align 4, !tbaa !5
  %21 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv
  store i32 -1, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv
  store i32 -1, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv
  store i32 -1, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv
  store i32 -1, ptr %24, align 4, !tbaa !5
  %25 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv
  store i32 -1, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv
  store i32 -1, ptr %26, align 4, !tbaa !5
  %27 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv
  store i32 -1, ptr %27, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = icmp slt i64 %indvars.iv.next, %29
  br i1 %30, label %.lr.ph, label %.preheader33, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph37, %.lr.ph44, %.preheader33
  store i32 0, ptr @chain_no, align 4, !tbaa !5
  store i32 0, ptr @ptr, align 4, !tbaa !5
  call void @_Z3dfsiii(i32 noundef 0, i32 noundef -1, i32 noundef 0)
  call void @_Z3hldiii(i32 noundef 0, i32 noundef 0, i32 noundef -1)
  %31 = load i32, ptr @ptr, align 4, !tbaa !5
  call void @_Z4initiii(i32 noundef 1, i32 noundef 0, i32 noundef %31)
  %32 = load i32, ptr @n, align 4, !tbaa !5
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.preheader.us.preheader, label %.preheader32.preheader

.preheader32.preheader.loopexit.unr-lcssa:        ; preds = %335, %._crit_edge40.us.11.preheader
  %indvars.iv49.12.unr = phi i64 [ 0, %._crit_edge40.us.11.preheader ], [ %indvars.iv.next50.12.1, %335 ]
  %lcmp.mod105.not = icmp eq i64 %xtraiter104, 0
  br i1 %lcmp.mod105.not, label %.preheader32.preheader, label %._crit_edge40.us.11.epil

._crit_edge40.us.11.epil:                         ; preds = %.preheader32.preheader.loopexit.unr-lcssa
  %34 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv49.12.unr
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %.not31.us.12.epil = icmp eq i32 %35, -1
  br i1 %.not31.us.12.epil, label %.preheader32.preheader, label %36

36:                                               ; preds = %._crit_edge40.us.11.epil
  %37 = sext i32 %35 to i64
  %38 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 12, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv49.12.unr
  store i32 %39, ptr %40, align 4, !tbaa !5
  br label %.preheader32.preheader

.preheader32.preheader:                           ; preds = %.preheader32.preheader.loopexit.unr-lcssa, %36, %._crit_edge40.us.11.epil, %._crit_edge
  br label %.preheader32

.preheader.us.preheader:                          ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %32 to i64
  %41 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %wide.trip.count, 1
  %42 = icmp eq i64 %41, 0
  br i1 %42, label %._crit_edge40.us.preheader.unr-lcssa, label %.preheader.us.preheader.new

.preheader.us.preheader.new:                      ; preds = %.preheader.us.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %43

43:                                               ; preds = %59, %.preheader.us.preheader.new
  %indvars.iv49 = phi i64 [ 0, %.preheader.us.preheader.new ], [ %indvars.iv.next50.158, %59 ]
  %niter = phi i64 [ 0, %.preheader.us.preheader.new ], [ %niter.next.1, %59 ]
  %44 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 0, i64 %indvars.iv49
  %45 = load i32, ptr %44, align 8, !tbaa !5
  %.not31.us = icmp eq i32 %45, -1
  br i1 %.not31.us, label %51, label %46

46:                                               ; preds = %43
  %47 = sext i32 %45 to i64
  %48 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv49
  store i32 %49, ptr %50, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %46, %43
  %indvars.iv.next50 = or disjoint i64 %indvars.iv49, 1
  %52 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 0, i64 %indvars.iv.next50
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %.not31.us.157 = icmp eq i32 %53, -1
  br i1 %.not31.us.157, label %59, label %54

54:                                               ; preds = %51
  %55 = sext i32 %53 to i64
  %56 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv.next50
  store i32 %57, ptr %58, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %54, %51
  %indvars.iv.next50.158 = add nuw nsw i64 %indvars.iv49, 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_edge40.us.preheader.unr-lcssa, label %43, !llvm.loop !11

._crit_edge40.us.preheader.unr-lcssa:             ; preds = %59, %.preheader.us.preheader
  %indvars.iv49.unr = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next50.158, %59 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge40.us.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge40.us.preheader.unr-lcssa
  %60 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 0, i64 %indvars.iv49.unr
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %.not31.us.epil = icmp eq i32 %61, -1
  br i1 %.not31.us.epil, label %._crit_edge40.us.preheader, label %62

62:                                               ; preds = %.epil.preheader
  %63 = sext i32 %61 to i64
  %64 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv49.unr
  store i32 %65, ptr %66, align 4, !tbaa !5
  br label %._crit_edge40.us.preheader

._crit_edge40.us.preheader:                       ; preds = %.epil.preheader, %62, %._crit_edge40.us.preheader.unr-lcssa
  %xtraiter59 = and i64 %wide.trip.count, 1
  %67 = icmp eq i64 %41, 0
  br i1 %67, label %._crit_edge40.us.1.preheader.unr-lcssa, label %._crit_edge40.us.preheader.new

._crit_edge40.us.preheader.new:                   ; preds = %._crit_edge40.us.preheader
  %unroll_iter61 = and i64 %wide.trip.count, 2147483646
  br label %._crit_edge40.us

._crit_edge40.us:                                 ; preds = %82, %._crit_edge40.us.preheader.new
  %indvars.iv49.1 = phi i64 [ 0, %._crit_edge40.us.preheader.new ], [ %indvars.iv.next50.1.1, %82 ]
  %niter62 = phi i64 [ 0, %._crit_edge40.us.preheader.new ], [ %niter62.next.1, %82 ]
  %68 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv49.1
  %69 = load i32, ptr %68, align 8, !tbaa !5
  %.not31.us.1 = icmp eq i32 %69, -1
  br i1 %.not31.us.1, label %._crit_edge40.us.163, label %70

70:                                               ; preds = %._crit_edge40.us
  %71 = sext i32 %69 to i64
  %72 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 1, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv49.1
  store i32 %73, ptr %74, align 8, !tbaa !5
  br label %._crit_edge40.us.163

._crit_edge40.us.163:                             ; preds = %70, %._crit_edge40.us
  %indvars.iv.next50.1 = or disjoint i64 %indvars.iv49.1, 1
  %75 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv.next50.1
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %.not31.us.1.1 = icmp eq i32 %76, -1
  br i1 %.not31.us.1.1, label %82, label %77

77:                                               ; preds = %._crit_edge40.us.163
  %78 = sext i32 %76 to i64
  %79 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 1, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv.next50.1
  store i32 %80, ptr %81, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %77, %._crit_edge40.us.163
  %indvars.iv.next50.1.1 = add nuw nsw i64 %indvars.iv49.1, 2
  %niter62.next.1 = add i64 %niter62, 2
  %niter62.ncmp.1 = icmp eq i64 %niter62.next.1, %unroll_iter61
  br i1 %niter62.ncmp.1, label %._crit_edge40.us.1.preheader.unr-lcssa, label %._crit_edge40.us, !llvm.loop !11

._crit_edge40.us.1.preheader.unr-lcssa:           ; preds = %82, %._crit_edge40.us.preheader
  %indvars.iv49.1.unr = phi i64 [ 0, %._crit_edge40.us.preheader ], [ %indvars.iv.next50.1.1, %82 ]
  %lcmp.mod60.not = icmp eq i64 %xtraiter59, 0
  br i1 %lcmp.mod60.not, label %._crit_edge40.us.1.preheader, label %._crit_edge40.us.epil

._crit_edge40.us.epil:                            ; preds = %._crit_edge40.us.1.preheader.unr-lcssa
  %83 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv49.1.unr
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %.not31.us.1.epil = icmp eq i32 %84, -1
  br i1 %.not31.us.1.epil, label %._crit_edge40.us.1.preheader, label %85

85:                                               ; preds = %._crit_edge40.us.epil
  %86 = sext i32 %84 to i64
  %87 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 1, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv49.1.unr
  store i32 %88, ptr %89, align 4, !tbaa !5
  br label %._crit_edge40.us.1.preheader

._crit_edge40.us.1.preheader:                     ; preds = %._crit_edge40.us.epil, %85, %._crit_edge40.us.1.preheader.unr-lcssa
  %xtraiter64 = and i64 %wide.trip.count, 1
  %90 = icmp eq i64 %41, 0
  br i1 %90, label %._crit_edge40.us.2.preheader.unr-lcssa, label %._crit_edge40.us.1.preheader.new

._crit_edge40.us.1.preheader.new:                 ; preds = %._crit_edge40.us.1.preheader
  %unroll_iter66 = and i64 %wide.trip.count, 2147483646
  br label %._crit_edge40.us.1

._crit_edge40.us.1:                               ; preds = %105, %._crit_edge40.us.1.preheader.new
  %indvars.iv49.2 = phi i64 [ 0, %._crit_edge40.us.1.preheader.new ], [ %indvars.iv.next50.2.1, %105 ]
  %niter67 = phi i64 [ 0, %._crit_edge40.us.1.preheader.new ], [ %niter67.next.1, %105 ]
  %91 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv49.2
  %92 = load i32, ptr %91, align 8, !tbaa !5
  %.not31.us.2 = icmp eq i32 %92, -1
  br i1 %.not31.us.2, label %._crit_edge40.us.1.1, label %93

93:                                               ; preds = %._crit_edge40.us.1
  %94 = sext i32 %92 to i64
  %95 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 2, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv49.2
  store i32 %96, ptr %97, align 8, !tbaa !5
  br label %._crit_edge40.us.1.1

._crit_edge40.us.1.1:                             ; preds = %93, %._crit_edge40.us.1
  %indvars.iv.next50.2 = or disjoint i64 %indvars.iv49.2, 1
  %98 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv.next50.2
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %.not31.us.2.1 = icmp eq i32 %99, -1
  br i1 %.not31.us.2.1, label %105, label %100

100:                                              ; preds = %._crit_edge40.us.1.1
  %101 = sext i32 %99 to i64
  %102 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 2, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv.next50.2
  store i32 %103, ptr %104, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %100, %._crit_edge40.us.1.1
  %indvars.iv.next50.2.1 = add nuw nsw i64 %indvars.iv49.2, 2
  %niter67.next.1 = add i64 %niter67, 2
  %niter67.ncmp.1 = icmp eq i64 %niter67.next.1, %unroll_iter66
  br i1 %niter67.ncmp.1, label %._crit_edge40.us.2.preheader.unr-lcssa, label %._crit_edge40.us.1, !llvm.loop !11

._crit_edge40.us.2.preheader.unr-lcssa:           ; preds = %105, %._crit_edge40.us.1.preheader
  %indvars.iv49.2.unr = phi i64 [ 0, %._crit_edge40.us.1.preheader ], [ %indvars.iv.next50.2.1, %105 ]
  %lcmp.mod65.not = icmp eq i64 %xtraiter64, 0
  br i1 %lcmp.mod65.not, label %._crit_edge40.us.2.preheader, label %._crit_edge40.us.1.epil

._crit_edge40.us.1.epil:                          ; preds = %._crit_edge40.us.2.preheader.unr-lcssa
  %106 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv49.2.unr
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %.not31.us.2.epil = icmp eq i32 %107, -1
  br i1 %.not31.us.2.epil, label %._crit_edge40.us.2.preheader, label %108

108:                                              ; preds = %._crit_edge40.us.1.epil
  %109 = sext i32 %107 to i64
  %110 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 2, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv49.2.unr
  store i32 %111, ptr %112, align 4, !tbaa !5
  br label %._crit_edge40.us.2.preheader

._crit_edge40.us.2.preheader:                     ; preds = %._crit_edge40.us.1.epil, %108, %._crit_edge40.us.2.preheader.unr-lcssa
  %xtraiter68 = and i64 %wide.trip.count, 1
  %113 = icmp eq i64 %41, 0
  br i1 %113, label %._crit_edge40.us.3.preheader.unr-lcssa, label %._crit_edge40.us.2.preheader.new

._crit_edge40.us.2.preheader.new:                 ; preds = %._crit_edge40.us.2.preheader
  %unroll_iter70 = and i64 %wide.trip.count, 2147483646
  br label %._crit_edge40.us.2

._crit_edge40.us.2:                               ; preds = %128, %._crit_edge40.us.2.preheader.new
  %indvars.iv49.3 = phi i64 [ 0, %._crit_edge40.us.2.preheader.new ], [ %indvars.iv.next50.3.1, %128 ]
  %niter71 = phi i64 [ 0, %._crit_edge40.us.2.preheader.new ], [ %niter71.next.1, %128 ]
  %114 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv49.3
  %115 = load i32, ptr %114, align 8, !tbaa !5
  %.not31.us.3 = icmp eq i32 %115, -1
  br i1 %.not31.us.3, label %._crit_edge40.us.2.1, label %116

116:                                              ; preds = %._crit_edge40.us.2
  %117 = sext i32 %115 to i64
  %118 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 3, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv49.3
  store i32 %119, ptr %120, align 8, !tbaa !5
  br label %._crit_edge40.us.2.1

._crit_edge40.us.2.1:                             ; preds = %116, %._crit_edge40.us.2
  %indvars.iv.next50.3 = or disjoint i64 %indvars.iv49.3, 1
  %121 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv.next50.3
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %.not31.us.3.1 = icmp eq i32 %122, -1
  br i1 %.not31.us.3.1, label %128, label %123

123:                                              ; preds = %._crit_edge40.us.2.1
  %124 = sext i32 %122 to i64
  %125 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 3, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv.next50.3
  store i32 %126, ptr %127, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %123, %._crit_edge40.us.2.1
  %indvars.iv.next50.3.1 = add nuw nsw i64 %indvars.iv49.3, 2
  %niter71.next.1 = add i64 %niter71, 2
  %niter71.ncmp.1 = icmp eq i64 %niter71.next.1, %unroll_iter70
  br i1 %niter71.ncmp.1, label %._crit_edge40.us.3.preheader.unr-lcssa, label %._crit_edge40.us.2, !llvm.loop !11

._crit_edge40.us.3.preheader.unr-lcssa:           ; preds = %128, %._crit_edge40.us.2.preheader
  %indvars.iv49.3.unr = phi i64 [ 0, %._crit_edge40.us.2.preheader ], [ %indvars.iv.next50.3.1, %128 ]
  %lcmp.mod69.not = icmp eq i64 %xtraiter68, 0
  br i1 %lcmp.mod69.not, label %._crit_edge40.us.3.preheader, label %._crit_edge40.us.2.epil

._crit_edge40.us.2.epil:                          ; preds = %._crit_edge40.us.3.preheader.unr-lcssa
  %129 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv49.3.unr
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %.not31.us.3.epil = icmp eq i32 %130, -1
  br i1 %.not31.us.3.epil, label %._crit_edge40.us.3.preheader, label %131

131:                                              ; preds = %._crit_edge40.us.2.epil
  %132 = sext i32 %130 to i64
  %133 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 3, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv49.3.unr
  store i32 %134, ptr %135, align 4, !tbaa !5
  br label %._crit_edge40.us.3.preheader

._crit_edge40.us.3.preheader:                     ; preds = %._crit_edge40.us.2.epil, %131, %._crit_edge40.us.3.preheader.unr-lcssa
  %xtraiter72 = and i64 %wide.trip.count, 1
  %136 = icmp eq i64 %41, 0
  br i1 %136, label %._crit_edge40.us.4.preheader.unr-lcssa, label %._crit_edge40.us.3.preheader.new

._crit_edge40.us.3.preheader.new:                 ; preds = %._crit_edge40.us.3.preheader
  %unroll_iter74 = and i64 %wide.trip.count, 2147483646
  br label %._crit_edge40.us.3

._crit_edge40.us.3:                               ; preds = %151, %._crit_edge40.us.3.preheader.new
  %indvars.iv49.4 = phi i64 [ 0, %._crit_edge40.us.3.preheader.new ], [ %indvars.iv.next50.4.1, %151 ]
  %niter75 = phi i64 [ 0, %._crit_edge40.us.3.preheader.new ], [ %niter75.next.1, %151 ]
  %137 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv49.4
  %138 = load i32, ptr %137, align 8, !tbaa !5
  %.not31.us.4 = icmp eq i32 %138, -1
  br i1 %.not31.us.4, label %._crit_edge40.us.3.1, label %139

139:                                              ; preds = %._crit_edge40.us.3
  %140 = sext i32 %138 to i64
  %141 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 4, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv49.4
  store i32 %142, ptr %143, align 8, !tbaa !5
  br label %._crit_edge40.us.3.1

._crit_edge40.us.3.1:                             ; preds = %139, %._crit_edge40.us.3
  %indvars.iv.next50.4 = or disjoint i64 %indvars.iv49.4, 1
  %144 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv.next50.4
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %.not31.us.4.1 = icmp eq i32 %145, -1
  br i1 %.not31.us.4.1, label %151, label %146

146:                                              ; preds = %._crit_edge40.us.3.1
  %147 = sext i32 %145 to i64
  %148 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 4, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv.next50.4
  store i32 %149, ptr %150, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %146, %._crit_edge40.us.3.1
  %indvars.iv.next50.4.1 = add nuw nsw i64 %indvars.iv49.4, 2
  %niter75.next.1 = add i64 %niter75, 2
  %niter75.ncmp.1 = icmp eq i64 %niter75.next.1, %unroll_iter74
  br i1 %niter75.ncmp.1, label %._crit_edge40.us.4.preheader.unr-lcssa, label %._crit_edge40.us.3, !llvm.loop !11

._crit_edge40.us.4.preheader.unr-lcssa:           ; preds = %151, %._crit_edge40.us.3.preheader
  %indvars.iv49.4.unr = phi i64 [ 0, %._crit_edge40.us.3.preheader ], [ %indvars.iv.next50.4.1, %151 ]
  %lcmp.mod73.not = icmp eq i64 %xtraiter72, 0
  br i1 %lcmp.mod73.not, label %._crit_edge40.us.4.preheader, label %._crit_edge40.us.3.epil

._crit_edge40.us.3.epil:                          ; preds = %._crit_edge40.us.4.preheader.unr-lcssa
  %152 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv49.4.unr
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %.not31.us.4.epil = icmp eq i32 %153, -1
  br i1 %.not31.us.4.epil, label %._crit_edge40.us.4.preheader, label %154

154:                                              ; preds = %._crit_edge40.us.3.epil
  %155 = sext i32 %153 to i64
  %156 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 4, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv49.4.unr
  store i32 %157, ptr %158, align 4, !tbaa !5
  br label %._crit_edge40.us.4.preheader

._crit_edge40.us.4.preheader:                     ; preds = %._crit_edge40.us.3.epil, %154, %._crit_edge40.us.4.preheader.unr-lcssa
  %xtraiter76 = and i64 %wide.trip.count, 1
  %159 = icmp eq i64 %41, 0
  br i1 %159, label %._crit_edge40.us.5.preheader.unr-lcssa, label %._crit_edge40.us.4.preheader.new

._crit_edge40.us.4.preheader.new:                 ; preds = %._crit_edge40.us.4.preheader
  %unroll_iter78 = and i64 %wide.trip.count, 2147483646
  br label %._crit_edge40.us.4

._crit_edge40.us.4:                               ; preds = %174, %._crit_edge40.us.4.preheader.new
  %indvars.iv49.5 = phi i64 [ 0, %._crit_edge40.us.4.preheader.new ], [ %indvars.iv.next50.5.1, %174 ]
  %niter79 = phi i64 [ 0, %._crit_edge40.us.4.preheader.new ], [ %niter79.next.1, %174 ]
  %160 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv49.5
  %161 = load i32, ptr %160, align 8, !tbaa !5
  %.not31.us.5 = icmp eq i32 %161, -1
  br i1 %.not31.us.5, label %._crit_edge40.us.4.1, label %162

162:                                              ; preds = %._crit_edge40.us.4
  %163 = sext i32 %161 to i64
  %164 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 5, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv49.5
  store i32 %165, ptr %166, align 8, !tbaa !5
  br label %._crit_edge40.us.4.1

._crit_edge40.us.4.1:                             ; preds = %162, %._crit_edge40.us.4
  %indvars.iv.next50.5 = or disjoint i64 %indvars.iv49.5, 1
  %167 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv.next50.5
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %.not31.us.5.1 = icmp eq i32 %168, -1
  br i1 %.not31.us.5.1, label %174, label %169

169:                                              ; preds = %._crit_edge40.us.4.1
  %170 = sext i32 %168 to i64
  %171 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 5, i64 %170
  %172 = load i32, ptr %171, align 4, !tbaa !5
  %173 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv.next50.5
  store i32 %172, ptr %173, align 4, !tbaa !5
  br label %174

174:                                              ; preds = %169, %._crit_edge40.us.4.1
  %indvars.iv.next50.5.1 = add nuw nsw i64 %indvars.iv49.5, 2
  %niter79.next.1 = add i64 %niter79, 2
  %niter79.ncmp.1 = icmp eq i64 %niter79.next.1, %unroll_iter78
  br i1 %niter79.ncmp.1, label %._crit_edge40.us.5.preheader.unr-lcssa, label %._crit_edge40.us.4, !llvm.loop !11

._crit_edge40.us.5.preheader.unr-lcssa:           ; preds = %174, %._crit_edge40.us.4.preheader
  %indvars.iv49.5.unr = phi i64 [ 0, %._crit_edge40.us.4.preheader ], [ %indvars.iv.next50.5.1, %174 ]
  %lcmp.mod77.not = icmp eq i64 %xtraiter76, 0
  br i1 %lcmp.mod77.not, label %._crit_edge40.us.5.preheader, label %._crit_edge40.us.4.epil

._crit_edge40.us.4.epil:                          ; preds = %._crit_edge40.us.5.preheader.unr-lcssa
  %175 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv49.5.unr
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %.not31.us.5.epil = icmp eq i32 %176, -1
  br i1 %.not31.us.5.epil, label %._crit_edge40.us.5.preheader, label %177

177:                                              ; preds = %._crit_edge40.us.4.epil
  %178 = sext i32 %176 to i64
  %179 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 5, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv49.5.unr
  store i32 %180, ptr %181, align 4, !tbaa !5
  br label %._crit_edge40.us.5.preheader

._crit_edge40.us.5.preheader:                     ; preds = %._crit_edge40.us.4.epil, %177, %._crit_edge40.us.5.preheader.unr-lcssa
  %xtraiter80 = and i64 %wide.trip.count, 1
  %182 = icmp eq i64 %41, 0
  br i1 %182, label %._crit_edge40.us.6.preheader.unr-lcssa, label %._crit_edge40.us.5.preheader.new

._crit_edge40.us.5.preheader.new:                 ; preds = %._crit_edge40.us.5.preheader
  %unroll_iter82 = and i64 %wide.trip.count, 2147483646
  br label %._crit_edge40.us.5

._crit_edge40.us.5:                               ; preds = %197, %._crit_edge40.us.5.preheader.new
  %indvars.iv49.6 = phi i64 [ 0, %._crit_edge40.us.5.preheader.new ], [ %indvars.iv.next50.6.1, %197 ]
  %niter83 = phi i64 [ 0, %._crit_edge40.us.5.preheader.new ], [ %niter83.next.1, %197 ]
  %183 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv49.6
  %184 = load i32, ptr %183, align 8, !tbaa !5
  %.not31.us.6 = icmp eq i32 %184, -1
  br i1 %.not31.us.6, label %._crit_edge40.us.5.1, label %185

185:                                              ; preds = %._crit_edge40.us.5
  %186 = sext i32 %184 to i64
  %187 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 6, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv49.6
  store i32 %188, ptr %189, align 8, !tbaa !5
  br label %._crit_edge40.us.5.1

._crit_edge40.us.5.1:                             ; preds = %185, %._crit_edge40.us.5
  %indvars.iv.next50.6 = or disjoint i64 %indvars.iv49.6, 1
  %190 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv.next50.6
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %.not31.us.6.1 = icmp eq i32 %191, -1
  br i1 %.not31.us.6.1, label %197, label %192

192:                                              ; preds = %._crit_edge40.us.5.1
  %193 = sext i32 %191 to i64
  %194 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 6, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv.next50.6
  store i32 %195, ptr %196, align 4, !tbaa !5
  br label %197

197:                                              ; preds = %192, %._crit_edge40.us.5.1
  %indvars.iv.next50.6.1 = add nuw nsw i64 %indvars.iv49.6, 2
  %niter83.next.1 = add i64 %niter83, 2
  %niter83.ncmp.1 = icmp eq i64 %niter83.next.1, %unroll_iter82
  br i1 %niter83.ncmp.1, label %._crit_edge40.us.6.preheader.unr-lcssa, label %._crit_edge40.us.5, !llvm.loop !11

._crit_edge40.us.6.preheader.unr-lcssa:           ; preds = %197, %._crit_edge40.us.5.preheader
  %indvars.iv49.6.unr = phi i64 [ 0, %._crit_edge40.us.5.preheader ], [ %indvars.iv.next50.6.1, %197 ]
  %lcmp.mod81.not = icmp eq i64 %xtraiter80, 0
  br i1 %lcmp.mod81.not, label %._crit_edge40.us.6.preheader, label %._crit_edge40.us.5.epil

._crit_edge40.us.5.epil:                          ; preds = %._crit_edge40.us.6.preheader.unr-lcssa
  %198 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv49.6.unr
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %.not31.us.6.epil = icmp eq i32 %199, -1
  br i1 %.not31.us.6.epil, label %._crit_edge40.us.6.preheader, label %200

200:                                              ; preds = %._crit_edge40.us.5.epil
  %201 = sext i32 %199 to i64
  %202 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 6, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv49.6.unr
  store i32 %203, ptr %204, align 4, !tbaa !5
  br label %._crit_edge40.us.6.preheader

._crit_edge40.us.6.preheader:                     ; preds = %._crit_edge40.us.5.epil, %200, %._crit_edge40.us.6.preheader.unr-lcssa
  %xtraiter84 = and i64 %wide.trip.count, 1
  %205 = icmp eq i64 %41, 0
  br i1 %205, label %._crit_edge40.us.7.preheader.unr-lcssa, label %._crit_edge40.us.6.preheader.new

._crit_edge40.us.6.preheader.new:                 ; preds = %._crit_edge40.us.6.preheader
  %unroll_iter86 = and i64 %wide.trip.count, 2147483646
  br label %._crit_edge40.us.6

._crit_edge40.us.6:                               ; preds = %220, %._crit_edge40.us.6.preheader.new
  %indvars.iv49.7 = phi i64 [ 0, %._crit_edge40.us.6.preheader.new ], [ %indvars.iv.next50.7.1, %220 ]
  %niter87 = phi i64 [ 0, %._crit_edge40.us.6.preheader.new ], [ %niter87.next.1, %220 ]
  %206 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv49.7
  %207 = load i32, ptr %206, align 8, !tbaa !5
  %.not31.us.7 = icmp eq i32 %207, -1
  br i1 %.not31.us.7, label %._crit_edge40.us.6.1, label %208

208:                                              ; preds = %._crit_edge40.us.6
  %209 = sext i32 %207 to i64
  %210 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 7, i64 %209
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv49.7
  store i32 %211, ptr %212, align 8, !tbaa !5
  br label %._crit_edge40.us.6.1

._crit_edge40.us.6.1:                             ; preds = %208, %._crit_edge40.us.6
  %indvars.iv.next50.7 = or disjoint i64 %indvars.iv49.7, 1
  %213 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv.next50.7
  %214 = load i32, ptr %213, align 4, !tbaa !5
  %.not31.us.7.1 = icmp eq i32 %214, -1
  br i1 %.not31.us.7.1, label %220, label %215

215:                                              ; preds = %._crit_edge40.us.6.1
  %216 = sext i32 %214 to i64
  %217 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 7, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv.next50.7
  store i32 %218, ptr %219, align 4, !tbaa !5
  br label %220

220:                                              ; preds = %215, %._crit_edge40.us.6.1
  %indvars.iv.next50.7.1 = add nuw nsw i64 %indvars.iv49.7, 2
  %niter87.next.1 = add i64 %niter87, 2
  %niter87.ncmp.1 = icmp eq i64 %niter87.next.1, %unroll_iter86
  br i1 %niter87.ncmp.1, label %._crit_edge40.us.7.preheader.unr-lcssa, label %._crit_edge40.us.6, !llvm.loop !11

._crit_edge40.us.7.preheader.unr-lcssa:           ; preds = %220, %._crit_edge40.us.6.preheader
  %indvars.iv49.7.unr = phi i64 [ 0, %._crit_edge40.us.6.preheader ], [ %indvars.iv.next50.7.1, %220 ]
  %lcmp.mod85.not = icmp eq i64 %xtraiter84, 0
  br i1 %lcmp.mod85.not, label %._crit_edge40.us.7.preheader, label %._crit_edge40.us.6.epil

._crit_edge40.us.6.epil:                          ; preds = %._crit_edge40.us.7.preheader.unr-lcssa
  %221 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv49.7.unr
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %.not31.us.7.epil = icmp eq i32 %222, -1
  br i1 %.not31.us.7.epil, label %._crit_edge40.us.7.preheader, label %223

223:                                              ; preds = %._crit_edge40.us.6.epil
  %224 = sext i32 %222 to i64
  %225 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 7, i64 %224
  %226 = load i32, ptr %225, align 4, !tbaa !5
  %227 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv49.7.unr
  store i32 %226, ptr %227, align 4, !tbaa !5
  br label %._crit_edge40.us.7.preheader

._crit_edge40.us.7.preheader:                     ; preds = %._crit_edge40.us.6.epil, %223, %._crit_edge40.us.7.preheader.unr-lcssa
  %xtraiter88 = and i64 %wide.trip.count, 1
  %228 = icmp eq i64 %41, 0
  br i1 %228, label %._crit_edge40.us.8.preheader.unr-lcssa, label %._crit_edge40.us.7.preheader.new

._crit_edge40.us.7.preheader.new:                 ; preds = %._crit_edge40.us.7.preheader
  %unroll_iter90 = and i64 %wide.trip.count, 2147483646
  br label %._crit_edge40.us.7

._crit_edge40.us.7:                               ; preds = %243, %._crit_edge40.us.7.preheader.new
  %indvars.iv49.8 = phi i64 [ 0, %._crit_edge40.us.7.preheader.new ], [ %indvars.iv.next50.8.1, %243 ]
  %niter91 = phi i64 [ 0, %._crit_edge40.us.7.preheader.new ], [ %niter91.next.1, %243 ]
  %229 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv49.8
  %230 = load i32, ptr %229, align 8, !tbaa !5
  %.not31.us.8 = icmp eq i32 %230, -1
  br i1 %.not31.us.8, label %._crit_edge40.us.7.1, label %231

231:                                              ; preds = %._crit_edge40.us.7
  %232 = sext i32 %230 to i64
  %233 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 8, i64 %232
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %235 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv49.8
  store i32 %234, ptr %235, align 8, !tbaa !5
  br label %._crit_edge40.us.7.1

._crit_edge40.us.7.1:                             ; preds = %231, %._crit_edge40.us.7
  %indvars.iv.next50.8 = or disjoint i64 %indvars.iv49.8, 1
  %236 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv.next50.8
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %.not31.us.8.1 = icmp eq i32 %237, -1
  br i1 %.not31.us.8.1, label %243, label %238

238:                                              ; preds = %._crit_edge40.us.7.1
  %239 = sext i32 %237 to i64
  %240 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 8, i64 %239
  %241 = load i32, ptr %240, align 4, !tbaa !5
  %242 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv.next50.8
  store i32 %241, ptr %242, align 4, !tbaa !5
  br label %243

243:                                              ; preds = %238, %._crit_edge40.us.7.1
  %indvars.iv.next50.8.1 = add nuw nsw i64 %indvars.iv49.8, 2
  %niter91.next.1 = add i64 %niter91, 2
  %niter91.ncmp.1 = icmp eq i64 %niter91.next.1, %unroll_iter90
  br i1 %niter91.ncmp.1, label %._crit_edge40.us.8.preheader.unr-lcssa, label %._crit_edge40.us.7, !llvm.loop !11

._crit_edge40.us.8.preheader.unr-lcssa:           ; preds = %243, %._crit_edge40.us.7.preheader
  %indvars.iv49.8.unr = phi i64 [ 0, %._crit_edge40.us.7.preheader ], [ %indvars.iv.next50.8.1, %243 ]
  %lcmp.mod89.not = icmp eq i64 %xtraiter88, 0
  br i1 %lcmp.mod89.not, label %._crit_edge40.us.8.preheader, label %._crit_edge40.us.7.epil

._crit_edge40.us.7.epil:                          ; preds = %._crit_edge40.us.8.preheader.unr-lcssa
  %244 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv49.8.unr
  %245 = load i32, ptr %244, align 4, !tbaa !5
  %.not31.us.8.epil = icmp eq i32 %245, -1
  br i1 %.not31.us.8.epil, label %._crit_edge40.us.8.preheader, label %246

246:                                              ; preds = %._crit_edge40.us.7.epil
  %247 = sext i32 %245 to i64
  %248 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 8, i64 %247
  %249 = load i32, ptr %248, align 4, !tbaa !5
  %250 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv49.8.unr
  store i32 %249, ptr %250, align 4, !tbaa !5
  br label %._crit_edge40.us.8.preheader

._crit_edge40.us.8.preheader:                     ; preds = %._crit_edge40.us.7.epil, %246, %._crit_edge40.us.8.preheader.unr-lcssa
  %xtraiter92 = and i64 %wide.trip.count, 1
  %251 = icmp eq i64 %41, 0
  br i1 %251, label %._crit_edge40.us.9.preheader.unr-lcssa, label %._crit_edge40.us.8.preheader.new

._crit_edge40.us.8.preheader.new:                 ; preds = %._crit_edge40.us.8.preheader
  %unroll_iter94 = and i64 %wide.trip.count, 2147483646
  br label %._crit_edge40.us.8

._crit_edge40.us.8:                               ; preds = %266, %._crit_edge40.us.8.preheader.new
  %indvars.iv49.9 = phi i64 [ 0, %._crit_edge40.us.8.preheader.new ], [ %indvars.iv.next50.9.1, %266 ]
  %niter95 = phi i64 [ 0, %._crit_edge40.us.8.preheader.new ], [ %niter95.next.1, %266 ]
  %252 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv49.9
  %253 = load i32, ptr %252, align 8, !tbaa !5
  %.not31.us.9 = icmp eq i32 %253, -1
  br i1 %.not31.us.9, label %._crit_edge40.us.8.1, label %254

254:                                              ; preds = %._crit_edge40.us.8
  %255 = sext i32 %253 to i64
  %256 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 9, i64 %255
  %257 = load i32, ptr %256, align 4, !tbaa !5
  %258 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv49.9
  store i32 %257, ptr %258, align 8, !tbaa !5
  br label %._crit_edge40.us.8.1

._crit_edge40.us.8.1:                             ; preds = %254, %._crit_edge40.us.8
  %indvars.iv.next50.9 = or disjoint i64 %indvars.iv49.9, 1
  %259 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv.next50.9
  %260 = load i32, ptr %259, align 4, !tbaa !5
  %.not31.us.9.1 = icmp eq i32 %260, -1
  br i1 %.not31.us.9.1, label %266, label %261

261:                                              ; preds = %._crit_edge40.us.8.1
  %262 = sext i32 %260 to i64
  %263 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 9, i64 %262
  %264 = load i32, ptr %263, align 4, !tbaa !5
  %265 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv.next50.9
  store i32 %264, ptr %265, align 4, !tbaa !5
  br label %266

266:                                              ; preds = %261, %._crit_edge40.us.8.1
  %indvars.iv.next50.9.1 = add nuw nsw i64 %indvars.iv49.9, 2
  %niter95.next.1 = add i64 %niter95, 2
  %niter95.ncmp.1 = icmp eq i64 %niter95.next.1, %unroll_iter94
  br i1 %niter95.ncmp.1, label %._crit_edge40.us.9.preheader.unr-lcssa, label %._crit_edge40.us.8, !llvm.loop !11

._crit_edge40.us.9.preheader.unr-lcssa:           ; preds = %266, %._crit_edge40.us.8.preheader
  %indvars.iv49.9.unr = phi i64 [ 0, %._crit_edge40.us.8.preheader ], [ %indvars.iv.next50.9.1, %266 ]
  %lcmp.mod93.not = icmp eq i64 %xtraiter92, 0
  br i1 %lcmp.mod93.not, label %._crit_edge40.us.9.preheader, label %._crit_edge40.us.8.epil

._crit_edge40.us.8.epil:                          ; preds = %._crit_edge40.us.9.preheader.unr-lcssa
  %267 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv49.9.unr
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %.not31.us.9.epil = icmp eq i32 %268, -1
  br i1 %.not31.us.9.epil, label %._crit_edge40.us.9.preheader, label %269

269:                                              ; preds = %._crit_edge40.us.8.epil
  %270 = sext i32 %268 to i64
  %271 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 9, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !5
  %273 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv49.9.unr
  store i32 %272, ptr %273, align 4, !tbaa !5
  br label %._crit_edge40.us.9.preheader

._crit_edge40.us.9.preheader:                     ; preds = %._crit_edge40.us.8.epil, %269, %._crit_edge40.us.9.preheader.unr-lcssa
  %xtraiter96 = and i64 %wide.trip.count, 1
  %274 = icmp eq i64 %41, 0
  br i1 %274, label %._crit_edge40.us.10.preheader.unr-lcssa, label %._crit_edge40.us.9.preheader.new

._crit_edge40.us.9.preheader.new:                 ; preds = %._crit_edge40.us.9.preheader
  %unroll_iter98 = and i64 %wide.trip.count, 2147483646
  br label %._crit_edge40.us.9

._crit_edge40.us.9:                               ; preds = %289, %._crit_edge40.us.9.preheader.new
  %indvars.iv49.10 = phi i64 [ 0, %._crit_edge40.us.9.preheader.new ], [ %indvars.iv.next50.10.1, %289 ]
  %niter99 = phi i64 [ 0, %._crit_edge40.us.9.preheader.new ], [ %niter99.next.1, %289 ]
  %275 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv49.10
  %276 = load i32, ptr %275, align 8, !tbaa !5
  %.not31.us.10 = icmp eq i32 %276, -1
  br i1 %.not31.us.10, label %._crit_edge40.us.9.1, label %277

277:                                              ; preds = %._crit_edge40.us.9
  %278 = sext i32 %276 to i64
  %279 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 10, i64 %278
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %281 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv49.10
  store i32 %280, ptr %281, align 8, !tbaa !5
  br label %._crit_edge40.us.9.1

._crit_edge40.us.9.1:                             ; preds = %277, %._crit_edge40.us.9
  %indvars.iv.next50.10 = or disjoint i64 %indvars.iv49.10, 1
  %282 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv.next50.10
  %283 = load i32, ptr %282, align 4, !tbaa !5
  %.not31.us.10.1 = icmp eq i32 %283, -1
  br i1 %.not31.us.10.1, label %289, label %284

284:                                              ; preds = %._crit_edge40.us.9.1
  %285 = sext i32 %283 to i64
  %286 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 10, i64 %285
  %287 = load i32, ptr %286, align 4, !tbaa !5
  %288 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv.next50.10
  store i32 %287, ptr %288, align 4, !tbaa !5
  br label %289

289:                                              ; preds = %284, %._crit_edge40.us.9.1
  %indvars.iv.next50.10.1 = add nuw nsw i64 %indvars.iv49.10, 2
  %niter99.next.1 = add i64 %niter99, 2
  %niter99.ncmp.1 = icmp eq i64 %niter99.next.1, %unroll_iter98
  br i1 %niter99.ncmp.1, label %._crit_edge40.us.10.preheader.unr-lcssa, label %._crit_edge40.us.9, !llvm.loop !11

._crit_edge40.us.10.preheader.unr-lcssa:          ; preds = %289, %._crit_edge40.us.9.preheader
  %indvars.iv49.10.unr = phi i64 [ 0, %._crit_edge40.us.9.preheader ], [ %indvars.iv.next50.10.1, %289 ]
  %lcmp.mod97.not = icmp eq i64 %xtraiter96, 0
  br i1 %lcmp.mod97.not, label %._crit_edge40.us.10.preheader, label %._crit_edge40.us.9.epil

._crit_edge40.us.9.epil:                          ; preds = %._crit_edge40.us.10.preheader.unr-lcssa
  %290 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv49.10.unr
  %291 = load i32, ptr %290, align 4, !tbaa !5
  %.not31.us.10.epil = icmp eq i32 %291, -1
  br i1 %.not31.us.10.epil, label %._crit_edge40.us.10.preheader, label %292

292:                                              ; preds = %._crit_edge40.us.9.epil
  %293 = sext i32 %291 to i64
  %294 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 10, i64 %293
  %295 = load i32, ptr %294, align 4, !tbaa !5
  %296 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv49.10.unr
  store i32 %295, ptr %296, align 4, !tbaa !5
  br label %._crit_edge40.us.10.preheader

._crit_edge40.us.10.preheader:                    ; preds = %._crit_edge40.us.9.epil, %292, %._crit_edge40.us.10.preheader.unr-lcssa
  %xtraiter100 = and i64 %wide.trip.count, 1
  %297 = icmp eq i64 %41, 0
  br i1 %297, label %._crit_edge40.us.11.preheader.unr-lcssa, label %._crit_edge40.us.10.preheader.new

._crit_edge40.us.10.preheader.new:                ; preds = %._crit_edge40.us.10.preheader
  %unroll_iter102 = and i64 %wide.trip.count, 2147483646
  br label %._crit_edge40.us.10

._crit_edge40.us.10:                              ; preds = %312, %._crit_edge40.us.10.preheader.new
  %indvars.iv49.11 = phi i64 [ 0, %._crit_edge40.us.10.preheader.new ], [ %indvars.iv.next50.11.1, %312 ]
  %niter103 = phi i64 [ 0, %._crit_edge40.us.10.preheader.new ], [ %niter103.next.1, %312 ]
  %298 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv49.11
  %299 = load i32, ptr %298, align 8, !tbaa !5
  %.not31.us.11 = icmp eq i32 %299, -1
  br i1 %.not31.us.11, label %._crit_edge40.us.10.1, label %300

300:                                              ; preds = %._crit_edge40.us.10
  %301 = sext i32 %299 to i64
  %302 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 11, i64 %301
  %303 = load i32, ptr %302, align 4, !tbaa !5
  %304 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv49.11
  store i32 %303, ptr %304, align 8, !tbaa !5
  br label %._crit_edge40.us.10.1

._crit_edge40.us.10.1:                            ; preds = %300, %._crit_edge40.us.10
  %indvars.iv.next50.11 = or disjoint i64 %indvars.iv49.11, 1
  %305 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv.next50.11
  %306 = load i32, ptr %305, align 4, !tbaa !5
  %.not31.us.11.1 = icmp eq i32 %306, -1
  br i1 %.not31.us.11.1, label %312, label %307

307:                                              ; preds = %._crit_edge40.us.10.1
  %308 = sext i32 %306 to i64
  %309 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 11, i64 %308
  %310 = load i32, ptr %309, align 4, !tbaa !5
  %311 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv.next50.11
  store i32 %310, ptr %311, align 4, !tbaa !5
  br label %312

312:                                              ; preds = %307, %._crit_edge40.us.10.1
  %indvars.iv.next50.11.1 = add nuw nsw i64 %indvars.iv49.11, 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_edge40.us.11.preheader.unr-lcssa, label %._crit_edge40.us.10, !llvm.loop !11

._crit_edge40.us.11.preheader.unr-lcssa:          ; preds = %312, %._crit_edge40.us.10.preheader
  %indvars.iv49.11.unr = phi i64 [ 0, %._crit_edge40.us.10.preheader ], [ %indvars.iv.next50.11.1, %312 ]
  %lcmp.mod101.not = icmp eq i64 %xtraiter100, 0
  br i1 %lcmp.mod101.not, label %._crit_edge40.us.11.preheader, label %._crit_edge40.us.10.epil

._crit_edge40.us.10.epil:                         ; preds = %._crit_edge40.us.11.preheader.unr-lcssa
  %313 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv49.11.unr
  %314 = load i32, ptr %313, align 4, !tbaa !5
  %.not31.us.11.epil = icmp eq i32 %314, -1
  br i1 %.not31.us.11.epil, label %._crit_edge40.us.11.preheader, label %315

315:                                              ; preds = %._crit_edge40.us.10.epil
  %316 = sext i32 %314 to i64
  %317 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 11, i64 %316
  %318 = load i32, ptr %317, align 4, !tbaa !5
  %319 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv49.11.unr
  store i32 %318, ptr %319, align 4, !tbaa !5
  br label %._crit_edge40.us.11.preheader

._crit_edge40.us.11.preheader:                    ; preds = %._crit_edge40.us.10.epil, %315, %._crit_edge40.us.11.preheader.unr-lcssa
  %xtraiter104 = and i64 %wide.trip.count, 1
  %320 = icmp eq i64 %41, 0
  br i1 %320, label %.preheader32.preheader.loopexit.unr-lcssa, label %._crit_edge40.us.11.preheader.new

._crit_edge40.us.11.preheader.new:                ; preds = %._crit_edge40.us.11.preheader
  %unroll_iter106 = and i64 %wide.trip.count, 2147483646
  br label %._crit_edge40.us.11

._crit_edge40.us.11:                              ; preds = %335, %._crit_edge40.us.11.preheader.new
  %indvars.iv49.12 = phi i64 [ 0, %._crit_edge40.us.11.preheader.new ], [ %indvars.iv.next50.12.1, %335 ]
  %niter107 = phi i64 [ 0, %._crit_edge40.us.11.preheader.new ], [ %niter107.next.1, %335 ]
  %321 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv49.12
  %322 = load i32, ptr %321, align 8, !tbaa !5
  %.not31.us.12 = icmp eq i32 %322, -1
  br i1 %.not31.us.12, label %._crit_edge40.us.11.1, label %323

323:                                              ; preds = %._crit_edge40.us.11
  %324 = sext i32 %322 to i64
  %325 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 12, i64 %324
  %326 = load i32, ptr %325, align 4, !tbaa !5
  %327 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv49.12
  store i32 %326, ptr %327, align 8, !tbaa !5
  br label %._crit_edge40.us.11.1

._crit_edge40.us.11.1:                            ; preds = %323, %._crit_edge40.us.11
  %indvars.iv.next50.12 = or disjoint i64 %indvars.iv49.12, 1
  %328 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv.next50.12
  %329 = load i32, ptr %328, align 4, !tbaa !5
  %.not31.us.12.1 = icmp eq i32 %329, -1
  br i1 %.not31.us.12.1, label %335, label %330

330:                                              ; preds = %._crit_edge40.us.11.1
  %331 = sext i32 %329 to i64
  %332 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 12, i64 %331
  %333 = load i32, ptr %332, align 4, !tbaa !5
  %334 = getelementptr inbounds [14 x [10100 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv.next50.12
  store i32 %333, ptr %334, align 4, !tbaa !5
  br label %335

335:                                              ; preds = %330, %._crit_edge40.us.11.1
  %indvars.iv.next50.12.1 = add nuw nsw i64 %indvars.iv49.12, 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 %.preheader32.preheader.loopexit.unr-lcssa, label %._crit_edge40.us.11, !llvm.loop !11

.lr.ph37:                                         ; preds = %.preheader33, %.lr.ph37
  %.02636 = phi i32 [ %359, %.lr.ph37 ], [ 1, %.preheader33 ]
  %336 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.8, ptr noundef nonnull @a, ptr noundef nonnull @b, ptr noundef nonnull @c)
  %337 = load i32, ptr @a, align 4, !tbaa !5
  %338 = add nsw i32 %337, -1
  store i32 %338, ptr @a, align 4, !tbaa !5
  %339 = load i32, ptr @b, align 4, !tbaa !5
  %340 = add nsw i32 %339, -1
  store i32 %340, ptr @b, align 4, !tbaa !5
  %341 = sext i32 %338 to i64
  %342 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @adj_list, i64 0, i64 %341
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %342, ptr noundef nonnull align 4 dereferenceable(4) @b)
  %343 = load i32, ptr @b, align 4, !tbaa !5
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @adj_list, i64 0, i64 %344
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %345, ptr noundef nonnull align 4 dereferenceable(4) @a)
  %346 = load i32, ptr @a, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @lengths, i64 0, i64 %347
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %348, ptr noundef nonnull align 4 dereferenceable(4) @c)
  %349 = load i32, ptr @b, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @lengths, i64 0, i64 %350
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %351, ptr noundef nonnull align 4 dereferenceable(4) @c)
  %352 = load i32, ptr @a, align 4, !tbaa !5
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @indexx, i64 0, i64 %353
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %355 = add nsw i32 %.02636, -1
  store i32 %355, ptr %1, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %354, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  %356 = load i32, ptr @b, align 4, !tbaa !5
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [10100 x %"class.std::vector"], ptr @indexx, i64 0, i64 %357
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 %355, ptr %2, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %358, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %359 = add nuw nsw i32 %.02636, 1
  %360 = load i32, ptr @n, align 4, !tbaa !5
  %361 = icmp slt i32 %359, %360
  br i1 %361, label %.lr.ph37, label %._crit_edge, !llvm.loop !12

.preheader32:                                     ; preds = %.preheader32.backedge, %.preheader32.preheader
  %362 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.9, ptr noundef nonnull @instr)
  %363 = load i8, ptr getelementptr inbounds (i8, ptr @instr, i64 1), align 1, !tbaa !13
  switch i8 %363, label %374 [
    i8 79, label %364
    i8 73, label %368
  ]

364:                                              ; preds = %.preheader32
  %365 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %366 = load i32, ptr @t, align 4, !tbaa !5
  %367 = add nsw i32 %366, -1
  store i32 %367, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %366, 0
  br i1 %.not, label %._crit_edge45, label %.lr.ph44, !llvm.loop !14

368:                                              ; preds = %.preheader32
  %369 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.11, ptr noundef nonnull @a, ptr noundef nonnull @b)
  %370 = load i32, ptr @a, align 4, !tbaa !5
  %371 = add nsw i32 %370, -1
  %372 = load i32, ptr @b, align 4, !tbaa !5
  %373 = add nsw i32 %372, -1
  call void @_Z5queryii(i32 noundef %371, i32 noundef %373)
  br label %.preheader32.backedge

.preheader32.backedge:                            ; preds = %368, %374
  br label %.preheader32, !llvm.loop !15

374:                                              ; preds = %.preheader32
  %375 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.8, ptr noundef nonnull @a, ptr noundef nonnull @b, ptr noundef nonnull @c)
  %376 = load i32, ptr @a, align 4, !tbaa !5
  %377 = add nsw i32 %376, -1
  %378 = load i32, ptr @b, align 4, !tbaa !5
  %379 = add nsw i32 %378, -1
  %380 = load i32, ptr @c, align 4, !tbaa !5
  call void @_Z3kthiii(i32 noundef %377, i32 noundef %379, i32 noundef %380)
  br label %.preheader32.backedge

._crit_edge45:                                    ; preds = %364, %0
  ret i32 0
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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 = { 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 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!7, !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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