; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/Random/QTREE (qtree)

; 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 [10001 x %"class.std::vector"], align 16
@costs = external dso_local global [10001 x %"class.std::vector"], align 16
@indexx = external dso_local global [10001 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 [10001 x i32], align 16
@ptr = external dso_local global i32, align 4
@pa = external dso_local global [14 x [10001 x i32]], align 16
@instr = external dso_local global [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = 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

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

; 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
  %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.6, ptr noundef @t)
  br label %11

11:                                               ; preds = %164, %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 %165

15:                                               ; preds = %11
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.6, 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 [10001 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 [10001 x %"class.std::vector"], ptr @costs, 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 [10001 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 [10001 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 [10001 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 [10001 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.7, 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 [10001 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 [10001 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 [10001 x %"class.std::vector"], ptr @costs, 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 [10001 x %"class.std::vector"], ptr @costs, 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 [10001 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 [10001 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 -1, 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 [10001 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 [10001 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 [10001 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 [10001 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 [10001 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 [10001 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 [10001 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 [10001 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 = %163, %142
  %144 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.8, ptr noundef @instr)
  %145 = load i8, ptr @instr, align 1, !tbaa !15
  %146 = sext i8 %145 to i32
  %147 = icmp eq i32 %146, 68
  br i1 %147, label %148, label %149

148:                                              ; preds = %143
  br label %164

149:                                              ; preds = %143
  %150 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.9, ptr noundef @a, ptr noundef @b)
  %151 = load i8, ptr @instr, align 1, !tbaa !15
  %152 = sext i8 %151 to i32
  %153 = icmp eq i32 %152, 81
  br i1 %153, label %154, label %159

154:                                              ; preds = %149
  %155 = load i32, ptr @a, align 4, !tbaa !5
  %156 = sub nsw i32 %155, 1
  %157 = load i32, ptr @b, align 4, !tbaa !5
  %158 = sub nsw i32 %157, 1
  call void @_Z5queryii(i32 noundef %156, i32 noundef %158)
  br label %163

159:                                              ; preds = %149
  %160 = load i32, ptr @a, align 4, !tbaa !5
  %161 = sub nsw i32 %160, 1
  %162 = load i32, ptr @b, align 4, !tbaa !5
  call void @_Z6changeii(i32 noundef %161, i32 noundef %162)
  br label %163

163:                                              ; preds = %159, %154
  br label %143, !llvm.loop !16

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

165:                                              ; preds = %11
  ret i32 0
}

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

; 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 = { 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 = { 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 [10001 x %"class.std::vector"], align 16
@costs = external dso_local global [10001 x %"class.std::vector"], align 16
@indexx = external dso_local global [10001 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 [10001 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 [10001 x i32]], align 16
@instr = external dso_local global [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = 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: 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 #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.6, 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

.loopexit:                                        ; preds = %376, %.preheader31
  %6 = load i32, ptr @t, align 4, !tbaa !5
  %7 = add nsw i32 %6, -1
  store i32 %7, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %._crit_edge45, label %.lr.ph44, !llvm.loop !9

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

.preheader32:                                     ; preds = %.lr.ph
  %11 = icmp sgt i32 %30, 1
  br i1 %11, label %.lr.ph36, label %._crit_edge

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

._crit_edge:                                      ; preds = %.lr.ph36, %.lr.ph44, %.preheader32
  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 -1, i32 noundef -1)
  %33 = load i32, ptr @ptr, align 4, !tbaa !5
  call void @_Z4initiii(i32 noundef 1, i32 noundef 0, i32 noundef %33)
  %34 = load i32, ptr @n, align 4, !tbaa !5
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.preheader.us.preheader, label %.preheader31

.preheader.us.preheader:                          ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %34 to i64
  %36 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %wide.trip.count, 1
  %37 = icmp eq i64 %36, 0
  br i1 %37, label %._crit_edge39.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 %38

38:                                               ; preds = %54, %.preheader.us.preheader.new
  %indvars.iv49 = phi i64 [ 0, %.preheader.us.preheader.new ], [ %indvars.iv.next50.158, %54 ]
  %niter = phi i64 [ 0, %.preheader.us.preheader.new ], [ %niter.next.1, %54 ]
  %39 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 0, i64 %indvars.iv49
  %40 = load i32, ptr %39, align 8, !tbaa !5
  %.not30.us = icmp eq i32 %40, -1
  br i1 %.not30.us, label %46, label %41

41:                                               ; preds = %38
  %42 = sext i32 %40 to i64
  %43 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv49
  store i32 %44, ptr %45, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %41, %38
  %indvars.iv.next50 = or disjoint i64 %indvars.iv49, 1
  %47 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 0, i64 %indvars.iv.next50
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %.not30.us.157 = icmp eq i32 %48, -1
  br i1 %.not30.us.157, label %54, label %49

49:                                               ; preds = %46
  %50 = sext i32 %48 to i64
  %51 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv.next50
  store i32 %52, ptr %53, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %49, %46
  %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_edge39.us.preheader.unr-lcssa, label %38, !llvm.loop !12

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

.epil.preheader:                                  ; preds = %._crit_edge39.us.preheader.unr-lcssa
  %55 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 0, i64 %indvars.iv49.unr
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %.not30.us.epil = icmp eq i32 %56, -1
  br i1 %.not30.us.epil, label %._crit_edge39.us.preheader, label %57

57:                                               ; preds = %.epil.preheader
  %58 = sext i32 %56 to i64
  %59 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv49.unr
  store i32 %60, ptr %61, align 4, !tbaa !5
  br label %._crit_edge39.us.preheader

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

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

._crit_edge39.us:                                 ; preds = %77, %._crit_edge39.us.preheader.new
  %indvars.iv49.1 = phi i64 [ 0, %._crit_edge39.us.preheader.new ], [ %indvars.iv.next50.1.1, %77 ]
  %niter62 = phi i64 [ 0, %._crit_edge39.us.preheader.new ], [ %niter62.next.1, %77 ]
  %63 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv49.1
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %.not30.us.1 = icmp eq i32 %64, -1
  br i1 %.not30.us.1, label %._crit_edge39.us.163, label %65

65:                                               ; preds = %._crit_edge39.us
  %66 = sext i32 %64 to i64
  %67 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 1, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv49.1
  store i32 %68, ptr %69, align 8, !tbaa !5
  br label %._crit_edge39.us.163

._crit_edge39.us.163:                             ; preds = %65, %._crit_edge39.us
  %indvars.iv.next50.1 = or disjoint i64 %indvars.iv49.1, 1
  %70 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv.next50.1
  %71 = load i32, ptr %70, align 8, !tbaa !5
  %.not30.us.1.1 = icmp eq i32 %71, -1
  br i1 %.not30.us.1.1, label %77, label %72

72:                                               ; preds = %._crit_edge39.us.163
  %73 = sext i32 %71 to i64
  %74 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 1, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv.next50.1
  store i32 %75, ptr %76, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %72, %._crit_edge39.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_edge39.us.1.preheader.unr-lcssa, label %._crit_edge39.us, !llvm.loop !12

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

._crit_edge39.us.epil:                            ; preds = %._crit_edge39.us.1.preheader.unr-lcssa
  %78 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 1, i64 %indvars.iv49.1.unr
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %.not30.us.1.epil = icmp eq i32 %79, -1
  br i1 %.not30.us.1.epil, label %._crit_edge39.us.1.preheader, label %80

80:                                               ; preds = %._crit_edge39.us.epil
  %81 = sext i32 %79 to i64
  %82 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 1, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv49.1.unr
  store i32 %83, ptr %84, align 4, !tbaa !5
  br label %._crit_edge39.us.1.preheader

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

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

._crit_edge39.us.1:                               ; preds = %100, %._crit_edge39.us.1.preheader.new
  %indvars.iv49.2 = phi i64 [ 0, %._crit_edge39.us.1.preheader.new ], [ %indvars.iv.next50.2.1, %100 ]
  %niter67 = phi i64 [ 0, %._crit_edge39.us.1.preheader.new ], [ %niter67.next.1, %100 ]
  %86 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv49.2
  %87 = load i32, ptr %86, align 8, !tbaa !5
  %.not30.us.2 = icmp eq i32 %87, -1
  br i1 %.not30.us.2, label %._crit_edge39.us.1.1, label %88

88:                                               ; preds = %._crit_edge39.us.1
  %89 = sext i32 %87 to i64
  %90 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 2, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv49.2
  store i32 %91, ptr %92, align 4, !tbaa !5
  br label %._crit_edge39.us.1.1

._crit_edge39.us.1.1:                             ; preds = %88, %._crit_edge39.us.1
  %indvars.iv.next50.2 = or disjoint i64 %indvars.iv49.2, 1
  %93 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv.next50.2
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %.not30.us.2.1 = icmp eq i32 %94, -1
  br i1 %.not30.us.2.1, label %100, label %95

95:                                               ; preds = %._crit_edge39.us.1.1
  %96 = sext i32 %94 to i64
  %97 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 2, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv.next50.2
  store i32 %98, ptr %99, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %95, %._crit_edge39.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_edge39.us.2.preheader.unr-lcssa, label %._crit_edge39.us.1, !llvm.loop !12

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

._crit_edge39.us.1.epil:                          ; preds = %._crit_edge39.us.2.preheader.unr-lcssa
  %101 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 2, i64 %indvars.iv49.2.unr
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %.not30.us.2.epil = icmp eq i32 %102, -1
  br i1 %.not30.us.2.epil, label %._crit_edge39.us.2.preheader, label %103

103:                                              ; preds = %._crit_edge39.us.1.epil
  %104 = sext i32 %102 to i64
  %105 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 2, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv49.2.unr
  store i32 %106, ptr %107, align 4, !tbaa !5
  br label %._crit_edge39.us.2.preheader

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

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

._crit_edge39.us.2:                               ; preds = %123, %._crit_edge39.us.2.preheader.new
  %indvars.iv49.3 = phi i64 [ 0, %._crit_edge39.us.2.preheader.new ], [ %indvars.iv.next50.3.1, %123 ]
  %niter71 = phi i64 [ 0, %._crit_edge39.us.2.preheader.new ], [ %niter71.next.1, %123 ]
  %109 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv49.3
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %.not30.us.3 = icmp eq i32 %110, -1
  br i1 %.not30.us.3, label %._crit_edge39.us.2.1, label %111

111:                                              ; preds = %._crit_edge39.us.2
  %112 = sext i32 %110 to i64
  %113 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 3, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv49.3
  store i32 %114, ptr %115, align 8, !tbaa !5
  br label %._crit_edge39.us.2.1

._crit_edge39.us.2.1:                             ; preds = %111, %._crit_edge39.us.2
  %indvars.iv.next50.3 = or disjoint i64 %indvars.iv49.3, 1
  %116 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv.next50.3
  %117 = load i32, ptr %116, align 8, !tbaa !5
  %.not30.us.3.1 = icmp eq i32 %117, -1
  br i1 %.not30.us.3.1, label %123, label %118

118:                                              ; preds = %._crit_edge39.us.2.1
  %119 = sext i32 %117 to i64
  %120 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 3, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv.next50.3
  store i32 %121, ptr %122, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %118, %._crit_edge39.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_edge39.us.3.preheader.unr-lcssa, label %._crit_edge39.us.2, !llvm.loop !12

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

._crit_edge39.us.2.epil:                          ; preds = %._crit_edge39.us.3.preheader.unr-lcssa
  %124 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 3, i64 %indvars.iv49.3.unr
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %.not30.us.3.epil = icmp eq i32 %125, -1
  br i1 %.not30.us.3.epil, label %._crit_edge39.us.3.preheader, label %126

126:                                              ; preds = %._crit_edge39.us.2.epil
  %127 = sext i32 %125 to i64
  %128 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 3, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv49.3.unr
  store i32 %129, ptr %130, align 4, !tbaa !5
  br label %._crit_edge39.us.3.preheader

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

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

._crit_edge39.us.3:                               ; preds = %146, %._crit_edge39.us.3.preheader.new
  %indvars.iv49.4 = phi i64 [ 0, %._crit_edge39.us.3.preheader.new ], [ %indvars.iv.next50.4.1, %146 ]
  %niter75 = phi i64 [ 0, %._crit_edge39.us.3.preheader.new ], [ %niter75.next.1, %146 ]
  %132 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv49.4
  %133 = load i32, ptr %132, align 8, !tbaa !5
  %.not30.us.4 = icmp eq i32 %133, -1
  br i1 %.not30.us.4, label %._crit_edge39.us.3.1, label %134

134:                                              ; preds = %._crit_edge39.us.3
  %135 = sext i32 %133 to i64
  %136 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 4, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv49.4
  store i32 %137, ptr %138, align 4, !tbaa !5
  br label %._crit_edge39.us.3.1

._crit_edge39.us.3.1:                             ; preds = %134, %._crit_edge39.us.3
  %indvars.iv.next50.4 = or disjoint i64 %indvars.iv49.4, 1
  %139 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv.next50.4
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %.not30.us.4.1 = icmp eq i32 %140, -1
  br i1 %.not30.us.4.1, label %146, label %141

141:                                              ; preds = %._crit_edge39.us.3.1
  %142 = sext i32 %140 to i64
  %143 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 4, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv.next50.4
  store i32 %144, ptr %145, align 8, !tbaa !5
  br label %146

146:                                              ; preds = %141, %._crit_edge39.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_edge39.us.4.preheader.unr-lcssa, label %._crit_edge39.us.3, !llvm.loop !12

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

._crit_edge39.us.3.epil:                          ; preds = %._crit_edge39.us.4.preheader.unr-lcssa
  %147 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 4, i64 %indvars.iv49.4.unr
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %.not30.us.4.epil = icmp eq i32 %148, -1
  br i1 %.not30.us.4.epil, label %._crit_edge39.us.4.preheader, label %149

149:                                              ; preds = %._crit_edge39.us.3.epil
  %150 = sext i32 %148 to i64
  %151 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 4, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv49.4.unr
  store i32 %152, ptr %153, align 4, !tbaa !5
  br label %._crit_edge39.us.4.preheader

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

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

._crit_edge39.us.4:                               ; preds = %169, %._crit_edge39.us.4.preheader.new
  %indvars.iv49.5 = phi i64 [ 0, %._crit_edge39.us.4.preheader.new ], [ %indvars.iv.next50.5.1, %169 ]
  %niter79 = phi i64 [ 0, %._crit_edge39.us.4.preheader.new ], [ %niter79.next.1, %169 ]
  %155 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv49.5
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %.not30.us.5 = icmp eq i32 %156, -1
  br i1 %.not30.us.5, label %._crit_edge39.us.4.1, label %157

157:                                              ; preds = %._crit_edge39.us.4
  %158 = sext i32 %156 to i64
  %159 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 5, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv49.5
  store i32 %160, ptr %161, align 8, !tbaa !5
  br label %._crit_edge39.us.4.1

._crit_edge39.us.4.1:                             ; preds = %157, %._crit_edge39.us.4
  %indvars.iv.next50.5 = or disjoint i64 %indvars.iv49.5, 1
  %162 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv.next50.5
  %163 = load i32, ptr %162, align 8, !tbaa !5
  %.not30.us.5.1 = icmp eq i32 %163, -1
  br i1 %.not30.us.5.1, label %169, label %164

164:                                              ; preds = %._crit_edge39.us.4.1
  %165 = sext i32 %163 to i64
  %166 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 5, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv.next50.5
  store i32 %167, ptr %168, align 4, !tbaa !5
  br label %169

169:                                              ; preds = %164, %._crit_edge39.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_edge39.us.5.preheader.unr-lcssa, label %._crit_edge39.us.4, !llvm.loop !12

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

._crit_edge39.us.4.epil:                          ; preds = %._crit_edge39.us.5.preheader.unr-lcssa
  %170 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 5, i64 %indvars.iv49.5.unr
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %.not30.us.5.epil = icmp eq i32 %171, -1
  br i1 %.not30.us.5.epil, label %._crit_edge39.us.5.preheader, label %172

172:                                              ; preds = %._crit_edge39.us.4.epil
  %173 = sext i32 %171 to i64
  %174 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 5, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv49.5.unr
  store i32 %175, ptr %176, align 4, !tbaa !5
  br label %._crit_edge39.us.5.preheader

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

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

._crit_edge39.us.5:                               ; preds = %192, %._crit_edge39.us.5.preheader.new
  %indvars.iv49.6 = phi i64 [ 0, %._crit_edge39.us.5.preheader.new ], [ %indvars.iv.next50.6.1, %192 ]
  %niter83 = phi i64 [ 0, %._crit_edge39.us.5.preheader.new ], [ %niter83.next.1, %192 ]
  %178 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv49.6
  %179 = load i32, ptr %178, align 8, !tbaa !5
  %.not30.us.6 = icmp eq i32 %179, -1
  br i1 %.not30.us.6, label %._crit_edge39.us.5.1, label %180

180:                                              ; preds = %._crit_edge39.us.5
  %181 = sext i32 %179 to i64
  %182 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 6, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv49.6
  store i32 %183, ptr %184, align 4, !tbaa !5
  br label %._crit_edge39.us.5.1

._crit_edge39.us.5.1:                             ; preds = %180, %._crit_edge39.us.5
  %indvars.iv.next50.6 = or disjoint i64 %indvars.iv49.6, 1
  %185 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv.next50.6
  %186 = load i32, ptr %185, align 4, !tbaa !5
  %.not30.us.6.1 = icmp eq i32 %186, -1
  br i1 %.not30.us.6.1, label %192, label %187

187:                                              ; preds = %._crit_edge39.us.5.1
  %188 = sext i32 %186 to i64
  %189 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 6, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %191 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv.next50.6
  store i32 %190, ptr %191, align 8, !tbaa !5
  br label %192

192:                                              ; preds = %187, %._crit_edge39.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_edge39.us.6.preheader.unr-lcssa, label %._crit_edge39.us.5, !llvm.loop !12

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

._crit_edge39.us.5.epil:                          ; preds = %._crit_edge39.us.6.preheader.unr-lcssa
  %193 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 6, i64 %indvars.iv49.6.unr
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %.not30.us.6.epil = icmp eq i32 %194, -1
  br i1 %.not30.us.6.epil, label %._crit_edge39.us.6.preheader, label %195

195:                                              ; preds = %._crit_edge39.us.5.epil
  %196 = sext i32 %194 to i64
  %197 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 6, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv49.6.unr
  store i32 %198, ptr %199, align 4, !tbaa !5
  br label %._crit_edge39.us.6.preheader

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

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

._crit_edge39.us.6:                               ; preds = %215, %._crit_edge39.us.6.preheader.new
  %indvars.iv49.7 = phi i64 [ 0, %._crit_edge39.us.6.preheader.new ], [ %indvars.iv.next50.7.1, %215 ]
  %niter87 = phi i64 [ 0, %._crit_edge39.us.6.preheader.new ], [ %niter87.next.1, %215 ]
  %201 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv49.7
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %.not30.us.7 = icmp eq i32 %202, -1
  br i1 %.not30.us.7, label %._crit_edge39.us.6.1, label %203

203:                                              ; preds = %._crit_edge39.us.6
  %204 = sext i32 %202 to i64
  %205 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 7, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv49.7
  store i32 %206, ptr %207, align 8, !tbaa !5
  br label %._crit_edge39.us.6.1

._crit_edge39.us.6.1:                             ; preds = %203, %._crit_edge39.us.6
  %indvars.iv.next50.7 = or disjoint i64 %indvars.iv49.7, 1
  %208 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv.next50.7
  %209 = load i32, ptr %208, align 8, !tbaa !5
  %.not30.us.7.1 = icmp eq i32 %209, -1
  br i1 %.not30.us.7.1, label %215, label %210

210:                                              ; preds = %._crit_edge39.us.6.1
  %211 = sext i32 %209 to i64
  %212 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 7, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv.next50.7
  store i32 %213, ptr %214, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %210, %._crit_edge39.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_edge39.us.7.preheader.unr-lcssa, label %._crit_edge39.us.6, !llvm.loop !12

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

._crit_edge39.us.6.epil:                          ; preds = %._crit_edge39.us.7.preheader.unr-lcssa
  %216 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 7, i64 %indvars.iv49.7.unr
  %217 = load i32, ptr %216, align 4, !tbaa !5
  %.not30.us.7.epil = icmp eq i32 %217, -1
  br i1 %.not30.us.7.epil, label %._crit_edge39.us.7.preheader, label %218

218:                                              ; preds = %._crit_edge39.us.6.epil
  %219 = sext i32 %217 to i64
  %220 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 7, i64 %219
  %221 = load i32, ptr %220, align 4, !tbaa !5
  %222 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv49.7.unr
  store i32 %221, ptr %222, align 4, !tbaa !5
  br label %._crit_edge39.us.7.preheader

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

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

._crit_edge39.us.7:                               ; preds = %238, %._crit_edge39.us.7.preheader.new
  %indvars.iv49.8 = phi i64 [ 0, %._crit_edge39.us.7.preheader.new ], [ %indvars.iv.next50.8.1, %238 ]
  %niter91 = phi i64 [ 0, %._crit_edge39.us.7.preheader.new ], [ %niter91.next.1, %238 ]
  %224 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv49.8
  %225 = load i32, ptr %224, align 8, !tbaa !5
  %.not30.us.8 = icmp eq i32 %225, -1
  br i1 %.not30.us.8, label %._crit_edge39.us.7.1, label %226

226:                                              ; preds = %._crit_edge39.us.7
  %227 = sext i32 %225 to i64
  %228 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 8, i64 %227
  %229 = load i32, ptr %228, align 4, !tbaa !5
  %230 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv49.8
  store i32 %229, ptr %230, align 4, !tbaa !5
  br label %._crit_edge39.us.7.1

._crit_edge39.us.7.1:                             ; preds = %226, %._crit_edge39.us.7
  %indvars.iv.next50.8 = or disjoint i64 %indvars.iv49.8, 1
  %231 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv.next50.8
  %232 = load i32, ptr %231, align 4, !tbaa !5
  %.not30.us.8.1 = icmp eq i32 %232, -1
  br i1 %.not30.us.8.1, label %238, label %233

233:                                              ; preds = %._crit_edge39.us.7.1
  %234 = sext i32 %232 to i64
  %235 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 8, i64 %234
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv.next50.8
  store i32 %236, ptr %237, align 8, !tbaa !5
  br label %238

238:                                              ; preds = %233, %._crit_edge39.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_edge39.us.8.preheader.unr-lcssa, label %._crit_edge39.us.7, !llvm.loop !12

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

._crit_edge39.us.7.epil:                          ; preds = %._crit_edge39.us.8.preheader.unr-lcssa
  %239 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 8, i64 %indvars.iv49.8.unr
  %240 = load i32, ptr %239, align 4, !tbaa !5
  %.not30.us.8.epil = icmp eq i32 %240, -1
  br i1 %.not30.us.8.epil, label %._crit_edge39.us.8.preheader, label %241

241:                                              ; preds = %._crit_edge39.us.7.epil
  %242 = sext i32 %240 to i64
  %243 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 8, i64 %242
  %244 = load i32, ptr %243, align 4, !tbaa !5
  %245 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv49.8.unr
  store i32 %244, ptr %245, align 4, !tbaa !5
  br label %._crit_edge39.us.8.preheader

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

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

._crit_edge39.us.8:                               ; preds = %261, %._crit_edge39.us.8.preheader.new
  %indvars.iv49.9 = phi i64 [ 0, %._crit_edge39.us.8.preheader.new ], [ %indvars.iv.next50.9.1, %261 ]
  %niter95 = phi i64 [ 0, %._crit_edge39.us.8.preheader.new ], [ %niter95.next.1, %261 ]
  %247 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv49.9
  %248 = load i32, ptr %247, align 4, !tbaa !5
  %.not30.us.9 = icmp eq i32 %248, -1
  br i1 %.not30.us.9, label %._crit_edge39.us.8.1, label %249

249:                                              ; preds = %._crit_edge39.us.8
  %250 = sext i32 %248 to i64
  %251 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 9, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv49.9
  store i32 %252, ptr %253, align 8, !tbaa !5
  br label %._crit_edge39.us.8.1

._crit_edge39.us.8.1:                             ; preds = %249, %._crit_edge39.us.8
  %indvars.iv.next50.9 = or disjoint i64 %indvars.iv49.9, 1
  %254 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv.next50.9
  %255 = load i32, ptr %254, align 8, !tbaa !5
  %.not30.us.9.1 = icmp eq i32 %255, -1
  br i1 %.not30.us.9.1, label %261, label %256

256:                                              ; preds = %._crit_edge39.us.8.1
  %257 = sext i32 %255 to i64
  %258 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 9, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !5
  %260 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv.next50.9
  store i32 %259, ptr %260, align 4, !tbaa !5
  br label %261

261:                                              ; preds = %256, %._crit_edge39.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_edge39.us.9.preheader.unr-lcssa, label %._crit_edge39.us.8, !llvm.loop !12

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

._crit_edge39.us.8.epil:                          ; preds = %._crit_edge39.us.9.preheader.unr-lcssa
  %262 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 9, i64 %indvars.iv49.9.unr
  %263 = load i32, ptr %262, align 4, !tbaa !5
  %.not30.us.9.epil = icmp eq i32 %263, -1
  br i1 %.not30.us.9.epil, label %._crit_edge39.us.9.preheader, label %264

264:                                              ; preds = %._crit_edge39.us.8.epil
  %265 = sext i32 %263 to i64
  %266 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 9, i64 %265
  %267 = load i32, ptr %266, align 4, !tbaa !5
  %268 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv49.9.unr
  store i32 %267, ptr %268, align 4, !tbaa !5
  br label %._crit_edge39.us.9.preheader

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

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

._crit_edge39.us.9:                               ; preds = %284, %._crit_edge39.us.9.preheader.new
  %indvars.iv49.10 = phi i64 [ 0, %._crit_edge39.us.9.preheader.new ], [ %indvars.iv.next50.10.1, %284 ]
  %niter99 = phi i64 [ 0, %._crit_edge39.us.9.preheader.new ], [ %niter99.next.1, %284 ]
  %270 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv49.10
  %271 = load i32, ptr %270, align 8, !tbaa !5
  %.not30.us.10 = icmp eq i32 %271, -1
  br i1 %.not30.us.10, label %._crit_edge39.us.9.1, label %272

272:                                              ; preds = %._crit_edge39.us.9
  %273 = sext i32 %271 to i64
  %274 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 10, i64 %273
  %275 = load i32, ptr %274, align 4, !tbaa !5
  %276 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv49.10
  store i32 %275, ptr %276, align 4, !tbaa !5
  br label %._crit_edge39.us.9.1

._crit_edge39.us.9.1:                             ; preds = %272, %._crit_edge39.us.9
  %indvars.iv.next50.10 = or disjoint i64 %indvars.iv49.10, 1
  %277 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv.next50.10
  %278 = load i32, ptr %277, align 4, !tbaa !5
  %.not30.us.10.1 = icmp eq i32 %278, -1
  br i1 %.not30.us.10.1, label %284, label %279

279:                                              ; preds = %._crit_edge39.us.9.1
  %280 = sext i32 %278 to i64
  %281 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 10, i64 %280
  %282 = load i32, ptr %281, align 4, !tbaa !5
  %283 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv.next50.10
  store i32 %282, ptr %283, align 8, !tbaa !5
  br label %284

284:                                              ; preds = %279, %._crit_edge39.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_edge39.us.10.preheader.unr-lcssa, label %._crit_edge39.us.9, !llvm.loop !12

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

._crit_edge39.us.9.epil:                          ; preds = %._crit_edge39.us.10.preheader.unr-lcssa
  %285 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 10, i64 %indvars.iv49.10.unr
  %286 = load i32, ptr %285, align 4, !tbaa !5
  %.not30.us.10.epil = icmp eq i32 %286, -1
  br i1 %.not30.us.10.epil, label %._crit_edge39.us.10.preheader, label %287

287:                                              ; preds = %._crit_edge39.us.9.epil
  %288 = sext i32 %286 to i64
  %289 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 10, i64 %288
  %290 = load i32, ptr %289, align 4, !tbaa !5
  %291 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv49.10.unr
  store i32 %290, ptr %291, align 4, !tbaa !5
  br label %._crit_edge39.us.10.preheader

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

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

._crit_edge39.us.10:                              ; preds = %307, %._crit_edge39.us.10.preheader.new
  %indvars.iv49.11 = phi i64 [ 0, %._crit_edge39.us.10.preheader.new ], [ %indvars.iv.next50.11.1, %307 ]
  %niter103 = phi i64 [ 0, %._crit_edge39.us.10.preheader.new ], [ %niter103.next.1, %307 ]
  %293 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv49.11
  %294 = load i32, ptr %293, align 4, !tbaa !5
  %.not30.us.11 = icmp eq i32 %294, -1
  br i1 %.not30.us.11, label %._crit_edge39.us.10.1, label %295

295:                                              ; preds = %._crit_edge39.us.10
  %296 = sext i32 %294 to i64
  %297 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 11, i64 %296
  %298 = load i32, ptr %297, align 4, !tbaa !5
  %299 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv49.11
  store i32 %298, ptr %299, align 8, !tbaa !5
  br label %._crit_edge39.us.10.1

._crit_edge39.us.10.1:                            ; preds = %295, %._crit_edge39.us.10
  %indvars.iv.next50.11 = or disjoint i64 %indvars.iv49.11, 1
  %300 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv.next50.11
  %301 = load i32, ptr %300, align 8, !tbaa !5
  %.not30.us.11.1 = icmp eq i32 %301, -1
  br i1 %.not30.us.11.1, label %307, label %302

302:                                              ; preds = %._crit_edge39.us.10.1
  %303 = sext i32 %301 to i64
  %304 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 11, i64 %303
  %305 = load i32, ptr %304, align 4, !tbaa !5
  %306 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv.next50.11
  store i32 %305, ptr %306, align 4, !tbaa !5
  br label %307

307:                                              ; preds = %302, %._crit_edge39.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_edge39.us.11.preheader.unr-lcssa, label %._crit_edge39.us.10, !llvm.loop !12

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

._crit_edge39.us.10.epil:                         ; preds = %._crit_edge39.us.11.preheader.unr-lcssa
  %308 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 11, i64 %indvars.iv49.11.unr
  %309 = load i32, ptr %308, align 4, !tbaa !5
  %.not30.us.11.epil = icmp eq i32 %309, -1
  br i1 %.not30.us.11.epil, label %._crit_edge39.us.11.preheader, label %310

310:                                              ; preds = %._crit_edge39.us.10.epil
  %311 = sext i32 %309 to i64
  %312 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 11, i64 %311
  %313 = load i32, ptr %312, align 4, !tbaa !5
  %314 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv49.11.unr
  store i32 %313, ptr %314, align 4, !tbaa !5
  br label %._crit_edge39.us.11.preheader

._crit_edge39.us.11.preheader:                    ; preds = %._crit_edge39.us.10.epil, %310, %._crit_edge39.us.11.preheader.unr-lcssa
  %xtraiter104 = and i64 %wide.trip.count, 1
  %315 = icmp eq i64 %36, 0
  br i1 %315, label %.preheader31.loopexit.unr-lcssa, label %._crit_edge39.us.11.preheader.new

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

._crit_edge39.us.11:                              ; preds = %330, %._crit_edge39.us.11.preheader.new
  %indvars.iv49.12 = phi i64 [ 0, %._crit_edge39.us.11.preheader.new ], [ %indvars.iv.next50.12.1, %330 ]
  %niter107 = phi i64 [ 0, %._crit_edge39.us.11.preheader.new ], [ %niter107.next.1, %330 ]
  %316 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv49.12
  %317 = load i32, ptr %316, align 8, !tbaa !5
  %.not30.us.12 = icmp eq i32 %317, -1
  br i1 %.not30.us.12, label %._crit_edge39.us.11.1, label %318

318:                                              ; preds = %._crit_edge39.us.11
  %319 = sext i32 %317 to i64
  %320 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 12, i64 %319
  %321 = load i32, ptr %320, align 4, !tbaa !5
  %322 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv49.12
  store i32 %321, ptr %322, align 4, !tbaa !5
  br label %._crit_edge39.us.11.1

._crit_edge39.us.11.1:                            ; preds = %318, %._crit_edge39.us.11
  %indvars.iv.next50.12 = or disjoint i64 %indvars.iv49.12, 1
  %323 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv.next50.12
  %324 = load i32, ptr %323, align 4, !tbaa !5
  %.not30.us.12.1 = icmp eq i32 %324, -1
  br i1 %.not30.us.12.1, label %330, label %325

325:                                              ; preds = %._crit_edge39.us.11.1
  %326 = sext i32 %324 to i64
  %327 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 12, i64 %326
  %328 = load i32, ptr %327, align 4, !tbaa !5
  %329 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv.next50.12
  store i32 %328, ptr %329, align 8, !tbaa !5
  br label %330

330:                                              ; preds = %325, %._crit_edge39.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 %.preheader31.loopexit.unr-lcssa, label %._crit_edge39.us.11, !llvm.loop !12

.lr.ph36:                                         ; preds = %.preheader32, %.lr.ph36
  %.02635 = phi i32 [ %354, %.lr.ph36 ], [ 1, %.preheader32 ]
  %331 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.7, ptr noundef nonnull @a, ptr noundef nonnull @b, ptr noundef nonnull @c)
  %332 = load i32, ptr @a, align 4, !tbaa !5
  %333 = add nsw i32 %332, -1
  store i32 %333, ptr @a, align 4, !tbaa !5
  %334 = load i32, ptr @b, align 4, !tbaa !5
  %335 = add nsw i32 %334, -1
  store i32 %335, ptr @b, align 4, !tbaa !5
  %336 = sext i32 %333 to i64
  %337 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @adj_list, i64 0, i64 %336
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %337, ptr noundef nonnull align 4 dereferenceable(4) @b)
  %338 = load i32, ptr @b, align 4, !tbaa !5
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @adj_list, i64 0, i64 %339
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %340, ptr noundef nonnull align 4 dereferenceable(4) @a)
  %341 = load i32, ptr @a, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @costs, i64 0, i64 %342
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %343, ptr noundef nonnull align 4 dereferenceable(4) @c)
  %344 = load i32, ptr @b, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @costs, i64 0, i64 %345
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %346, ptr noundef nonnull align 4 dereferenceable(4) @c)
  %347 = load i32, ptr @a, align 4, !tbaa !5
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @indexx, i64 0, i64 %348
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %350 = add nsw i32 %.02635, -1
  store i32 %350, ptr %1, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %349, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  %351 = load i32, ptr @b, align 4, !tbaa !5
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @indexx, i64 0, i64 %352
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 %350, ptr %2, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %353, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %354 = add nuw nsw i32 %.02635, 1
  %355 = load i32, ptr @n, align 4, !tbaa !5
  %356 = icmp slt i32 %354, %355
  br i1 %356, label %.lr.ph36, label %._crit_edge, !llvm.loop !13

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

._crit_edge39.us.11.epil:                         ; preds = %.preheader31.loopexit.unr-lcssa
  %357 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 12, i64 %indvars.iv49.12.unr
  %358 = load i32, ptr %357, align 4, !tbaa !5
  %.not30.us.12.epil = icmp eq i32 %358, -1
  br i1 %.not30.us.12.epil, label %.preheader31, label %359

359:                                              ; preds = %._crit_edge39.us.11.epil
  %360 = sext i32 %358 to i64
  %361 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 12, i64 %360
  %362 = load i32, ptr %361, align 4, !tbaa !5
  %363 = getelementptr inbounds [14 x [10001 x i32]], ptr @pa, i64 0, i64 13, i64 %indvars.iv49.12.unr
  store i32 %362, ptr %363, align 4, !tbaa !5
  br label %.preheader31

.preheader31:                                     ; preds = %.preheader31.loopexit.unr-lcssa, %359, %._crit_edge39.us.11.epil, %._crit_edge
  %364 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.8, ptr noundef nonnull @instr)
  %365 = load i8, ptr @instr, align 1, !tbaa !14
  %366 = icmp eq i8 %365, 68
  br i1 %366, label %.loopexit, label %.lr.ph41

.lr.ph41:                                         ; preds = %.preheader31, %376
  %367 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.9, ptr noundef nonnull @a, ptr noundef nonnull @b)
  %368 = load i8, ptr @instr, align 1, !tbaa !14
  %369 = icmp eq i8 %368, 81
  %370 = load i32, ptr @a, align 4, !tbaa !5
  %371 = add nsw i32 %370, -1
  %372 = load i32, ptr @b, align 4, !tbaa !5
  br i1 %369, label %373, label %375

373:                                              ; preds = %.lr.ph41
  %374 = add nsw i32 %372, -1
  call void @_Z5queryii(i32 noundef %371, i32 noundef %374)
  br label %376

375:                                              ; preds = %.lr.ph41
  call void @_Z6changeii(i32 noundef %371, i32 noundef %372)
  br label %376

376:                                              ; preds = %375, %373
  %377 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.8, ptr noundef nonnull @instr)
  %378 = load i8, ptr @instr, align 1, !tbaa !14
  %379 = icmp eq i8 %378, 68
  br i1 %379, label %.loopexit, label %.lr.ph41, !llvm.loop !15

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

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

; 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 = { 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 = { 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 #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 = !{!7, !7, i64 0}
!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