; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2020-21/Dec/Plat (space_matrix)

; 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.3" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<mint<1000000007, 5>>, std::allocator<std::vector<mint<1000000007, 5>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<mint<1000000007, 5>>, std::allocator<std::vector<mint<1000000007, 5>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<mint<1000000007, 5>>, std::allocator<std::vector<mint<1000000007, 5>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<mint<1000000007, 5>>, std::allocator<std::vector<mint<1000000007, 5>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<mint<1000000007, 5>, std::allocator<mint<1000000007, 5>>>::_Vector_impl" }
%"struct.std::_Vector_base<mint<1000000007, 5>, std::allocator<mint<1000000007, 5>>>::_Vector_impl" = type { %"struct.std::_Vector_base<mint<1000000007, 5>, std::allocator<mint<1000000007, 5>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mint<1000000007, 5>, std::allocator<mint<1000000007, 5>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%struct.mint = type { i32 }
%"class.std::allocator.9" = type { i8 }

@N = external dso_local global i32, align 4
@K = external dso_local global i32, align 4
@Q = external dso_local global i32, align 4
@adj = external dso_local global [60 x %"class.std::vector.3"], align 16
@.str.20 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2reINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEvRT_(ptr noundef nonnull align 8 dereferenceable(32)) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5setIONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaI4mintILi1000000007ELi5EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4mintILi1000000007ELi5EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7makeMatii(ptr dead_on_unwind noalias writable sret(%"class.std::vector.3") align 8, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6makeIdi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.3") align 8, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4mintILi1000000007ELi5EEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmlRKSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EES7_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.3") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZplSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EERKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.3") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmlSt6vectorI4mintILi1000000007ELi5EESaIS1_EERKS_IS3_SaIS3_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.7") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector.3", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.mint, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector.3", align 8
  %14 = alloca %"class.std::vector.3", align 8
  %15 = alloca %"class.std::vector.3", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.mint, align 4
  %22 = alloca %"class.std::vector.7", align 8
  %23 = alloca %"class.std::vector.7", align 8
  %24 = alloca %"class.std::allocator.9", align 1
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::vector.7", align 8
  %27 = alloca %"class.std::vector.7", align 8
  %28 = alloca %"class.std::vector.3", align 8
  %29 = alloca %"class.std::vector.3", align 8
  %30 = alloca %"class.std::vector.7", align 8
  %31 = alloca %"class.std::vector.7", align 8
  %32 = alloca %"class.std::vector.3", align 8
  %33 = alloca %"class.std::vector.3", align 8
  %34 = alloca i32, align 4
  %35 = alloca %"class.std::vector.7", align 8
  %36 = alloca %"class.std::vector.7", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef @.str.20, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %37 unwind label %47

37:                                               ; preds = %0
  invoke void @_Z5setIONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %2)
          to label %38 unwind label %51

38:                                               ; preds = %37
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #6
  call void @_Z2reIiJiiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) @N, ptr noundef nonnull align 4 dereferenceable(4) @K, ptr noundef nonnull align 4 dereferenceable(4) @Q)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  %39 = load i32, ptr @N, align 4, !tbaa !5
  %40 = load i32, ptr @N, align 4, !tbaa !5
  call void @_Z7makeMatii(ptr dead_on_unwind writable sret(%"class.std::vector.3") align 8 %6, i32 noundef %39, i32 noundef %40)
  %41 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) @adj, ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %91, %38
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = load i32, ptr @N, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %56, label %46

46:                                               ; preds = %42
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %95

47:                                               ; preds = %0
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %4, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %5, align 4
  br label %55

51:                                               ; preds = %37
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %4, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br label %55

55:                                               ; preds = %51, %47
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #6
  br label %335

56:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  invoke void @_Z2reINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEvRT_(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %57 unwind label %63

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

58:                                               ; preds = %83, %57
  %59 = load i32, ptr %10, align 4, !tbaa !5
  %60 = load i32, ptr @N, align 4, !tbaa !5
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %67, label %62

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

63:                                               ; preds = %56
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %4, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %5, align 4
  br label %94

67:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %68 = load i32, ptr %10, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %69)
          to label %71 unwind label %86

71:                                               ; preds = %67
  %72 = load i8, ptr %70, align 1, !tbaa !9
  %73 = sext i8 %72 to i32
  %74 = sub nsw i32 %73, 48
  %75 = sext i32 %74 to i64
  invoke void @_ZN4mintILi1000000007ELi5EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %11, i64 noundef %75)
          to label %76 unwind label %86

76:                                               ; preds = %71
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @adj, i64 noundef %78) #6
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 4 %11, i64 4, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %83

83:                                               ; preds = %76
  %84 = load i32, ptr %10, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %10, align 4, !tbaa !5
  br label %58, !llvm.loop !11

86:                                               ; preds = %71, %67
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %4, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %94

90:                                               ; preds = %62
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %7, align 4, !tbaa !5
  br label %42, !llvm.loop !13

94:                                               ; preds = %86, %63
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %335

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

96:                                               ; preds = %120, %95
  %97 = load i32, ptr %12, align 4, !tbaa !5
  %98 = load i32, ptr @K, align 4, !tbaa !5
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %132

101:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  %102 = load i32, ptr %12, align 4, !tbaa !5
  %103 = sub nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %104
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %105)
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %106 = load i32, ptr %12, align 4, !tbaa !5
  %107 = sub nsw i32 %106, 1
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %108
  %110 = load i32, ptr %12, align 4, !tbaa !5
  %111 = sub nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %112
  invoke void @_ZmlRKSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EES7_(ptr dead_on_unwind writable sret(%"class.std::vector.3") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %109, ptr noundef nonnull align 8 dereferenceable(24) %113)
          to label %114 unwind label %123

114:                                              ; preds = %101
  invoke void @_ZplSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EERKS5_(ptr dead_on_unwind writable sret(%"class.std::vector.3") align 8 %13, ptr noundef %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %115 unwind label %127

115:                                              ; preds = %114
  %116 = load i32, ptr %12, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %117
  %119 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  br label %120

120:                                              ; preds = %115
  %121 = load i32, ptr %12, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %12, align 4, !tbaa !5
  br label %96, !llvm.loop !14

123:                                              ; preds = %101
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %4, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %5, align 4
  br label %131

127:                                              ; preds = %114
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %4, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %5, align 4
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %131

131:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %335

132:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %133

133:                                              ; preds = %315, %132
  %134 = load i32, ptr %16, align 4, !tbaa !5
  %135 = load i32, ptr @Q, align 4, !tbaa !5
  %136 = icmp slt i32 %134, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %133
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %333

138:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @_Z2reIiJiiiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %139 = load i32, ptr %17, align 4, !tbaa !5
  %140 = add nsw i32 %139, -1
  store i32 %140, ptr %17, align 4, !tbaa !5
  %141 = load i32, ptr %19, align 4, !tbaa !5
  %142 = add nsw i32 %141, -1
  store i32 %142, ptr %19, align 4, !tbaa !5
  %143 = load i32, ptr %18, align 4, !tbaa !5
  %144 = add nsw i32 %143, -1
  store i32 %144, ptr %18, align 4, !tbaa !5
  %145 = load i32, ptr %20, align 4, !tbaa !5
  %146 = add nsw i32 %145, -1
  store i32 %146, ptr %20, align 4, !tbaa !5
  %147 = load i32, ptr %17, align 4, !tbaa !5
  %148 = load i32, ptr %19, align 4, !tbaa !5
  %149 = icmp sgt i32 %147, %148
  br i1 %149, label %150, label %151

150:                                              ; preds = %138
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %19) #6
  br label %151

151:                                              ; preds = %150, %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %152 = load i32, ptr %17, align 4, !tbaa !5
  %153 = load i32, ptr %19, align 4, !tbaa !5
  %154 = icmp eq i32 %152, %153
  br i1 %154, label %155, label %159

155:                                              ; preds = %151
  %156 = load i32, ptr %18, align 4, !tbaa !5
  %157 = load i32, ptr %20, align 4, !tbaa !5
  %158 = icmp eq i32 %156, %157
  br label %159

159:                                              ; preds = %155, %151
  %160 = phi i1 [ false, %151 ], [ %158, %155 ]
  %161 = zext i1 %160 to i64
  call void @_ZN4mintILi1000000007ELi5EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %21, i64 noundef %161)
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  %162 = load i32, ptr @N, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  call void @_ZNSaI4mintILi1000000007ELi5EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  invoke void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %163, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %164 unwind label %172

164:                                              ; preds = %159
  call void @_ZNSt15__new_allocatorI4mintILi1000000007ELi5EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %165 = load i32, ptr %17, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %25, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %298, %164
  %168 = load i32, ptr %25, align 4, !tbaa !5
  %169 = load i32, ptr @K, align 4, !tbaa !5
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %176, label %171

171:                                              ; preds = %167
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %302

172:                                              ; preds = %159
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %4, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %5, align 4
  call void @_ZNSt15__new_allocatorI4mintILi1000000007ELi5EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  br label %332

176:                                              ; preds = %167
  %177 = load i32, ptr %25, align 4, !tbaa !5
  %178 = load i32, ptr %17, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  %180 = icmp eq i32 %177, %179
  br i1 %180, label %181, label %194

181:                                              ; preds = %176
  %182 = load i32, ptr %17, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %183
  %185 = load i32, ptr %18, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %186) #6
  %188 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %187)
          to label %189 unwind label %190

189:                                              ; preds = %181
  br label %224

190:                                              ; preds = %228, %181
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %4, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %5, align 4
  br label %301

194:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #6
  invoke void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %195 unwind label %205

195:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #6
  %196 = load i32, ptr @N, align 4, !tbaa !5
  invoke void @_Z6makeIdi(ptr dead_on_unwind writable sret(%"class.std::vector.3") align 8 %29, i32 noundef %196)
          to label %197 unwind label %209

197:                                              ; preds = %195
  %198 = load i32, ptr %25, align 4, !tbaa !5
  %199 = sub nsw i32 %198, 1
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %200
  invoke void @_ZplSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EERKS5_(ptr dead_on_unwind writable sret(%"class.std::vector.3") align 8 %28, ptr noundef %29, ptr noundef nonnull align 8 dereferenceable(24) %201)
          to label %202 unwind label %213

202:                                              ; preds = %197
  invoke void @_ZmlSt6vectorI4mintILi1000000007ELi5EESaIS1_EERKS_IS3_SaIS3_EE(ptr dead_on_unwind writable sret(%"class.std::vector.7") align 8 %26, ptr noundef %27, ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %203 unwind label %217

203:                                              ; preds = %202
  %204 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #6
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  br label %224

205:                                              ; preds = %194
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %4, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %5, align 4
  br label %223

209:                                              ; preds = %195
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %4, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %5, align 4
  br label %222

213:                                              ; preds = %197
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %4, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %5, align 4
  br label %221

217:                                              ; preds = %202
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %4, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %5, align 4
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  br label %221

221:                                              ; preds = %217, %213
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  br label %222

222:                                              ; preds = %221, %209
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #6
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  br label %223

223:                                              ; preds = %222, %205
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  br label %301

224:                                              ; preds = %203, %189
  %225 = load i32, ptr %25, align 4, !tbaa !5
  %226 = load i32, ptr %19, align 4, !tbaa !5
  %227 = icmp eq i32 %225, %226
  br i1 %227, label %228, label %234

228:                                              ; preds = %224
  %229 = load i32, ptr %20, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %230) #6
  %232 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4mintILi1000000007ELi5EEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %231)
          to label %233 unwind label %190

233:                                              ; preds = %228
  br label %234

234:                                              ; preds = %233, %224
  %235 = load i32, ptr %25, align 4, !tbaa !5
  %236 = load i32, ptr %19, align 4, !tbaa !5
  %237 = add nsw i32 %236, 2
  %238 = icmp sge i32 %235, %237
  br i1 %238, label %239, label %269

239:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #6
  invoke void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %240 unwind label %250

240:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #6
  %241 = load i32, ptr @N, align 4, !tbaa !5
  invoke void @_Z6makeIdi(ptr dead_on_unwind writable sret(%"class.std::vector.3") align 8 %33, i32 noundef %241)
          to label %242 unwind label %254

242:                                              ; preds = %240
  %243 = load i32, ptr %25, align 4, !tbaa !5
  %244 = sub nsw i32 %243, 1
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %245
  invoke void @_ZplSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EERKS5_(ptr dead_on_unwind writable sret(%"class.std::vector.3") align 8 %32, ptr noundef %33, ptr noundef nonnull align 8 dereferenceable(24) %246)
          to label %247 unwind label %258

247:                                              ; preds = %242
  invoke void @_ZmlSt6vectorI4mintILi1000000007ELi5EESaIS1_EERKS_IS3_SaIS3_EE(ptr dead_on_unwind writable sret(%"class.std::vector.7") align 8 %30, ptr noundef %31, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %248 unwind label %262

248:                                              ; preds = %247
  %249 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  br label %269

250:                                              ; preds = %239
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %4, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %5, align 4
  br label %268

254:                                              ; preds = %240
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %4, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %5, align 4
  br label %267

258:                                              ; preds = %242
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %4, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %5, align 4
  br label %266

262:                                              ; preds = %247
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %4, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %5, align 4
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  br label %266

266:                                              ; preds = %262, %258
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  br label %267

267:                                              ; preds = %266, %254
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  br label %268

268:                                              ; preds = %267, %250
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  br label %301

269:                                              ; preds = %248, %234
  %270 = load i32, ptr %25, align 4, !tbaa !5
  %271 = load i32, ptr %19, align 4, !tbaa !5
  %272 = add nsw i32 %271, 1
  %273 = icmp sge i32 %270, %272
  br i1 %273, label %274, label %297

274:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %275

275:                                              ; preds = %289, %274
  %276 = load i32, ptr %34, align 4, !tbaa !5
  %277 = load i32, ptr @N, align 4, !tbaa !5
  %278 = icmp slt i32 %276, %277
  br i1 %278, label %280, label %279

279:                                              ; preds = %275
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %296

280:                                              ; preds = %275
  %281 = load i32, ptr %34, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %282) #6
  %284 = load i32, ptr %34, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %285) #6
  %287 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4mintILi1000000007ELi5EEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %286, ptr noundef nonnull align 4 dereferenceable(4) %283)
          to label %288 unwind label %292

288:                                              ; preds = %280
  br label %289

289:                                              ; preds = %288
  %290 = load i32, ptr %34, align 4, !tbaa !5
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %34, align 4, !tbaa !5
  br label %275, !llvm.loop !15

292:                                              ; preds = %280
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %4, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %301

296:                                              ; preds = %279
  br label %297

297:                                              ; preds = %296, %269
  br label %298

298:                                              ; preds = %297
  %299 = load i32, ptr %25, align 4, !tbaa !5
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %25, align 4, !tbaa !5
  br label %167, !llvm.loop !16

301:                                              ; preds = %292, %268, %223, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %331

302:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #6
  invoke void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %303 unwind label %318

303:                                              ; preds = %302
  %304 = load i32, ptr %19, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %305
  invoke void @_ZmlSt6vectorI4mintILi1000000007ELi5EESaIS1_EERKS_IS3_SaIS3_EE(ptr dead_on_unwind writable sret(%"class.std::vector.7") align 8 %35, ptr noundef %36, ptr noundef nonnull align 8 dereferenceable(24) %306)
          to label %307 unwind label %322

307:                                              ; preds = %303
  %308 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %35) #6
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #6
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #6
  %309 = load i32, ptr %20, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %310) #6
  %312 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4mintILi1000000007ELi5EEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %311)
          to label %313 unwind label %327

313:                                              ; preds = %307
  invoke void @_Z2psI4mintILi1000000007ELi5EEJEEvRKT_DpRKT0_(ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %314 unwind label %327

314:                                              ; preds = %313
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %315

315:                                              ; preds = %314
  %316 = load i32, ptr %16, align 4, !tbaa !5
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %16, align 4, !tbaa !5
  br label %133, !llvm.loop !17

318:                                              ; preds = %302
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %4, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %5, align 4
  br label %326

322:                                              ; preds = %303
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %4, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %5, align 4
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  br label %326

326:                                              ; preds = %322, %318
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #6
  br label %331

327:                                              ; preds = %313, %307
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %4, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %5, align 4
  br label %331

331:                                              ; preds = %327, %326, %301
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  br label %332

332:                                              ; preds = %331, %172
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %335

333:                                              ; preds = %137
  %334 = load i32, ptr %1, align 4
  ret i32 %334

335:                                              ; preds = %332, %131, %94, %55
  %336 = load ptr, ptr %4, align 8
  %337 = load i32, ptr %5, align 4
  %338 = insertvalue { ptr, i32 } poison, ptr %336, 0
  %339 = insertvalue { ptr, i32 } %338, i32 %337, 1
  resume { ptr, i32 } %339
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2psI4mintILi1000000007ELi5EEJEEvRKT_DpRKT0_(ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI4mintILi1000000007ELi5EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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


; 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.3" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<mint<1000000007, 5>>, std::allocator<std::vector<mint<1000000007, 5>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<mint<1000000007, 5>>, std::allocator<std::vector<mint<1000000007, 5>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<mint<1000000007, 5>>, std::allocator<std::vector<mint<1000000007, 5>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<mint<1000000007, 5>>, std::allocator<std::vector<mint<1000000007, 5>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<mint<1000000007, 5>, std::allocator<mint<1000000007, 5>>>::_Vector_impl" }
%"struct.std::_Vector_base<mint<1000000007, 5>, std::allocator<mint<1000000007, 5>>>::_Vector_impl" = type { %"struct.std::_Vector_base<mint<1000000007, 5>, std::allocator<mint<1000000007, 5>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mint<1000000007, 5>, std::allocator<mint<1000000007, 5>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%struct.mint = type { i32 }
%"class.std::allocator.9" = type { i8 }

@N = external dso_local global i32, align 4
@K = external dso_local global i32, align 4
@Q = external dso_local global i32, align 4
@adj = external dso_local global [60 x %"class.std::vector.3"], align 16
@.str.20 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2reINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEvRT_(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5setIONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaI4mintILi1000000007ELi5EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4mintILi1000000007ELi5EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7makeMatii(ptr dead_on_unwind noalias writable sret(%"class.std::vector.3") align 8, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6makeIdi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.3") align 8, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4mintILi1000000007ELi5EEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmlRKSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EES7_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.3") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZplSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EERKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.3") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmlSt6vectorI4mintILi1000000007ELi5EESaIS1_EERKS_IS3_SaIS3_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.7") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::allocator", align 1
  %3 = alloca %"class.std::vector.3", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %struct.mint, align 4
  %6 = alloca %"class.std::vector.3", align 8
  %7 = alloca %"class.std::vector.3", align 8
  %8 = alloca %"class.std::vector.3", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.mint, align 4
  %14 = alloca %"class.std::vector.7", align 8
  %15 = alloca %"class.std::vector.7", align 8
  %16 = alloca %"class.std::allocator.9", align 1
  %17 = alloca %"class.std::vector.7", align 8
  %18 = alloca %"class.std::vector.7", align 8
  %19 = alloca %"class.std::vector.3", align 8
  %20 = alloca %"class.std::vector.3", align 8
  %21 = alloca %"class.std::vector.7", align 8
  %22 = alloca %"class.std::vector.7", align 8
  %23 = alloca %"class.std::vector.3", align 8
  %24 = alloca %"class.std::vector.3", align 8
  %25 = alloca %"class.std::vector.7", align 8
  %26 = alloca %"class.std::vector.7", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.20, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %27 unwind label %35

27:                                               ; preds = %0
  invoke void @_Z5setIONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %1)
          to label %28 unwind label %37

28:                                               ; preds = %27
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #5
  call void @_Z2reIiJiiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) @N, ptr noundef nonnull align 4 dereferenceable(4) @K, ptr noundef nonnull align 4 dereferenceable(4) @Q)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  %29 = load i32, ptr @N, align 4, !tbaa !5
  call void @_Z7makeMatii(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.3") align 8 %3, i32 noundef %29, i32 noundef %29)
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) @adj, ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  %31 = load i32, ptr @N, align 4, !tbaa !5
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph72, label %.preheader67

.preheader67:                                     ; preds = %._crit_edge, %28
  %33 = load i32, ptr @K, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 1
  br i1 %34, label %.lr.ph74, label %.preheader66

35:                                               ; preds = %0
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %39

37:                                               ; preds = %27
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  br label %39

39:                                               ; preds = %37, %35
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #5
  br label %199

.lr.ph72:                                         ; preds = %28, %._crit_edge
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %._crit_edge ], [ 0, %28 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  invoke void @_Z2reINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEvRT_(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %.preheader68 unwind label %45

.preheader68:                                     ; preds = %.lr.ph72
  %40 = load i32, ptr @N, align 4, !tbaa !5
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.preheader68
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %42 = load i32, ptr @N, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = icmp slt i64 %indvars.iv.next89, %43
  br i1 %44, label %.lr.ph72, label %.preheader67, !llvm.loop !9

45:                                               ; preds = %.lr.ph72
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %199

.lr.ph:                                           ; preds = %.preheader68, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader68 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %47 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %indvars.iv)
  %48 = load i8, ptr %47, align 1, !tbaa !11
  %49 = sext i8 %48 to i64
  %50 = add nsw i64 %49, -48
  call void @_ZN4mintILi1000000007ELi5EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %5, i64 noundef %50)
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @adj, i64 noundef %indvars.iv88) #5
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %indvars.iv) #5
  %53 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %53, ptr %52, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %54 = load i32, ptr @N, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = icmp slt i64 %indvars.iv.next, %55
  br i1 %56, label %.lr.ph, label %._crit_edge, !llvm.loop !12

.preheader66:                                     ; preds = %62, %.preheader67
  %57 = load i32, ptr @Q, align 4, !tbaa !5
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.lr.ph84, label %._crit_edge85

.lr.ph74:                                         ; preds = %.preheader67, %62
  %indvars.iv91 = phi i64 [ %indvars.iv.next92, %62 ], [ 1, %.preheader67 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  %59 = add nsw i64 %indvars.iv91, -1
  %60 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %59
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %60)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  invoke void @_ZmlRKSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EES7_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.3") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 8 dereferenceable(24) %60)
          to label %61 unwind label %68

61:                                               ; preds = %.lr.ph74
  invoke void @_ZplSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EERKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.3") align 8 %6, ptr noundef nonnull %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %62 unwind label %70

62:                                               ; preds = %61
  %63 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %indvars.iv91
  %64 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %65 = load i32, ptr @K, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next92, %66
  br i1 %67, label %.lr.ph74, label %.preheader66, !llvm.loop !13

68:                                               ; preds = %.lr.ph74
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %72

70:                                               ; preds = %61
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %72

72:                                               ; preds = %70, %68
  %.pn62 = phi { ptr, i32 } [ %71, %70 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %199

._crit_edge85:                                    ; preds = %186, %.preheader66
  ret i32 0

.lr.ph84:                                         ; preds = %.preheader66, %186
  %.03083 = phi i32 [ %187, %186 ], [ 0, %.preheader66 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  call void @_Z2reIiJiiiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = add nsw i32 %73, -1
  store i32 %74, ptr %9, align 4, !tbaa !5
  %75 = load i32, ptr %11, align 4, !tbaa !5
  %76 = add nsw i32 %75, -1
  store i32 %76, ptr %11, align 4, !tbaa !5
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = add nsw i32 %77, -1
  store i32 %78, ptr %10, align 4, !tbaa !5
  %79 = load i32, ptr %12, align 4, !tbaa !5
  %80 = add nsw i32 %79, -1
  store i32 %80, ptr %12, align 4, !tbaa !5
  %81 = icmp sgt i32 %73, %75
  br i1 %81, label %82, label %83

82:                                               ; preds = %.lr.ph84
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %11) #5
  %.pre = load i32, ptr %9, align 4, !tbaa !5
  %.pre104 = load i32, ptr %11, align 4, !tbaa !5
  %.pre105 = load i32, ptr %10, align 4
  %.pre106 = load i32, ptr %12, align 4
  br label %83

83:                                               ; preds = %82, %.lr.ph84
  %84 = phi i32 [ %.pre106, %82 ], [ %80, %.lr.ph84 ]
  %85 = phi i32 [ %.pre105, %82 ], [ %78, %.lr.ph84 ]
  %86 = phi i32 [ %.pre104, %82 ], [ %76, %.lr.ph84 ]
  %87 = phi i32 [ %.pre, %82 ], [ %74, %.lr.ph84 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  %88 = icmp eq i32 %87, %86
  %89 = icmp eq i32 %85, %84
  %90 = select i1 %88, i1 %89, i1 false
  %91 = zext i1 %90 to i64
  call void @_ZN4mintILi1000000007ELi5EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %13, i64 noundef %91)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #5
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #5
  %92 = load i32, ptr @N, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  call void @_ZNSaI4mintILi1000000007ELi5EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  invoke void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %93, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %94 unwind label %100

94:                                               ; preds = %83
  call void @_ZNSt15__new_allocatorI4mintILi1000000007ELi5EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  %95 = load i32, ptr %9, align 4, !tbaa !5
  %.02977 = add nsw i32 %95, 1
  %96 = load i32, ptr @K, align 4, !tbaa !5
  %97 = icmp slt i32 %.02977, %96
  br i1 %97, label %.lr.ph81.preheader, label %._crit_edge82

.lr.ph81.preheader:                               ; preds = %94
  %98 = sext i32 %95 to i64
  %99 = add nsw i64 %98, 1
  br label %.lr.ph81

._crit_edge82:                                    ; preds = %.loopexit, %94
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #5
  invoke void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %176 unwind label %190

100:                                              ; preds = %83
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI4mintILi1000000007ELi5EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  br label %198

.lr.ph81:                                         ; preds = %.lr.ph81.preheader, %.loopexit
  %indvars.iv99 = phi i64 [ %98, %.lr.ph81.preheader ], [ %indvars.iv.next100, %.loopexit ]
  %indvars.iv97 = phi i64 [ %99, %.lr.ph81.preheader ], [ %indvars.iv.next98, %.loopexit ]
  %102 = load i32, ptr %9, align 4, !tbaa !5
  %103 = trunc nsw i64 %indvars.iv99 to i32
  %104 = icmp eq i32 %102, %103
  br i1 %104, label %105, label %114

105:                                              ; preds = %.lr.ph81
  %106 = sext i32 %102 to i64
  %107 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %106
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %109) #5
  %111 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %110)
          to label %133 unwind label %112

112:                                              ; preds = %105
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %197

114:                                              ; preds = %.lr.ph81
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #5
  invoke void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %115 unwind label %122

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #5
  %116 = load i32, ptr @N, align 4, !tbaa !5
  invoke void @_Z6makeIdi(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.3") align 8 %20, i32 noundef %116)
          to label %117 unwind label %124

117:                                              ; preds = %115
  %118 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %indvars.iv99
  invoke void @_ZplSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EERKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.3") align 8 %19, ptr noundef nonnull %20, ptr noundef nonnull align 8 dereferenceable(24) %118)
          to label %119 unwind label %126

119:                                              ; preds = %117
  invoke void @_ZmlSt6vectorI4mintILi1000000007ELi5EESaIS1_EERKS_IS3_SaIS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.7") align 8 %17, ptr noundef nonnull %18, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %120 unwind label %128

120:                                              ; preds = %119
  %121 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #5
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #5
  br label %133

122:                                              ; preds = %114
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %132

124:                                              ; preds = %115
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %131

126:                                              ; preds = %117
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %130

128:                                              ; preds = %119
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  br label %130

130:                                              ; preds = %128, %126
  %.pn51 = phi { ptr, i32 } [ %129, %128 ], [ %127, %126 ]
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  br label %131

131:                                              ; preds = %130, %124
  %.pn51.pn = phi { ptr, i32 } [ %.pn51, %130 ], [ %125, %124 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #5
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  br label %132

132:                                              ; preds = %131, %122
  %.pn51.pn.pn = phi { ptr, i32 } [ %.pn51.pn, %131 ], [ %123, %122 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #5
  br label %197

133:                                              ; preds = %105, %120
  %134 = load i32, ptr %11, align 4, !tbaa !5
  %135 = trunc nsw i64 %indvars.iv97 to i32
  %136 = icmp eq i32 %134, %135
  br i1 %136, label %137, label %142

137:                                              ; preds = %133
  %138 = load i32, ptr %12, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %139) #5
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4mintILi1000000007ELi5EEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %140)
  %.pre107 = load i32, ptr %11, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %137, %133
  %143 = phi i32 [ %.pre107, %137 ], [ %134, %133 ]
  %144 = sext i32 %143 to i64
  %.not.not = icmp sgt i64 %indvars.iv99, %144
  br i1 %.not.not, label %145, label %164

145:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #5
  invoke void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %146 unwind label %153

146:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #5
  %147 = load i32, ptr @N, align 4, !tbaa !5
  invoke void @_Z6makeIdi(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.3") align 8 %24, i32 noundef %147)
          to label %148 unwind label %155

148:                                              ; preds = %146
  %149 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %indvars.iv99
  invoke void @_ZplSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EERKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.3") align 8 %23, ptr noundef nonnull %24, ptr noundef nonnull align 8 dereferenceable(24) %149)
          to label %150 unwind label %157

150:                                              ; preds = %148
  invoke void @_ZmlSt6vectorI4mintILi1000000007ELi5EESaIS1_EERKS_IS3_SaIS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.7") align 8 %21, ptr noundef nonnull %22, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %151 unwind label %159

151:                                              ; preds = %150
  %152 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #5
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #5
  %.pre108 = load i32, ptr %11, align 4, !tbaa !5
  %.pre109 = sext i32 %.pre108 to i64
  br label %164

153:                                              ; preds = %145
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %163

155:                                              ; preds = %146
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %162

157:                                              ; preds = %148
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %161

159:                                              ; preds = %150
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  br label %161

161:                                              ; preds = %159, %157
  %.pn55 = phi { ptr, i32 } [ %160, %159 ], [ %158, %157 ]
  call void @_ZNSt6vectorIS_I4mintILi1000000007ELi5EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  br label %162

162:                                              ; preds = %161, %155
  %.pn55.pn = phi { ptr, i32 } [ %.pn55, %161 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #5
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  br label %163

163:                                              ; preds = %162, %153
  %.pn55.pn.pn = phi { ptr, i32 } [ %.pn55.pn, %162 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #5
  br label %197

164:                                              ; preds = %151, %142
  %.pre-phi = phi i64 [ %.pre109, %151 ], [ %144, %142 ]
  %.not = icmp sge i64 %indvars.iv99, %.pre-phi
  %165 = load i32, ptr @N, align 4
  %166 = icmp sgt i32 %165, 0
  %or.cond = select i1 %.not, i1 %166, i1 false
  br i1 %or.cond, label %.lr.ph76, label %.loopexit

.lr.ph76:                                         ; preds = %164, %.lr.ph76
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %.lr.ph76 ], [ 0, %164 ]
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv94) #5
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %indvars.iv94) #5
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4mintILi1000000007ELi5EEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %168, ptr noundef nonnull align 4 dereferenceable(4) %167)
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %170 = load i32, ptr @N, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = icmp slt i64 %indvars.iv.next95, %171
  br i1 %172, label %.lr.ph76, label %.loopexit, !llvm.loop !14

.loopexit:                                        ; preds = %.lr.ph76, %164
  %indvars.iv.next98 = add nsw i64 %indvars.iv97, 1
  %173 = load i32, ptr @K, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = icmp slt i64 %indvars.iv.next98, %174
  %indvars.iv.next100 = add nsw i64 %indvars.iv99, 1
  br i1 %175, label %.lr.ph81, label %._crit_edge82, !llvm.loop !15

176:                                              ; preds = %._crit_edge82
  %177 = load i32, ptr %11, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [60 x %"class.std::vector.3"], ptr @adj, i64 0, i64 %178
  invoke void @_ZmlSt6vectorI4mintILi1000000007ELi5EESaIS1_EERKS_IS3_SaIS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.7") align 8 %25, ptr noundef nonnull %26, ptr noundef nonnull align 8 dereferenceable(24) %179)
          to label %180 unwind label %192

180:                                              ; preds = %176
  %181 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #5
  %182 = load i32, ptr %12, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %183) #5
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4mintILi1000000007ELi5EEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %184)
  invoke void @_Z2psI4mintILi1000000007ELi5EEJEEvRKT_DpRKT0_(ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %186 unwind label %195

186:                                              ; preds = %180
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  %187 = add nuw nsw i32 %.03083, 1
  %188 = load i32, ptr @Q, align 4, !tbaa !5
  %189 = icmp slt i32 %187, %188
  br i1 %189, label %.lr.ph84, label %._crit_edge85, !llvm.loop !16

190:                                              ; preds = %._crit_edge82
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %194

192:                                              ; preds = %176
  %193 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  br label %194

194:                                              ; preds = %192, %190
  %.pn49 = phi { ptr, i32 } [ %193, %192 ], [ %191, %190 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #5
  br label %197

195:                                              ; preds = %180
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %197

197:                                              ; preds = %112, %132, %163, %195, %194
  %.pn55.pn.pn.pn.pn = phi { ptr, i32 } [ %196, %195 ], [ %.pn49, %194 ], [ %.pn55.pn.pn, %163 ], [ %113, %112 ], [ %.pn51.pn.pn, %132 ]
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br label %198

198:                                              ; preds = %197, %100
  %.pn55.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn55.pn.pn.pn.pn, %197 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  call void @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  br label %199

199:                                              ; preds = %198, %72, %45, %39
  %.pn64 = phi { ptr, i32 } [ %46, %45 ], [ %.pn62, %72 ], [ %.pn55.pn.pn.pn.pn.pn, %198 ], [ %.pn, %39 ]
  resume { ptr, i32 } %.pn64
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4mintILi1000000007ELi5EESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2psI4mintILi1000000007ELi5EEJEEvRKT_DpRKT0_(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI4mintILi1000000007ELi5EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass