; LLVM IR from abeaumont/competitive-programming :: codechef/april21a (pairflip)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.14" = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.10" = type { i32, i32 }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<graph, std::allocator<graph>>::_Vector_impl" }
%"struct.std::_Vector_base<graph, std::allocator<graph>>::_Vector_impl" = type { %"struct.std::_Vector_base<graph, std::allocator<graph>>::_Vector_impl_data" }
%"struct.std::_Vector_base<graph, std::allocator<graph>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.27" = type { i8 }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.30", %"struct.std::_Head_base.31" }
%"struct.std::_Tuple_impl.30" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { ptr }
%"struct.std::_Head_base.31" = type { ptr }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<op, std::allocator<op>>::_Vector_impl" }
%"struct.std::_Vector_base<op, std::allocator<op>>::_Vector_impl" = type { %"struct.std::_Vector_base<op, std::allocator<op>>::_Vector_impl_data" }
%"struct.std::_Vector_base<op, std::allocator<op>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::pair.42" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.44" = type { ptr }
%"struct.std::pair" = type { %"struct.std::pair.10", %"struct.std::pair.10" }
%struct.op = type { i8, i32, i32, i32 }
%"class.__gnu_cxx::__normal_iterator.45" = type { ptr }
%struct.graph = type { i32, %"class.std::vector", %"class.std::vector.0" }

@g = external dso_local global %"class.std::vector", align 8
@h = external dso_local global %"class.std::vector", align 8
@visited = external dso_local global %"class.std::vector.0", align 8
@cc = external dso_local global i32, align 4
@sols = external dso_local global %"class.std::vector.5", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [97 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4dfs2i(i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 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 i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector.12", align 8
  %7 = alloca %"class.std::allocator.14", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.12", align 8
  %11 = alloca %"class.std::allocator.14", align 1
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector.17", 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.std::pair.10", align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::vector.0", align 8
  %25 = alloca %"class.std::allocator.2", align 1
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::vector.0", align 8
  %28 = alloca %"class.std::allocator.2", align 1
  %29 = alloca %"class.std::vector.25", align 8
  %30 = alloca %"class.std::allocator.27", align 1
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca %"class.std::tuple", align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca %"class.std::vector.0", align 8
  %44 = alloca %"class.std::allocator.2", align 1
  %45 = alloca %"class.std::vector.17", align 8
  %46 = alloca %"class.std::vector.32", align 8
  %47 = alloca i32, align 4
  %48 = alloca %"class.std::unordered_set", align 8
  %49 = alloca i32, align 4
  %50 = alloca %"struct.std::pair.42", align 8
  %51 = alloca i32, align 4
  %52 = alloca %"struct.std::pair.42", align 8
  %53 = alloca %"struct.std::pair.42", align 8
  %54 = alloca %"class.std::vector", align 8
  %55 = alloca %"class.std::allocator", align 1
  %56 = alloca %"class.std::vector.0", align 8
  %57 = alloca %"class.std::allocator.2", align 1
  %58 = alloca ptr, align 8
  %59 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %60 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %61 = alloca i32, align 4
  %62 = alloca ptr, align 8
  %63 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %64 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %65 = alloca i32, align 4
  %66 = alloca i32, align 4
  %67 = alloca %"struct.std::pair.10", align 4
  %68 = alloca ptr, align 8
  %69 = alloca %"class.__gnu_cxx::__normal_iterator.44", align 8
  %70 = alloca %"class.__gnu_cxx::__normal_iterator.44", align 8
  %71 = alloca %"struct.std::pair", align 4
  %72 = alloca %"struct.std::pair.10", align 4
  %73 = alloca %"struct.std::pair.10", align 4
  %74 = alloca i32, align 4
  %75 = alloca i32, align 4
  %76 = alloca i32, align 4
  %77 = alloca %struct.op, align 4
  %78 = alloca i32, align 4
  %79 = alloca %"struct.std::pair.10", align 4
  %80 = alloca %"struct.std::pair.10", align 4
  %81 = alloca %struct.op, align 4
  %82 = alloca %struct.op, align 4
  %83 = alloca %"struct.std::pair.10", align 4
  %84 = alloca %"struct.std::pair.10", align 4
  %85 = alloca %struct.op, align 4
  %86 = alloca %struct.op, align 4
  %87 = alloca ptr, align 8
  %88 = alloca %"class.__gnu_cxx::__normal_iterator.45", align 8
  %89 = alloca %"class.__gnu_cxx::__normal_iterator.45", align 8
  %90 = alloca %struct.op, align 4
  store i32 0, ptr %1, align 4
  %91 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %92 = getelementptr i8, ptr %91, i64 -24
  %93 = load i64, ptr %92, align 8
  %94 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %93
  %95 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %94, ptr noundef null)
  %96 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  %97 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %98

98:                                               ; preds = %1180, %1178, %0
  %99 = load i32, ptr %2, align 4, !tbaa !8
  %100 = add nsw i32 %99, -1
  store i32 %100, ptr %2, align 4, !tbaa !8
  %101 = icmp ne i32 %99, 0
  br i1 %101, label %102, label %1190

102:                                              ; preds = %98
  %103 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %104 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %103, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %105 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %104, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #9
  %106 = load i32, ptr %3, align 4, !tbaa !8
  %107 = sext i32 %106 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #9
  call void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %107, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %108 unwind label %123

108:                                              ; preds = %102
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #9
  %109 = load i32, ptr %3, align 4, !tbaa !8
  %110 = sext i32 %109 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #9
  call void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %110, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %111 unwind label %127

111:                                              ; preds = %108
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #9
  %112 = load i32, ptr %3, align 4, !tbaa !8
  %113 = load i32, ptr %4, align 4, !tbaa !8
  %114 = add nsw i32 %112, %113
  %115 = sext i32 %114 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #9
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %115, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %116 unwind label %131

116:                                              ; preds = %111
  %117 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @g, ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #9
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !8
  br label %118

118:                                              ; preds = %141, %116
  %119 = load i32, ptr %16, align 4, !tbaa !8
  %120 = load i32, ptr %3, align 4, !tbaa !8
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %135, label %122

122:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %148

123:                                              ; preds = %102
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %8, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %9, align 4
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #9
  br label %1189

127:                                              ; preds = %108
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %8, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %9, align 4
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #9
  br label %1188

131:                                              ; preds = %111
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %8, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %9, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
  br label %1187

135:                                              ; preds = %118
  %136 = load i32, ptr %16, align 4, !tbaa !8
  %137 = sext i32 %136 to i64
  %138 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %137) #9
  %139 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %138)
          to label %140 unwind label %144

140:                                              ; preds = %135
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %16, align 4, !tbaa !8
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %16, align 4, !tbaa !8
  br label %118, !llvm.loop !11

144:                                              ; preds = %135
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %8, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %1186

148:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %149

149:                                              ; preds = %160, %148
  %150 = load i32, ptr %17, align 4, !tbaa !8
  %151 = load i32, ptr %3, align 4, !tbaa !8
  %152 = icmp slt i32 %150, %151
  br i1 %152, label %154, label %153

153:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %167

154:                                              ; preds = %149
  %155 = load i32, ptr %17, align 4, !tbaa !8
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %156) #9
  %158 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %157)
          to label %159 unwind label %163

159:                                              ; preds = %154
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %17, align 4, !tbaa !8
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %17, align 4, !tbaa !8
  br label %149, !llvm.loop !13

163:                                              ; preds = %154
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %8, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %1186

167:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !8
  br label %168

168:                                              ; preds = %251, %167
  %169 = load i32, ptr %18, align 4, !tbaa !8
  %170 = load i32, ptr %3, align 4, !tbaa !8
  %171 = icmp slt i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  store i32 10, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %254

173:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 0, ptr %20, align 4, !tbaa !8
  br label %174

174:                                              ; preds = %246, %173
  %175 = load i32, ptr %20, align 4, !tbaa !8
  %176 = load i32, ptr %4, align 4, !tbaa !8
  %177 = icmp slt i32 %175, %176
  br i1 %177, label %179, label %178

178:                                              ; preds = %174
  store i32 13, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %250

179:                                              ; preds = %174
  %180 = load i32, ptr %18, align 4, !tbaa !8
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %181) #9
  %183 = load i32, ptr %20, align 4, !tbaa !8
  %184 = sext i32 %183 to i64
  %185 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %182, i64 noundef %184)
          to label %186 unwind label %196

186:                                              ; preds = %179
  %187 = load i8, ptr %185, align 1, !tbaa !14
  %188 = sext i8 %187 to i32
  %189 = icmp eq i32 %188, 63
  br i1 %189, label %190, label %204

190:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  %191 = load i32, ptr %3, align 4, !tbaa !8
  %192 = load i32, ptr %20, align 4, !tbaa !8
  %193 = add nsw i32 %191, %192
  store i32 %193, ptr %22, align 4, !tbaa !8
  invoke void @_ZNSt4pairIiiEC2IRiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %194 unwind label %200

194:                                              ; preds = %190
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(8) %21)
          to label %195 unwind label %200

195:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %245

196:                                              ; preds = %211, %204, %179
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %8, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %9, align 4
  br label %249

200:                                              ; preds = %194, %190
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %8, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %249

204:                                              ; preds = %186
  %205 = load i32, ptr %18, align 4, !tbaa !8
  %206 = sext i32 %205 to i64
  %207 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %206) #9
  %208 = load i32, ptr %20, align 4, !tbaa !8
  %209 = sext i32 %208 to i64
  %210 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %207, i64 noundef %209)
          to label %211 unwind label %196

211:                                              ; preds = %204
  %212 = load i8, ptr %210, align 1, !tbaa !14
  %213 = sext i8 %212 to i32
  %214 = load i32, ptr %18, align 4, !tbaa !8
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %215) #9
  %217 = load i32, ptr %20, align 4, !tbaa !8
  %218 = sext i32 %217 to i64
  %219 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %216, i64 noundef %218)
          to label %220 unwind label %196

220:                                              ; preds = %211
  %221 = load i8, ptr %219, align 1, !tbaa !14
  %222 = sext i8 %221 to i32
  %223 = icmp ne i32 %213, %222
  br i1 %223, label %224, label %244

224:                                              ; preds = %220
  %225 = load i32, ptr %14, align 4, !tbaa !8
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %14, align 4, !tbaa !8
  %227 = load i32, ptr %18, align 4, !tbaa !8
  %228 = sext i32 %227 to i64
  %229 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @g, i64 noundef %228) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  %230 = load i32, ptr %3, align 4, !tbaa !8
  %231 = load i32, ptr %20, align 4, !tbaa !8
  %232 = add nsw i32 %230, %231
  store i32 %232, ptr %23, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %229, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %233 unwind label %240

233:                                              ; preds = %224
  %234 = load i32, ptr %3, align 4, !tbaa !8
  %235 = load i32, ptr %20, align 4, !tbaa !8
  %236 = add nsw i32 %234, %235
  %237 = sext i32 %236 to i64
  %238 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @g, i64 noundef %237) #9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %238, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %239 unwind label %240

239:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %244

240:                                              ; preds = %233, %224
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %8, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %249

244:                                              ; preds = %239, %220
  br label %245

245:                                              ; preds = %244, %195
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %20, align 4, !tbaa !8
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %20, align 4, !tbaa !8
  br label %174, !llvm.loop !15

249:                                              ; preds = %240, %200, %196
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %1186

250:                                              ; preds = %178
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %18, align 4, !tbaa !8
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %18, align 4, !tbaa !8
  br label %168, !llvm.loop !16

254:                                              ; preds = %172
  %255 = load i32, ptr %14, align 4, !tbaa !8
  %256 = srem i32 %255, 2
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %267

258:                                              ; preds = %254
  %259 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIiiESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  br i1 %259, label %260, label %267

260:                                              ; preds = %258
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %262 unwind label %263

262:                                              ; preds = %260
  store i32 2, ptr %19, align 4
  br label %1178, !llvm.loop !17

263:                                              ; preds = %260
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %8, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %9, align 4
  br label %1186

267:                                              ; preds = %258, %254
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #9
  %268 = load i32, ptr %3, align 4, !tbaa !8
  %269 = load i32, ptr %4, align 4, !tbaa !8
  %270 = add nsw i32 %268, %269
  %271 = sext i32 %270 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #9
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #9
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %271, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %272 unwind label %281

272:                                              ; preds = %267
  %273 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @visited, ptr noundef nonnull align 8 dereferenceable(24) %24) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #9
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #9
  store i32 0, ptr @cc, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 0, ptr %26, align 4, !tbaa !8
  br label %274

274:                                              ; preds = %301, %272
  %275 = load i32, ptr %26, align 4, !tbaa !8
  %276 = load i32, ptr %3, align 4, !tbaa !8
  %277 = load i32, ptr %4, align 4, !tbaa !8
  %278 = add nsw i32 %276, %277
  %279 = icmp slt i32 %275, %278
  br i1 %279, label %285, label %280

280:                                              ; preds = %274
  store i32 16, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %304

281:                                              ; preds = %267
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %8, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #9
  br label %1186

285:                                              ; preds = %274
  %286 = load i32, ptr %26, align 4, !tbaa !8
  %287 = sext i32 %286 to i64
  %288 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @visited, i64 noundef %287) #9
  %289 = load i32, ptr %288, align 4, !tbaa !8
  %290 = icmp ne i32 %289, 0
  br i1 %290, label %300, label %291

291:                                              ; preds = %285
  %292 = load i32, ptr @cc, align 4, !tbaa !8
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr @cc, align 4, !tbaa !8
  %294 = load i32, ptr %26, align 4, !tbaa !8
  invoke void @_Z3dfsi(i32 noundef %294)
          to label %295 unwind label %296

295:                                              ; preds = %291
  br label %300

296:                                              ; preds = %291
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %8, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %1186

300:                                              ; preds = %295, %285
  br label %301

301:                                              ; preds = %300
  %302 = load i32, ptr %26, align 4, !tbaa !8
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %26, align 4, !tbaa !8
  br label %274, !llvm.loop !18

304:                                              ; preds = %280
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #9
  %305 = load i32, ptr @cc, align 4, !tbaa !8
  %306 = sext i32 %305 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #9
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #9
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %306, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %307 unwind label %318

307:                                              ; preds = %304
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #9
  %308 = load i32, ptr @cc, align 4, !tbaa !8
  %309 = sext i32 %308 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #9
  call void @_ZNSaI5graphEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  invoke void @_ZNSt6vectorI5graphSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %309, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %310 unwind label %322

310:                                              ; preds = %307
  call void @_ZNSt15__new_allocatorI5graphED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  store i32 0, ptr %31, align 4, !tbaa !8
  br label %311

311:                                              ; preds = %351, %310
  %312 = load i32, ptr %31, align 4, !tbaa !8
  %313 = load i32, ptr %3, align 4, !tbaa !8
  %314 = load i32, ptr %4, align 4, !tbaa !8
  %315 = add nsw i32 %313, %314
  %316 = icmp slt i32 %312, %315
  br i1 %316, label %326, label %317

317:                                              ; preds = %311
  store i32 19, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %358

318:                                              ; preds = %304
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %8, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #9
  br label %1185

322:                                              ; preds = %307
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %8, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %9, align 4
  call void @_ZNSt15__new_allocatorI5graphED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #9
  br label %1184

326:                                              ; preds = %311
  %327 = load i32, ptr %31, align 4, !tbaa !8
  %328 = sext i32 %327 to i64
  %329 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @g, i64 noundef %328) #9
  %330 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %329) #9
  %331 = load i32, ptr %31, align 4, !tbaa !8
  %332 = sext i32 %331 to i64
  %333 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @visited, i64 noundef %332) #9
  %334 = load i32, ptr %333, align 4, !tbaa !8
  %335 = sub nsw i32 %334, 1
  %336 = sext i32 %335 to i64
  %337 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %336) #9
  %338 = load i32, ptr %337, align 4, !tbaa !8
  %339 = sext i32 %338 to i64
  %340 = add i64 %339, %330
  %341 = trunc i64 %340 to i32
  store i32 %341, ptr %337, align 4, !tbaa !8
  %342 = load i32, ptr %31, align 4, !tbaa !8
  %343 = sext i32 %342 to i64
  %344 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @visited, i64 noundef %343) #9
  %345 = load i32, ptr %344, align 4, !tbaa !8
  %346 = sub nsw i32 %345, 1
  %347 = sext i32 %346 to i64
  %348 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %347) #9
  %349 = getelementptr inbounds %struct.graph, ptr %348, i32 0, i32 2
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %349, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %350 unwind label %354

350:                                              ; preds = %326
  br label %351

351:                                              ; preds = %350
  %352 = load i32, ptr %31, align 4, !tbaa !8
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr %31, align 4, !tbaa !8
  br label %311, !llvm.loop !19

354:                                              ; preds = %326
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %8, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %1183

358:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  store i32 0, ptr %32, align 4, !tbaa !8
  br label %359

359:                                              ; preds = %370, %358
  %360 = load i32, ptr %32, align 4, !tbaa !8
  %361 = load i32, ptr @cc, align 4, !tbaa !8
  %362 = icmp slt i32 %360, %361
  br i1 %362, label %364, label %363

363:                                              ; preds = %359
  store i32 22, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  br label %373

364:                                              ; preds = %359
  %365 = load i32, ptr %32, align 4, !tbaa !8
  %366 = sext i32 %365 to i64
  %367 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %366) #9
  %368 = load i32, ptr %367, align 4, !tbaa !8
  %369 = sdiv i32 %368, 2
  store i32 %369, ptr %367, align 4, !tbaa !8
  br label %370

370:                                              ; preds = %364
  %371 = load i32, ptr %32, align 4, !tbaa !8
  %372 = add nsw i32 %371, 1
  store i32 %372, ptr %32, align 4, !tbaa !8
  br label %359, !llvm.loop !20

373:                                              ; preds = %363
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  store i32 0, ptr %33, align 4, !tbaa !8
  br label %374

374:                                              ; preds = %449, %373
  %375 = load i32, ptr %33, align 4, !tbaa !8
  %376 = sext i32 %375 to i64
  %377 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  %378 = icmp ult i64 %376, %377
  br i1 %378, label %380, label %379

379:                                              ; preds = %374
  store i32 25, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %453

380:                                              ; preds = %374
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  %381 = load i32, ptr %33, align 4, !tbaa !8
  %382 = sext i32 %381 to i64
  %383 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %382) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #9
  call void @_ZSt3tieIJiiEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 8 %36, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35) #9
  %384 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRiS0_EEaSIiiEENSt9enable_ifIXcl12__assignableIRKT_RKT0_EEERS1_E4typeERKSt4pairIS4_S7_E(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(8) %383) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  %385 = load i32, ptr %34, align 4, !tbaa !8
  %386 = sext i32 %385 to i64
  %387 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @visited, i64 noundef %386) #9
  %388 = load i32, ptr %387, align 4, !tbaa !8
  %389 = sub nsw i32 %388, 1
  store i32 %389, ptr %37, align 4, !tbaa !8
  %390 = load i32, ptr %37, align 4, !tbaa !8
  %391 = sext i32 %390 to i64
  %392 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %391) #9
  %393 = load i32, ptr %392, align 4, !tbaa !8
  %394 = srem i32 %393, 2
  %395 = icmp ne i32 %394, 0
  br i1 %395, label %396, label %416

396:                                              ; preds = %380
  %397 = load i32, ptr %37, align 4, !tbaa !8
  %398 = sext i32 %397 to i64
  %399 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %398) #9
  %400 = getelementptr inbounds %struct.graph, ptr %399, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  %401 = load i32, ptr %3, align 4, !tbaa !8
  %402 = load i32, ptr %4, align 4, !tbaa !8
  %403 = add nsw i32 %401, %402
  %404 = load i32, ptr %33, align 4, !tbaa !8
  %405 = add nsw i32 %403, %404
  store i32 %405, ptr %38, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %400, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %406 unwind label %412

406:                                              ; preds = %396
  %407 = load i32, ptr %37, align 4, !tbaa !8
  %408 = sext i32 %407 to i64
  %409 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %408) #9
  %410 = load i32, ptr %409, align 4, !tbaa !8
  %411 = add nsw i32 %410, 1
  store i32 %411, ptr %409, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %416

412:                                              ; preds = %396
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %8, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %452

416:                                              ; preds = %406, %380
  %417 = load i32, ptr %35, align 4, !tbaa !8
  %418 = sext i32 %417 to i64
  %419 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @visited, i64 noundef %418) #9
  %420 = load i32, ptr %419, align 4, !tbaa !8
  %421 = sub nsw i32 %420, 1
  store i32 %421, ptr %37, align 4, !tbaa !8
  %422 = load i32, ptr %37, align 4, !tbaa !8
  %423 = sext i32 %422 to i64
  %424 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %423) #9
  %425 = load i32, ptr %424, align 4, !tbaa !8
  %426 = srem i32 %425, 2
  %427 = icmp ne i32 %426, 0
  br i1 %427, label %428, label %448

428:                                              ; preds = %416
  %429 = load i32, ptr %37, align 4, !tbaa !8
  %430 = sext i32 %429 to i64
  %431 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %430) #9
  %432 = getelementptr inbounds %struct.graph, ptr %431, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  %433 = load i32, ptr %3, align 4, !tbaa !8
  %434 = load i32, ptr %4, align 4, !tbaa !8
  %435 = add nsw i32 %433, %434
  %436 = load i32, ptr %33, align 4, !tbaa !8
  %437 = add nsw i32 %435, %436
  store i32 %437, ptr %39, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %432, ptr noundef nonnull align 4 dereferenceable(4) %39)
          to label %438 unwind label %444

438:                                              ; preds = %428
  %439 = load i32, ptr %37, align 4, !tbaa !8
  %440 = sext i32 %439 to i64
  %441 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %440) #9
  %442 = load i32, ptr %441, align 4, !tbaa !8
  %443 = add nsw i32 %442, 1
  store i32 %443, ptr %441, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %448

444:                                              ; preds = %428
  %445 = landingpad { ptr, i32 }
          cleanup
  %446 = extractvalue { ptr, i32 } %445, 0
  store ptr %446, ptr %8, align 8
  %447 = extractvalue { ptr, i32 } %445, 1
  store i32 %447, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %452

448:                                              ; preds = %438, %416
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  br label %449

449:                                              ; preds = %448
  %450 = load i32, ptr %33, align 4, !tbaa !8
  %451 = add nsw i32 %450, 1
  store i32 %451, ptr %33, align 4, !tbaa !8
  br label %374, !llvm.loop !21

452:                                              ; preds = %444, %412
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %1183

453:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  store i32 0, ptr %40, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  store i32 0, ptr %41, align 4, !tbaa !8
  br label %454

454:                                              ; preds = %467, %453
  %455 = load i32, ptr %41, align 4, !tbaa !8
  %456 = load i32, ptr @cc, align 4, !tbaa !8
  %457 = icmp slt i32 %455, %456
  br i1 %457, label %459, label %458

458:                                              ; preds = %454
  store i32 28, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  br label %470

459:                                              ; preds = %454
  %460 = load i32, ptr %41, align 4, !tbaa !8
  %461 = sext i32 %460 to i64
  %462 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %461) #9
  %463 = load i32, ptr %462, align 4, !tbaa !8
  %464 = srem i32 %463, 2
  %465 = load i32, ptr %40, align 4, !tbaa !8
  %466 = add nsw i32 %465, %464
  store i32 %466, ptr %40, align 4, !tbaa !8
  br label %467

467:                                              ; preds = %459
  %468 = load i32, ptr %41, align 4, !tbaa !8
  %469 = add nsw i32 %468, 1
  store i32 %469, ptr %41, align 4, !tbaa !8
  br label %454, !llvm.loop !22

470:                                              ; preds = %458
  %471 = load i32, ptr %40, align 4, !tbaa !8
  %472 = srem i32 %471, 2
  %473 = icmp ne i32 %472, 0
  br i1 %473, label %474, label %507

474:                                              ; preds = %470
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #9
  store i32 0, ptr %42, align 4, !tbaa !8
  br label %475

475:                                              ; preds = %502, %474
  %476 = load i32, ptr %42, align 4, !tbaa !8
  %477 = load i32, ptr @cc, align 4, !tbaa !8
  %478 = icmp slt i32 %476, %477
  br i1 %478, label %480, label %479

479:                                              ; preds = %475
  store i32 31, ptr %19, align 4
  br label %505

480:                                              ; preds = %475
  %481 = load i32, ptr %42, align 4, !tbaa !8
  %482 = sext i32 %481 to i64
  %483 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %482) #9
  %484 = getelementptr inbounds %struct.graph, ptr %483, i32 0, i32 2
  %485 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %484) #9
  %486 = load i32, ptr %485, align 4, !tbaa !8
  %487 = load i32, ptr %3, align 4, !tbaa !8
  %488 = load i32, ptr %4, align 4, !tbaa !8
  %489 = add nsw i32 %487, %488
  %490 = icmp sge i32 %486, %489
  br i1 %490, label %491, label %501

491:                                              ; preds = %480
  %492 = load i32, ptr %42, align 4, !tbaa !8
  %493 = sext i32 %492 to i64
  %494 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %493) #9
  %495 = load i32, ptr %494, align 4, !tbaa !8
  %496 = add nsw i32 %495, -1
  store i32 %496, ptr %494, align 4, !tbaa !8
  %497 = load i32, ptr %42, align 4, !tbaa !8
  %498 = sext i32 %497 to i64
  %499 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %498) #9
  %500 = getelementptr inbounds %struct.graph, ptr %499, i32 0, i32 2
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %500) #9
  store i32 31, ptr %19, align 4
  br label %505

501:                                              ; preds = %480
  br label %502

502:                                              ; preds = %501
  %503 = load i32, ptr %42, align 4, !tbaa !8
  %504 = add nsw i32 %503, 1
  store i32 %504, ptr %42, align 4, !tbaa !8
  br label %475, !llvm.loop !23

505:                                              ; preds = %491, %479
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  br label %506

506:                                              ; preds = %505
  br label %507

507:                                              ; preds = %506, %470
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #9
  %508 = load i32, ptr %3, align 4, !tbaa !8
  %509 = load i32, ptr %4, align 4, !tbaa !8
  %510 = add nsw i32 %508, %509
  %511 = sext i32 %510 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #9
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #9
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %511, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %512 unwind label %518

512:                                              ; preds = %507
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %45) #9
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #9
  call void @_ZNSt6vectorI2opSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  store i32 0, ptr %47, align 4, !tbaa !8
  br label %513

513:                                              ; preds = %1002, %512
  %514 = load i32, ptr %47, align 4, !tbaa !8
  %515 = load i32, ptr @cc, align 4, !tbaa !8
  %516 = icmp slt i32 %514, %515
  br i1 %516, label %522, label %517

517:                                              ; preds = %513
  store i32 34, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  br label %1007

518:                                              ; preds = %507
  %519 = landingpad { ptr, i32 }
          cleanup
  %520 = extractvalue { ptr, i32 } %519, 0
  store ptr %520, ptr %8, align 8
  %521 = extractvalue { ptr, i32 } %519, 1
  store i32 %521, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #9
  br label %1182

522:                                              ; preds = %513
  call void @llvm.lifetime.start.p0(i64 56, ptr %48) #9
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %48) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #9
  store i32 0, ptr %49, align 4, !tbaa !8
  br label %523

523:                                              ; preds = %693, %522
  %524 = load i32, ptr %49, align 4, !tbaa !8
  %525 = sext i32 %524 to i64
  %526 = load i32, ptr %47, align 4, !tbaa !8
  %527 = sext i32 %526 to i64
  %528 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %527) #9
  %529 = getelementptr inbounds %struct.graph, ptr %528, i32 0, i32 2
  %530 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %529) #9
  %531 = icmp ult i64 %525, %530
  br i1 %531, label %533, label %532

532:                                              ; preds = %523
  store i32 37, ptr %19, align 4
  br label %696

533:                                              ; preds = %523
  %534 = load i32, ptr %47, align 4, !tbaa !8
  %535 = sext i32 %534 to i64
  %536 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %535) #9
  %537 = getelementptr inbounds %struct.graph, ptr %536, i32 0, i32 2
  %538 = load i32, ptr %49, align 4, !tbaa !8
  %539 = sext i32 %538 to i64
  %540 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %537, i64 noundef %539) #9
  %541 = load i32, ptr %540, align 4, !tbaa !8
  %542 = load i32, ptr %3, align 4, !tbaa !8
  %543 = load i32, ptr %4, align 4, !tbaa !8
  %544 = add nsw i32 %542, %543
  %545 = icmp slt i32 %541, %544
  br i1 %545, label %546, label %575

546:                                              ; preds = %533
  %547 = load i32, ptr %47, align 4, !tbaa !8
  %548 = sext i32 %547 to i64
  %549 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %548) #9
  %550 = getelementptr inbounds %struct.graph, ptr %549, i32 0, i32 2
  %551 = load i32, ptr %49, align 4, !tbaa !8
  %552 = sext i32 %551 to i64
  %553 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %550, i64 noundef %552) #9
  %554 = invoke { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 4 dereferenceable(4) %553)
          to label %555 unwind label %571

555:                                              ; preds = %546
  %556 = getelementptr inbounds { ptr, i8 }, ptr %50, i32 0, i32 0
  %557 = extractvalue { ptr, i8 } %554, 0
  store ptr %557, ptr %556, align 8
  %558 = getelementptr inbounds { ptr, i8 }, ptr %50, i32 0, i32 1
  %559 = extractvalue { ptr, i8 } %554, 1
  store i8 %559, ptr %558, align 8
  %560 = load i32, ptr %49, align 4, !tbaa !8
  %561 = load i32, ptr %47, align 4, !tbaa !8
  %562 = sext i32 %561 to i64
  %563 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %562) #9
  %564 = getelementptr inbounds %struct.graph, ptr %563, i32 0, i32 2
  %565 = load i32, ptr %49, align 4, !tbaa !8
  %566 = sext i32 %565 to i64
  %567 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %564, i64 noundef %566) #9
  %568 = load i32, ptr %567, align 4, !tbaa !8
  %569 = sext i32 %568 to i64
  %570 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %569) #9
  store i32 %560, ptr %570, align 4, !tbaa !8
  br label %692

571:                                              ; preds = %546
  %572 = landingpad { ptr, i32 }
          cleanup
  %573 = extractvalue { ptr, i32 } %572, 0
  store ptr %573, ptr %8, align 8
  %574 = extractvalue { ptr, i32 } %572, 1
  store i32 %574, ptr %9, align 4
  br label %697

575:                                              ; preds = %533
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #9
  %576 = load i32, ptr %47, align 4, !tbaa !8
  %577 = sext i32 %576 to i64
  %578 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %577) #9
  %579 = getelementptr inbounds %struct.graph, ptr %578, i32 0, i32 2
  %580 = load i32, ptr %49, align 4, !tbaa !8
  %581 = sext i32 %580 to i64
  %582 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %579, i64 noundef %581) #9
  %583 = load i32, ptr %582, align 4, !tbaa !8
  %584 = load i32, ptr %3, align 4, !tbaa !8
  %585 = sub nsw i32 %583, %584
  %586 = load i32, ptr %4, align 4, !tbaa !8
  %587 = sub nsw i32 %585, %586
  store i32 %587, ptr %51, align 4, !tbaa !8
  %588 = load i32, ptr %51, align 4, !tbaa !8
  %589 = sext i32 %588 to i64
  %590 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %589) #9
  %591 = getelementptr inbounds %"struct.std::pair.10", ptr %590, i32 0, i32 0
  %592 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 4 dereferenceable(4) %591)
          to label %593 unwind label %637

593:                                              ; preds = %575
  %594 = icmp ne i64 %592, 0
  br i1 %594, label %641, label %595

595:                                              ; preds = %593
  %596 = load i32, ptr %49, align 4, !tbaa !8
  %597 = load i32, ptr %51, align 4, !tbaa !8
  %598 = sext i32 %597 to i64
  %599 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %598) #9
  %600 = getelementptr inbounds %"struct.std::pair.10", ptr %599, i32 0, i32 0
  %601 = load i32, ptr %600, align 4, !tbaa !24
  %602 = sext i32 %601 to i64
  %603 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %602) #9
  store i32 %596, ptr %603, align 4, !tbaa !8
  %604 = load i32, ptr %47, align 4, !tbaa !8
  %605 = sext i32 %604 to i64
  %606 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %605) #9
  %607 = getelementptr inbounds %struct.graph, ptr %606, i32 0, i32 2
  %608 = load i32, ptr %51, align 4, !tbaa !8
  %609 = sext i32 %608 to i64
  %610 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %609) #9
  %611 = getelementptr inbounds %"struct.std::pair.10", ptr %610, i32 0, i32 0
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %607, ptr noundef nonnull align 4 dereferenceable(4) %611)
          to label %612 unwind label %637

612:                                              ; preds = %595
  %613 = load i32, ptr %47, align 4, !tbaa !8
  %614 = sext i32 %613 to i64
  %615 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %614) #9
  %616 = getelementptr inbounds %struct.graph, ptr %615, i32 0, i32 2
  %617 = load i32, ptr %49, align 4, !tbaa !8
  %618 = sext i32 %617 to i64
  %619 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %616, i64 noundef %618) #9
  %620 = load i32, ptr %47, align 4, !tbaa !8
  %621 = sext i32 %620 to i64
  %622 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %621) #9
  %623 = getelementptr inbounds %struct.graph, ptr %622, i32 0, i32 2
  %624 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %623) #9
  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) %619, ptr noundef nonnull align 4 dereferenceable(4) %624) #9
  %625 = load i32, ptr %51, align 4, !tbaa !8
  %626 = sext i32 %625 to i64
  %627 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %626) #9
  %628 = getelementptr inbounds %"struct.std::pair.10", ptr %627, i32 0, i32 0
  %629 = invoke { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 4 dereferenceable(4) %628)
          to label %630 unwind label %637

630:                                              ; preds = %612
  %631 = getelementptr inbounds { ptr, i8 }, ptr %52, i32 0, i32 0
  %632 = extractvalue { ptr, i8 } %629, 0
  store ptr %632, ptr %631, align 8
  %633 = getelementptr inbounds { ptr, i8 }, ptr %52, i32 0, i32 1
  %634 = extractvalue { ptr, i8 } %629, 1
  store i8 %634, ptr %633, align 8
  %635 = load i32, ptr %49, align 4, !tbaa !8
  %636 = add nsw i32 %635, 1
  store i32 %636, ptr %49, align 4, !tbaa !8
  br label %641

637:                                              ; preds = %666, %649, %641, %612, %595, %575
  %638 = landingpad { ptr, i32 }
          cleanup
  %639 = extractvalue { ptr, i32 } %638, 0
  store ptr %639, ptr %8, align 8
  %640 = extractvalue { ptr, i32 } %638, 1
  store i32 %640, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #9
  br label %697

641:                                              ; preds = %630, %593
  %642 = load i32, ptr %51, align 4, !tbaa !8
  %643 = sext i32 %642 to i64
  %644 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %643) #9
  %645 = getelementptr inbounds %"struct.std::pair.10", ptr %644, i32 0, i32 1
  %646 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 4 dereferenceable(4) %645)
          to label %647 unwind label %637

647:                                              ; preds = %641
  %648 = icmp ne i64 %646, 0
  br i1 %648, label %691, label %649

649:                                              ; preds = %647
  %650 = load i32, ptr %49, align 4, !tbaa !8
  %651 = load i32, ptr %51, align 4, !tbaa !8
  %652 = sext i32 %651 to i64
  %653 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %652) #9
  %654 = getelementptr inbounds %"struct.std::pair.10", ptr %653, i32 0, i32 1
  %655 = load i32, ptr %654, align 4, !tbaa !26
  %656 = sext i32 %655 to i64
  %657 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %656) #9
  store i32 %650, ptr %657, align 4, !tbaa !8
  %658 = load i32, ptr %47, align 4, !tbaa !8
  %659 = sext i32 %658 to i64
  %660 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %659) #9
  %661 = getelementptr inbounds %struct.graph, ptr %660, i32 0, i32 2
  %662 = load i32, ptr %51, align 4, !tbaa !8
  %663 = sext i32 %662 to i64
  %664 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %663) #9
  %665 = getelementptr inbounds %"struct.std::pair.10", ptr %664, i32 0, i32 1
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %661, ptr noundef nonnull align 4 dereferenceable(4) %665)
          to label %666 unwind label %637

666:                                              ; preds = %649
  %667 = load i32, ptr %47, align 4, !tbaa !8
  %668 = sext i32 %667 to i64
  %669 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %668) #9
  %670 = getelementptr inbounds %struct.graph, ptr %669, i32 0, i32 2
  %671 = load i32, ptr %49, align 4, !tbaa !8
  %672 = sext i32 %671 to i64
  %673 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %670, i64 noundef %672) #9
  %674 = load i32, ptr %47, align 4, !tbaa !8
  %675 = sext i32 %674 to i64
  %676 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %675) #9
  %677 = getelementptr inbounds %struct.graph, ptr %676, i32 0, i32 2
  %678 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %677) #9
  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) %673, ptr noundef nonnull align 4 dereferenceable(4) %678) #9
  %679 = load i32, ptr %51, align 4, !tbaa !8
  %680 = sext i32 %679 to i64
  %681 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %680) #9
  %682 = getelementptr inbounds %"struct.std::pair.10", ptr %681, i32 0, i32 1
  %683 = invoke { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 4 dereferenceable(4) %682)
          to label %684 unwind label %637

684:                                              ; preds = %666
  %685 = getelementptr inbounds { ptr, i8 }, ptr %53, i32 0, i32 0
  %686 = extractvalue { ptr, i8 } %683, 0
  store ptr %686, ptr %685, align 8
  %687 = getelementptr inbounds { ptr, i8 }, ptr %53, i32 0, i32 1
  %688 = extractvalue { ptr, i8 } %683, 1
  store i8 %688, ptr %687, align 8
  %689 = load i32, ptr %49, align 4, !tbaa !8
  %690 = add nsw i32 %689, 1
  store i32 %690, ptr %49, align 4, !tbaa !8
  br label %691

691:                                              ; preds = %684, %647
  store i32 37, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #9
  br label %696

692:                                              ; preds = %555
  br label %693

693:                                              ; preds = %692
  %694 = load i32, ptr %49, align 4, !tbaa !8
  %695 = add nsw i32 %694, 1
  store i32 %695, ptr %49, align 4, !tbaa !8
  br label %523, !llvm.loop !27

696:                                              ; preds = %691, %532
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #9
  br label %698

697:                                              ; preds = %637, %571
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #9
  br label %1006

698:                                              ; preds = %696
  call void @llvm.lifetime.start.p0(i64 24, ptr %54) #9
  %699 = load i32, ptr %47, align 4, !tbaa !8
  %700 = sext i32 %699 to i64
  %701 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %700) #9
  %702 = getelementptr inbounds %struct.graph, ptr %701, i32 0, i32 2
  %703 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %702) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %55) #9
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #9
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %703, ptr noundef nonnull align 1 dereferenceable(1) %55)
          to label %704 unwind label %726

704:                                              ; preds = %698
  %705 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @h, ptr noundef nonnull align 8 dereferenceable(24) %54) #9
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #9
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %56) #9
  %706 = load i32, ptr %47, align 4, !tbaa !8
  %707 = sext i32 %706 to i64
  %708 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %707) #9
  %709 = getelementptr inbounds %struct.graph, ptr %708, i32 0, i32 2
  %710 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %709) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %57) #9
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #9
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %710, ptr noundef nonnull align 1 dereferenceable(1) %57)
          to label %711 unwind label %730

711:                                              ; preds = %704
  %712 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @visited, ptr noundef nonnull align 8 dereferenceable(24) %56) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #9
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %56) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #9
  %713 = load i32, ptr %47, align 4, !tbaa !8
  %714 = sext i32 %713 to i64
  %715 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %714) #9
  %716 = getelementptr inbounds %struct.graph, ptr %715, i32 0, i32 2
  store ptr %716, ptr %58, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #9
  %717 = load ptr, ptr %58, align 8, !tbaa !28
  %718 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %717) #9
  %719 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %59, i32 0, i32 0
  store ptr %718, ptr %719, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #9
  %720 = load ptr, ptr %58, align 8, !tbaa !28
  %721 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %720) #9
  %722 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %60, i32 0, i32 0
  store ptr %721, ptr %722, align 8
  br label %723

723:                                              ; preds = %827, %711
  %724 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(8) %60) #9
  br i1 %724, label %734, label %725

725:                                              ; preds = %723
  store i32 40, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #9
  br label %830

726:                                              ; preds = %698
  %727 = landingpad { ptr, i32 }
          cleanup
  %728 = extractvalue { ptr, i32 } %727, 0
  store ptr %728, ptr %8, align 8
  %729 = extractvalue { ptr, i32 } %727, 1
  store i32 %729, ptr %9, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #9
  br label %1006

730:                                              ; preds = %704
  %731 = landingpad { ptr, i32 }
          cleanup
  %732 = extractvalue { ptr, i32 } %731, 0
  store ptr %732, ptr %8, align 8
  %733 = extractvalue { ptr, i32 } %731, 1
  store i32 %733, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %56) #9
  br label %1006

734:                                              ; preds = %723
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #9
  %735 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #9
  %736 = load i32, ptr %735, align 4, !tbaa !8
  store i32 %736, ptr %61, align 4, !tbaa !8
  %737 = load i32, ptr %61, align 4, !tbaa !8
  %738 = load i32, ptr %3, align 4, !tbaa !8
  %739 = load i32, ptr %4, align 4, !tbaa !8
  %740 = add nsw i32 %738, %739
  %741 = icmp slt i32 %737, %740
  br i1 %741, label %742, label %780

742:                                              ; preds = %734
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #9
  %743 = load i32, ptr %61, align 4, !tbaa !8
  %744 = sext i32 %743 to i64
  %745 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @g, i64 noundef %744) #9
  store ptr %745, ptr %62, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #9
  %746 = load ptr, ptr %62, align 8, !tbaa !28
  %747 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %746) #9
  %748 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %63, i32 0, i32 0
  store ptr %747, ptr %748, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #9
  %749 = load ptr, ptr %62, align 8, !tbaa !28
  %750 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %749) #9
  %751 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %64, i32 0, i32 0
  store ptr %750, ptr %751, align 8
  br label %752

752:                                              ; preds = %777, %742
  %753 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull align 8 dereferenceable(8) %64) #9
  br i1 %753, label %755, label %754

754:                                              ; preds = %752
  store i32 42, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #9
  br label %779

755:                                              ; preds = %752
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #9
  %756 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %63) #9
  %757 = load i32, ptr %756, align 4, !tbaa !8
  store i32 %757, ptr %65, align 4, !tbaa !8
  %758 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 4 dereferenceable(4) %65)
          to label %759 unwind label %772

759:                                              ; preds = %755
  %760 = icmp ne i64 %758, 0
  br i1 %760, label %761, label %776

761:                                              ; preds = %759
  %762 = load i32, ptr %61, align 4, !tbaa !8
  %763 = sext i32 %762 to i64
  %764 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %763) #9
  %765 = load i32, ptr %764, align 4, !tbaa !8
  %766 = sext i32 %765 to i64
  %767 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @h, i64 noundef %766) #9
  %768 = load i32, ptr %65, align 4, !tbaa !8
  %769 = sext i32 %768 to i64
  %770 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %769) #9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %767, ptr noundef nonnull align 4 dereferenceable(4) %770)
          to label %771 unwind label %772

771:                                              ; preds = %761
  br label %776

772:                                              ; preds = %761, %755
  %773 = landingpad { ptr, i32 }
          cleanup
  %774 = extractvalue { ptr, i32 } %773, 0
  store ptr %774, ptr %8, align 8
  %775 = extractvalue { ptr, i32 } %773, 1
  store i32 %775, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #9
  br label %829

776:                                              ; preds = %771, %759
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #9
  br label %777

777:                                              ; preds = %776
  %778 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %63) #9
  br label %752

779:                                              ; preds = %754
  br label %826

780:                                              ; preds = %734
  %781 = load i32, ptr %3, align 4, !tbaa !8
  %782 = load i32, ptr %4, align 4, !tbaa !8
  %783 = add nsw i32 %781, %782
  %784 = load i32, ptr %61, align 4, !tbaa !8
  %785 = sub nsw i32 %784, %783
  store i32 %785, ptr %61, align 4, !tbaa !8
  %786 = load i32, ptr %61, align 4, !tbaa !8
  %787 = sext i32 %786 to i64
  %788 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %787) #9
  %789 = getelementptr inbounds %"struct.std::pair.10", ptr %788, i32 0, i32 0
  %790 = load i32, ptr %789, align 4, !tbaa !24
  %791 = sext i32 %790 to i64
  %792 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %791) #9
  %793 = load i32, ptr %792, align 4, !tbaa !8
  %794 = sext i32 %793 to i64
  %795 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @h, i64 noundef %794) #9
  %796 = load i32, ptr %61, align 4, !tbaa !8
  %797 = sext i32 %796 to i64
  %798 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %797) #9
  %799 = getelementptr inbounds %"struct.std::pair.10", ptr %798, i32 0, i32 1
  %800 = load i32, ptr %799, align 4, !tbaa !26
  %801 = sext i32 %800 to i64
  %802 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %801) #9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %795, ptr noundef nonnull align 4 dereferenceable(4) %802)
          to label %803 unwind label %822

803:                                              ; preds = %780
  %804 = load i32, ptr %61, align 4, !tbaa !8
  %805 = sext i32 %804 to i64
  %806 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %805) #9
  %807 = getelementptr inbounds %"struct.std::pair.10", ptr %806, i32 0, i32 1
  %808 = load i32, ptr %807, align 4, !tbaa !26
  %809 = sext i32 %808 to i64
  %810 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %809) #9
  %811 = load i32, ptr %810, align 4, !tbaa !8
  %812 = sext i32 %811 to i64
  %813 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @h, i64 noundef %812) #9
  %814 = load i32, ptr %61, align 4, !tbaa !8
  %815 = sext i32 %814 to i64
  %816 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %815) #9
  %817 = getelementptr inbounds %"struct.std::pair.10", ptr %816, i32 0, i32 0
  %818 = load i32, ptr %817, align 4, !tbaa !24
  %819 = sext i32 %818 to i64
  %820 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %819) #9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %813, ptr noundef nonnull align 4 dereferenceable(4) %820)
          to label %821 unwind label %822

821:                                              ; preds = %803
  br label %826

822:                                              ; preds = %803, %780
  %823 = landingpad { ptr, i32 }
          cleanup
  %824 = extractvalue { ptr, i32 } %823, 0
  store ptr %824, ptr %8, align 8
  %825 = extractvalue { ptr, i32 } %823, 1
  store i32 %825, ptr %9, align 4
  br label %829

826:                                              ; preds = %821, %779
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #9
  br label %827

827:                                              ; preds = %826
  %828 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #9
  br label %723

829:                                              ; preds = %822, %772
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #9
  br label %1006

830:                                              ; preds = %725
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @sols) #9
  %831 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @visited, i64 noundef 0) #9
  store i32 1, ptr %831, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #9
  %832 = invoke noundef i32 @_Z4dfs2i(i32 noundef 0)
          to label %833 unwind label %851

833:                                              ; preds = %830
  store i32 %832, ptr %66, align 4, !tbaa !8
  %834 = load i32, ptr %66, align 4, !tbaa !8
  %835 = icmp sge i32 %834, 0
  br i1 %835, label %836, label %859

836:                                              ; preds = %833
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #9
  %837 = load i32, ptr %47, align 4, !tbaa !8
  %838 = sext i32 %837 to i64
  %839 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %838) #9
  %840 = getelementptr inbounds %struct.graph, ptr %839, i32 0, i32 2
  %841 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %840, i64 noundef 0) #9
  %842 = load i32, ptr %47, align 4, !tbaa !8
  %843 = sext i32 %842 to i64
  %844 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %843) #9
  %845 = getelementptr inbounds %struct.graph, ptr %844, i32 0, i32 2
  %846 = load i32, ptr %66, align 4, !tbaa !8
  %847 = sext i32 %846 to i64
  %848 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %845, i64 noundef %847) #9
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %67, ptr noundef nonnull align 4 dereferenceable(4) %841, ptr noundef nonnull align 4 dereferenceable(4) %848)
          to label %849 unwind label %855

849:                                              ; preds = %836
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 4 dereferenceable(8) %67)
          to label %850 unwind label %855

850:                                              ; preds = %849
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #9
  br label %859

851:                                              ; preds = %830
  %852 = landingpad { ptr, i32 }
          cleanup
  %853 = extractvalue { ptr, i32 } %852, 0
  store ptr %853, ptr %8, align 8
  %854 = extractvalue { ptr, i32 } %852, 1
  store i32 %854, ptr %9, align 4
  br label %1005

855:                                              ; preds = %849, %836
  %856 = landingpad { ptr, i32 }
          cleanup
  %857 = extractvalue { ptr, i32 } %856, 0
  store ptr %857, ptr %8, align 8
  %858 = extractvalue { ptr, i32 } %856, 1
  store i32 %858, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #9
  br label %1005

859:                                              ; preds = %850, %833
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #9
  store ptr @sols, ptr %68, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #9
  %860 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @sols) #9
  %861 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.44", ptr %69, i32 0, i32 0
  store ptr %860, ptr %861, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #9
  %862 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @sols) #9
  %863 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.44", ptr %70, i32 0, i32 0
  store ptr %862, ptr %863, align 8
  br label %864

864:                                              ; preds = %995, %859
  %865 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 8 dereferenceable(8) %70) #9
  br i1 %865, label %867, label %866

866:                                              ; preds = %864
  store i32 44, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #9
  br label %1001

867:                                              ; preds = %864
  call void @llvm.lifetime.start.p0(i64 16, ptr %71) #9
  %868 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %69) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 %868, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #9
  %869 = getelementptr inbounds %"struct.std::pair", ptr %71, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 4 %869, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #9
  %870 = getelementptr inbounds %"struct.std::pair", ptr %71, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %870, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %76) #9
  %871 = getelementptr inbounds %"struct.std::pair.10", ptr %72, i32 0, i32 0
  %872 = load i32, ptr %871, align 4, !tbaa !24
  %873 = getelementptr inbounds %"struct.std::pair.10", ptr %73, i32 0, i32 0
  %874 = load i32, ptr %873, align 4, !tbaa !24
  %875 = icmp eq i32 %872, %874
  br i1 %875, label %876, label %883

876:                                              ; preds = %867
  %877 = getelementptr inbounds %"struct.std::pair.10", ptr %72, i32 0, i32 0
  %878 = load i32, ptr %877, align 4, !tbaa !24
  store i32 %878, ptr %74, align 4, !tbaa !8
  %879 = getelementptr inbounds %"struct.std::pair.10", ptr %72, i32 0, i32 1
  %880 = load i32, ptr %879, align 4, !tbaa !26
  store i32 %880, ptr %75, align 4, !tbaa !8
  %881 = getelementptr inbounds %"struct.std::pair.10", ptr %73, i32 0, i32 1
  %882 = load i32, ptr %881, align 4, !tbaa !26
  store i32 %882, ptr %76, align 4, !tbaa !8
  br label %926

883:                                              ; preds = %867
  %884 = getelementptr inbounds %"struct.std::pair.10", ptr %72, i32 0, i32 0
  %885 = load i32, ptr %884, align 4, !tbaa !24
  %886 = getelementptr inbounds %"struct.std::pair.10", ptr %73, i32 0, i32 1
  %887 = load i32, ptr %886, align 4, !tbaa !26
  %888 = icmp eq i32 %885, %887
  br i1 %888, label %889, label %896

889:                                              ; preds = %883
  %890 = getelementptr inbounds %"struct.std::pair.10", ptr %72, i32 0, i32 0
  %891 = load i32, ptr %890, align 4, !tbaa !24
  store i32 %891, ptr %74, align 4, !tbaa !8
  %892 = getelementptr inbounds %"struct.std::pair.10", ptr %72, i32 0, i32 1
  %893 = load i32, ptr %892, align 4, !tbaa !26
  store i32 %893, ptr %75, align 4, !tbaa !8
  %894 = getelementptr inbounds %"struct.std::pair.10", ptr %73, i32 0, i32 0
  %895 = load i32, ptr %894, align 4, !tbaa !24
  store i32 %895, ptr %76, align 4, !tbaa !8
  br label %925

896:                                              ; preds = %883
  %897 = getelementptr inbounds %"struct.std::pair.10", ptr %72, i32 0, i32 1
  %898 = load i32, ptr %897, align 4, !tbaa !26
  %899 = getelementptr inbounds %"struct.std::pair.10", ptr %73, i32 0, i32 0
  %900 = load i32, ptr %899, align 4, !tbaa !24
  %901 = icmp eq i32 %898, %900
  br i1 %901, label %902, label %909

902:                                              ; preds = %896
  %903 = getelementptr inbounds %"struct.std::pair.10", ptr %72, i32 0, i32 1
  %904 = load i32, ptr %903, align 4, !tbaa !26
  store i32 %904, ptr %74, align 4, !tbaa !8
  %905 = getelementptr inbounds %"struct.std::pair.10", ptr %72, i32 0, i32 0
  %906 = load i32, ptr %905, align 4, !tbaa !24
  store i32 %906, ptr %75, align 4, !tbaa !8
  %907 = getelementptr inbounds %"struct.std::pair.10", ptr %73, i32 0, i32 1
  %908 = load i32, ptr %907, align 4, !tbaa !26
  store i32 %908, ptr %76, align 4, !tbaa !8
  br label %924

909:                                              ; preds = %896
  %910 = getelementptr inbounds %"struct.std::pair.10", ptr %72, i32 0, i32 1
  %911 = load i32, ptr %910, align 4, !tbaa !26
  %912 = getelementptr inbounds %"struct.std::pair.10", ptr %73, i32 0, i32 1
  %913 = load i32, ptr %912, align 4, !tbaa !26
  %914 = icmp eq i32 %911, %913
  br i1 %914, label %915, label %922

915:                                              ; preds = %909
  %916 = getelementptr inbounds %"struct.std::pair.10", ptr %72, i32 0, i32 1
  %917 = load i32, ptr %916, align 4, !tbaa !26
  store i32 %917, ptr %74, align 4, !tbaa !8
  %918 = getelementptr inbounds %"struct.std::pair.10", ptr %72, i32 0, i32 0
  %919 = load i32, ptr %918, align 4, !tbaa !24
  store i32 %919, ptr %75, align 4, !tbaa !8
  %920 = getelementptr inbounds %"struct.std::pair.10", ptr %73, i32 0, i32 0
  %921 = load i32, ptr %920, align 4, !tbaa !24
  store i32 %921, ptr %76, align 4, !tbaa !8
  br label %923

922:                                              ; preds = %909
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef 154, ptr noundef @__PRETTY_FUNCTION__.main) #10
  unreachable

923:                                              ; preds = %915
  br label %924

924:                                              ; preds = %923, %902
  br label %925

925:                                              ; preds = %924, %889
  br label %926

926:                                              ; preds = %925, %876
  %927 = load i32, ptr %47, align 4, !tbaa !8
  %928 = sext i32 %927 to i64
  %929 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %928) #9
  %930 = getelementptr inbounds %struct.graph, ptr %929, i32 0, i32 2
  %931 = load i32, ptr %74, align 4, !tbaa !8
  %932 = sext i32 %931 to i64
  %933 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %930, i64 noundef %932) #9
  %934 = load i32, ptr %933, align 4, !tbaa !8
  store i32 %934, ptr %74, align 4, !tbaa !8
  %935 = load i32, ptr %47, align 4, !tbaa !8
  %936 = sext i32 %935 to i64
  %937 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %936) #9
  %938 = getelementptr inbounds %struct.graph, ptr %937, i32 0, i32 2
  %939 = load i32, ptr %75, align 4, !tbaa !8
  %940 = sext i32 %939 to i64
  %941 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %938, i64 noundef %940) #9
  %942 = load i32, ptr %941, align 4, !tbaa !8
  store i32 %942, ptr %75, align 4, !tbaa !8
  %943 = load i32, ptr %47, align 4, !tbaa !8
  %944 = sext i32 %943 to i64
  %945 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %944) #9
  %946 = getelementptr inbounds %struct.graph, ptr %945, i32 0, i32 2
  %947 = load i32, ptr %76, align 4, !tbaa !8
  %948 = sext i32 %947 to i64
  %949 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %946, i64 noundef %948) #9
  %950 = load i32, ptr %949, align 4, !tbaa !8
  store i32 %950, ptr %76, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr %77) #9
  %951 = getelementptr inbounds %struct.op, ptr %77, i32 0, i32 0
  %952 = load i32, ptr %74, align 4, !tbaa !8
  %953 = load i32, ptr %3, align 4, !tbaa !8
  %954 = icmp sge i32 %952, %953
  %955 = zext i1 %954 to i64
  %956 = getelementptr inbounds [3 x i8], ptr @.str.7, i64 0, i64 %955
  %957 = load i8, ptr %956, align 1, !tbaa !14
  store i8 %957, ptr %951, align 4, !tbaa !30
  %958 = getelementptr inbounds %struct.op, ptr %77, i32 0, i32 1
  %959 = load i32, ptr %74, align 4, !tbaa !8
  %960 = load i32, ptr %3, align 4, !tbaa !8
  %961 = icmp sge i32 %959, %960
  br i1 %961, label %962, label %966

962:                                              ; preds = %926
  %963 = load i32, ptr %74, align 4, !tbaa !8
  %964 = load i32, ptr %3, align 4, !tbaa !8
  %965 = sub nsw i32 %963, %964
  br label %968

966:                                              ; preds = %926
  %967 = load i32, ptr %74, align 4, !tbaa !8
  br label %968

968:                                              ; preds = %966, %962
  %969 = phi i32 [ %965, %962 ], [ %967, %966 ]
  store i32 %969, ptr %958, align 4, !tbaa !32
  %970 = getelementptr inbounds %struct.op, ptr %77, i32 0, i32 2
  %971 = load i32, ptr %75, align 4, !tbaa !8
  %972 = load i32, ptr %3, align 4, !tbaa !8
  %973 = icmp sge i32 %971, %972
  br i1 %973, label %974, label %978

974:                                              ; preds = %968
  %975 = load i32, ptr %75, align 4, !tbaa !8
  %976 = load i32, ptr %3, align 4, !tbaa !8
  %977 = sub nsw i32 %975, %976
  br label %980

978:                                              ; preds = %968
  %979 = load i32, ptr %75, align 4, !tbaa !8
  br label %980

980:                                              ; preds = %978, %974
  %981 = phi i32 [ %977, %974 ], [ %979, %978 ]
  store i32 %981, ptr %970, align 4, !tbaa !33
  %982 = getelementptr inbounds %struct.op, ptr %77, i32 0, i32 3
  %983 = load i32, ptr %76, align 4, !tbaa !8
  %984 = load i32, ptr %3, align 4, !tbaa !8
  %985 = icmp sge i32 %983, %984
  br i1 %985, label %986, label %990

986:                                              ; preds = %980
  %987 = load i32, ptr %76, align 4, !tbaa !8
  %988 = load i32, ptr %3, align 4, !tbaa !8
  %989 = sub nsw i32 %987, %988
  br label %992

990:                                              ; preds = %980
  %991 = load i32, ptr %76, align 4, !tbaa !8
  br label %992

992:                                              ; preds = %990, %986
  %993 = phi i32 [ %989, %986 ], [ %991, %990 ]
  store i32 %993, ptr %982, align 4, !tbaa !34
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 4 dereferenceable(16) %77)
          to label %994 unwind label %997

994:                                              ; preds = %992
  call void @llvm.lifetime.end.p0(i64 16, ptr %77) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #9
  br label %995

995:                                              ; preds = %994
  %996 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %69) #9
  br label %864

997:                                              ; preds = %992
  %998 = landingpad { ptr, i32 }
          cleanup
  %999 = extractvalue { ptr, i32 } %998, 0
  store ptr %999, ptr %8, align 8
  %1000 = extractvalue { ptr, i32 } %998, 1
  store i32 %1000, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %77) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #9
  br label %1005

1001:                                             ; preds = %866
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #9
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %48) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %48) #9
  br label %1002

1002:                                             ; preds = %1001
  %1003 = load i32, ptr %47, align 4, !tbaa !8
  %1004 = add nsw i32 %1003, 1
  store i32 %1004, ptr %47, align 4, !tbaa !8
  br label %513, !llvm.loop !35

1005:                                             ; preds = %997, %855, %851
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #9
  br label %1006

1006:                                             ; preds = %1005, %829, %730, %726, %697
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %48) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  br label %1181

1007:                                             ; preds = %517
  %1008 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIiiESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  br i1 %1008, label %1009, label %1020

1009:                                             ; preds = %1007
  %1010 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  %1011 = urem i64 %1010, 2
  %1012 = icmp ne i64 %1011, 0
  br i1 %1012, label %1013, label %1020

1013:                                             ; preds = %1009
  %1014 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %1015 unwind label %1016

1015:                                             ; preds = %1013
  store i32 2, ptr %19, align 4
  br label %1177, !llvm.loop !17

1016:                                             ; preds = %1125, %1122, %1013
  %1017 = landingpad { ptr, i32 }
          cleanup
  %1018 = extractvalue { ptr, i32 } %1017, 0
  store ptr %1018, ptr %8, align 8
  %1019 = extractvalue { ptr, i32 } %1017, 1
  store i32 %1019, ptr %9, align 4
  br label %1181

1020:                                             ; preds = %1009, %1007
  call void @llvm.lifetime.start.p0(i64 4, ptr %78) #9
  store i32 0, ptr %78, align 4, !tbaa !8
  br label %1021

1021:                                             ; preds = %1066, %1020
  %1022 = load i32, ptr %78, align 4, !tbaa !8
  %1023 = sext i32 %1022 to i64
  %1024 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  %1025 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  %1026 = urem i64 %1025, 2
  %1027 = sub i64 %1024, %1026
  %1028 = icmp ult i64 %1023, %1027
  br i1 %1028, label %1030, label %1029

1029:                                             ; preds = %1021
  store i32 46, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #9
  br label %1078

1030:                                             ; preds = %1021
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #9
  %1031 = load i32, ptr %78, align 4, !tbaa !8
  %1032 = sext i32 %1031 to i64
  %1033 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %1032) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %79, ptr align 4 %1033, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #9
  %1034 = load i32, ptr %78, align 4, !tbaa !8
  %1035 = add nsw i32 %1034, 1
  %1036 = sext i32 %1035 to i64
  %1037 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %1036) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr align 4 %1037, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %81) #9
  %1038 = getelementptr inbounds %struct.op, ptr %81, i32 0, i32 0
  store i8 82, ptr %1038, align 4, !tbaa !30
  %1039 = getelementptr inbounds %struct.op, ptr %81, i32 0, i32 1
  %1040 = getelementptr inbounds %"struct.std::pair.10", ptr %79, i32 0, i32 0
  %1041 = load i32, ptr %1040, align 4, !tbaa !24
  store i32 %1041, ptr %1039, align 4, !tbaa !32
  %1042 = getelementptr inbounds %struct.op, ptr %81, i32 0, i32 2
  %1043 = getelementptr inbounds %"struct.std::pair.10", ptr %79, i32 0, i32 1
  %1044 = load i32, ptr %1043, align 4, !tbaa !26
  %1045 = load i32, ptr %3, align 4, !tbaa !8
  %1046 = sub nsw i32 %1044, %1045
  store i32 %1046, ptr %1042, align 4, !tbaa !33
  %1047 = getelementptr inbounds %struct.op, ptr %81, i32 0, i32 3
  %1048 = getelementptr inbounds %"struct.std::pair.10", ptr %80, i32 0, i32 1
  %1049 = load i32, ptr %1048, align 4, !tbaa !26
  %1050 = load i32, ptr %3, align 4, !tbaa !8
  %1051 = sub nsw i32 %1049, %1050
  store i32 %1051, ptr %1047, align 4, !tbaa !34
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 4 dereferenceable(16) %81)
          to label %1052 unwind label %1069

1052:                                             ; preds = %1030
  call void @llvm.lifetime.end.p0(i64 16, ptr %81) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %82) #9
  %1053 = getelementptr inbounds %struct.op, ptr %82, i32 0, i32 0
  store i8 67, ptr %1053, align 4, !tbaa !30
  %1054 = getelementptr inbounds %struct.op, ptr %82, i32 0, i32 1
  %1055 = getelementptr inbounds %"struct.std::pair.10", ptr %80, i32 0, i32 1
  %1056 = load i32, ptr %1055, align 4, !tbaa !26
  %1057 = load i32, ptr %3, align 4, !tbaa !8
  %1058 = sub nsw i32 %1056, %1057
  store i32 %1058, ptr %1054, align 4, !tbaa !32
  %1059 = getelementptr inbounds %struct.op, ptr %82, i32 0, i32 2
  %1060 = getelementptr inbounds %"struct.std::pair.10", ptr %79, i32 0, i32 0
  %1061 = load i32, ptr %1060, align 4, !tbaa !24
  store i32 %1061, ptr %1059, align 4, !tbaa !33
  %1062 = getelementptr inbounds %struct.op, ptr %82, i32 0, i32 3
  %1063 = getelementptr inbounds %"struct.std::pair.10", ptr %80, i32 0, i32 0
  %1064 = load i32, ptr %1063, align 4, !tbaa !24
  store i32 %1064, ptr %1062, align 4, !tbaa !34
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 4 dereferenceable(16) %82)
          to label %1065 unwind label %1073

1065:                                             ; preds = %1052
  call void @llvm.lifetime.end.p0(i64 16, ptr %82) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #9
  br label %1066

1066:                                             ; preds = %1065
  %1067 = load i32, ptr %78, align 4, !tbaa !8
  %1068 = add nsw i32 %1067, 2
  store i32 %1068, ptr %78, align 4, !tbaa !8
  br label %1021, !llvm.loop !36

1069:                                             ; preds = %1030
  %1070 = landingpad { ptr, i32 }
          cleanup
  %1071 = extractvalue { ptr, i32 } %1070, 0
  store ptr %1071, ptr %8, align 8
  %1072 = extractvalue { ptr, i32 } %1070, 1
  store i32 %1072, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %81) #9
  br label %1077

1073:                                             ; preds = %1052
  %1074 = landingpad { ptr, i32 }
          cleanup
  %1075 = extractvalue { ptr, i32 } %1074, 0
  store ptr %1075, ptr %8, align 8
  %1076 = extractvalue { ptr, i32 } %1074, 1
  store i32 %1076, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %82) #9
  br label %1077

1077:                                             ; preds = %1073, %1069
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #9
  br label %1181

1078:                                             ; preds = %1029
  %1079 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  %1080 = urem i64 %1079, 2
  %1081 = icmp ne i64 %1080, 0
  br i1 %1081, label %1082, label %1122

1082:                                             ; preds = %1078
  call void @llvm.lifetime.start.p0(i64 8, ptr %83) #9
  %1083 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %83, ptr align 4 %1083, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %84) #9
  %1084 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 4 %1084, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %85) #9
  %1085 = getelementptr inbounds %struct.op, ptr %85, i32 0, i32 0
  store i8 82, ptr %1085, align 4, !tbaa !30
  %1086 = getelementptr inbounds %struct.op, ptr %85, i32 0, i32 1
  %1087 = getelementptr inbounds %"struct.std::pair.10", ptr %83, i32 0, i32 0
  %1088 = load i32, ptr %1087, align 4, !tbaa !24
  store i32 %1088, ptr %1086, align 4, !tbaa !32
  %1089 = getelementptr inbounds %struct.op, ptr %85, i32 0, i32 2
  %1090 = getelementptr inbounds %"struct.std::pair.10", ptr %83, i32 0, i32 1
  %1091 = load i32, ptr %1090, align 4, !tbaa !26
  %1092 = load i32, ptr %3, align 4, !tbaa !8
  %1093 = sub nsw i32 %1091, %1092
  store i32 %1093, ptr %1089, align 4, !tbaa !33
  %1094 = getelementptr inbounds %struct.op, ptr %85, i32 0, i32 3
  %1095 = getelementptr inbounds %"struct.std::pair.10", ptr %84, i32 0, i32 1
  %1096 = load i32, ptr %1095, align 4, !tbaa !26
  %1097 = load i32, ptr %3, align 4, !tbaa !8
  %1098 = sub nsw i32 %1096, %1097
  store i32 %1098, ptr %1094, align 4, !tbaa !34
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 4 dereferenceable(16) %85)
          to label %1099 unwind label %1113

1099:                                             ; preds = %1082
  call void @llvm.lifetime.end.p0(i64 16, ptr %85) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %86) #9
  %1100 = getelementptr inbounds %struct.op, ptr %86, i32 0, i32 0
  store i8 67, ptr %1100, align 4, !tbaa !30
  %1101 = getelementptr inbounds %struct.op, ptr %86, i32 0, i32 1
  %1102 = getelementptr inbounds %"struct.std::pair.10", ptr %84, i32 0, i32 1
  %1103 = load i32, ptr %1102, align 4, !tbaa !26
  %1104 = load i32, ptr %3, align 4, !tbaa !8
  %1105 = sub nsw i32 %1103, %1104
  store i32 %1105, ptr %1101, align 4, !tbaa !32
  %1106 = getelementptr inbounds %struct.op, ptr %86, i32 0, i32 2
  %1107 = getelementptr inbounds %"struct.std::pair.10", ptr %83, i32 0, i32 0
  %1108 = load i32, ptr %1107, align 4, !tbaa !24
  store i32 %1108, ptr %1106, align 4, !tbaa !33
  %1109 = getelementptr inbounds %struct.op, ptr %86, i32 0, i32 3
  %1110 = getelementptr inbounds %"struct.std::pair.10", ptr %84, i32 0, i32 0
  %1111 = load i32, ptr %1110, align 4, !tbaa !24
  store i32 %1111, ptr %1109, align 4, !tbaa !34
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 4 dereferenceable(16) %86)
          to label %1112 unwind label %1117

1112:                                             ; preds = %1099
  call void @llvm.lifetime.end.p0(i64 16, ptr %86) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #9
  br label %1122

1113:                                             ; preds = %1082
  %1114 = landingpad { ptr, i32 }
          cleanup
  %1115 = extractvalue { ptr, i32 } %1114, 0
  store ptr %1115, ptr %8, align 8
  %1116 = extractvalue { ptr, i32 } %1114, 1
  store i32 %1116, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %85) #9
  br label %1121

1117:                                             ; preds = %1099
  %1118 = landingpad { ptr, i32 }
          cleanup
  %1119 = extractvalue { ptr, i32 } %1118, 0
  store ptr %1119, ptr %8, align 8
  %1120 = extractvalue { ptr, i32 } %1118, 1
  store i32 %1120, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %86) #9
  br label %1121

1121:                                             ; preds = %1117, %1113
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #9
  br label %1181

1122:                                             ; preds = %1112, %1078
  %1123 = call noundef i64 @_ZNKSt6vectorI2opSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #9
  %1124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %1123)
          to label %1125 unwind label %1016

1125:                                             ; preds = %1122
  %1126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %1124, i8 noundef signext 10)
          to label %1127 unwind label %1016

1127:                                             ; preds = %1125
  %1128 = load i32, ptr %5, align 4, !tbaa !8
  %1129 = icmp ne i32 %1128, 0
  br i1 %1129, label %1130, label %1176

1130:                                             ; preds = %1127
  call void @llvm.lifetime.start.p0(i64 8, ptr %87) #9
  store ptr %46, ptr %87, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %88) #9
  %1131 = load ptr, ptr %87, align 8, !tbaa !28
  %1132 = call ptr @_ZNSt6vectorI2opSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1131) #9
  %1133 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.45", ptr %88, i32 0, i32 0
  store ptr %1132, ptr %1133, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %89) #9
  %1134 = load ptr, ptr %87, align 8, !tbaa !28
  %1135 = call ptr @_ZNSt6vectorI2opSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1134) #9
  %1136 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.45", ptr %89, i32 0, i32 0
  store ptr %1135, ptr %1136, align 8
  br label %1137

1137:                                             ; preds = %1169, %1130
  %1138 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2opSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull align 8 dereferenceable(8) %89) #9
  br i1 %1138, label %1140, label %1139

1139:                                             ; preds = %1137
  store i32 49, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %89) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %88) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %87) #9
  br label %1175

1140:                                             ; preds = %1137
  call void @llvm.lifetime.start.p0(i64 16, ptr %90) #9
  %1141 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2opSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %88) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %90, ptr align 4 %1141, i64 16, i1 false), !tbaa.struct !37
  %1142 = getelementptr inbounds %struct.op, ptr %90, i32 0, i32 0
  %1143 = load i8, ptr %1142, align 4, !tbaa !30
  %1144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %1143)
          to label %1145 unwind label %1171

1145:                                             ; preds = %1140
  %1146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %1144, i8 noundef signext 32)
          to label %1147 unwind label %1171

1147:                                             ; preds = %1145
  %1148 = getelementptr inbounds %struct.op, ptr %90, i32 0, i32 1
  %1149 = load i32, ptr %1148, align 4, !tbaa !32
  %1150 = add nsw i32 %1149, 1
  %1151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %1146, i32 noundef %1150)
          to label %1152 unwind label %1171

1152:                                             ; preds = %1147
  %1153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %1151, i8 noundef signext 32)
          to label %1154 unwind label %1171

1154:                                             ; preds = %1152
  %1155 = getelementptr inbounds %struct.op, ptr %90, i32 0, i32 2
  %1156 = load i32, ptr %1155, align 4, !tbaa !33
  %1157 = add nsw i32 %1156, 1
  %1158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %1153, i32 noundef %1157)
          to label %1159 unwind label %1171

1159:                                             ; preds = %1154
  %1160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %1158, i8 noundef signext 32)
          to label %1161 unwind label %1171

1161:                                             ; preds = %1159
  %1162 = getelementptr inbounds %struct.op, ptr %90, i32 0, i32 3
  %1163 = load i32, ptr %1162, align 4, !tbaa !34
  %1164 = add nsw i32 %1163, 1
  %1165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %1160, i32 noundef %1164)
          to label %1166 unwind label %1171

1166:                                             ; preds = %1161
  %1167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %1165, i8 noundef signext 10)
          to label %1168 unwind label %1171

1168:                                             ; preds = %1166
  call void @llvm.lifetime.end.p0(i64 16, ptr %90) #9
  br label %1169

1169:                                             ; preds = %1168
  %1170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2opSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %88) #9
  br label %1137

1171:                                             ; preds = %1166, %1161, %1159, %1154, %1152, %1147, %1145, %1140
  %1172 = landingpad { ptr, i32 }
          cleanup
  %1173 = extractvalue { ptr, i32 } %1172, 0
  store ptr %1173, ptr %8, align 8
  %1174 = extractvalue { ptr, i32 } %1172, 1
  store i32 %1174, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %90) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %89) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %88) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %87) #9
  br label %1181

1175:                                             ; preds = %1139
  br label %1176

1176:                                             ; preds = %1175, %1127
  store i32 0, ptr %19, align 4
  br label %1177

1177:                                             ; preds = %1176, %1015
  call void @_ZNSt6vectorI2opSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #9
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  call void @_ZNSt6vectorI5graphSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #9
  br label %1178

1178:                                             ; preds = %1177, %262
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  %1179 = load i32, ptr %19, align 4
  switch i32 %1179, label %1197 [
    i32 0, label %1180
    i32 2, label %98
  ]

1180:                                             ; preds = %1178
  br label %98, !llvm.loop !17

1181:                                             ; preds = %1171, %1121, %1077, %1016, %1006
  call void @_ZNSt6vectorI2opSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #9
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #9
  br label %1182

1182:                                             ; preds = %1181, %518
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %1183

1183:                                             ; preds = %1182, %452, %354
  call void @_ZNSt6vectorI5graphSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  br label %1184

1184:                                             ; preds = %1183, %322
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  br label %1185

1185:                                             ; preds = %1184, %318
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #9
  br label %1186

1186:                                             ; preds = %1185, %296, %281, %263, %249, %163, %144
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %1187

1187:                                             ; preds = %1186, %131
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  br label %1188

1188:                                             ; preds = %1187, %127
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  br label %1189

1189:                                             ; preds = %1188, %123
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %1192

1190:                                             ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  %1191 = load i32, ptr %1, align 4
  ret i32 %1191

1192:                                             ; preds = %1189
  %1193 = load ptr, ptr %8, align 8
  %1194 = load i32, ptr %9, align 4
  %1195 = insertvalue { ptr, i32 } poison, ptr %1193, 0
  %1196 = insertvalue { ptr, i32 } %1195, i32 %1194, 1
  resume { ptr, i32 } %1196

1197:                                             ; preds = %1178
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #0 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #5

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #5

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

; Function Attrs: mustprogress 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 @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorISt4pairIiiESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJiiEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRiS0_EEaSIiiEENSt9enable_ifIXcl12__assignableIRKT_RKT0_EEERS1_E4typeERKSt4pairIS4_S7_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 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)) #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #8

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #6

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP2opSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2opSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2opSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { "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 = { inlinehint 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!10, !10, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = !{!25, !9, i64 0}
!25 = !{!"_ZTSSt4pairIiiE", !9, i64 0, !9, i64 4}
!26 = !{!25, !9, i64 4}
!27 = distinct !{!27, !12}
!28 = !{!29, !29, i64 0}
!29 = !{!"any pointer", !10, i64 0}
!30 = !{!31, !10, i64 0}
!31 = !{!"_ZTS2op", !10, i64 0, !9, i64 4, !9, i64 8, !9, i64 12}
!32 = !{!31, !9, i64 4}
!33 = !{!31, !9, i64 8}
!34 = !{!31, !9, i64 12}
!35 = distinct !{!35, !12}
!36 = distinct !{!36, !12}
!37 = !{i64 0, i64 1, !14, i64 4, i64 4, !8, i64 8, i64 4, !8, i64 12, i64 4, !8}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.14" = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.10" = type { i32, i32 }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<graph, std::allocator<graph>>::_Vector_impl" }
%"struct.std::_Vector_base<graph, std::allocator<graph>>::_Vector_impl" = type { %"struct.std::_Vector_base<graph, std::allocator<graph>>::_Vector_impl_data" }
%"struct.std::_Vector_base<graph, std::allocator<graph>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.27" = type { i8 }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.30", %"struct.std::_Head_base.31" }
%"struct.std::_Tuple_impl.30" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { ptr }
%"struct.std::_Head_base.31" = type { ptr }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<op, std::allocator<op>>::_Vector_impl" }
%"struct.std::_Vector_base<op, std::allocator<op>>::_Vector_impl" = type { %"struct.std::_Vector_base<op, std::allocator<op>>::_Vector_impl_data" }
%"struct.std::_Vector_base<op, std::allocator<op>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.44" = type { ptr }
%struct.op = type { i8, i32, i32, i32 }
%"class.__gnu_cxx::__normal_iterator.45" = type { ptr }

@g = external dso_local global %"class.std::vector", align 8
@h = external dso_local global %"class.std::vector", align 8
@visited = external dso_local global %"class.std::vector.0", align 8
@cc = external dso_local local_unnamed_addr global i32, align 4
@sols = external dso_local global %"class.std::vector.5", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [97 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4dfs2i(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector.12", align 8
  %6 = alloca %"class.std::allocator.14", align 1
  %7 = alloca %"class.std::vector.12", align 8
  %8 = alloca %"class.std::allocator.14", align 1
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::vector.17", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair.10", align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::vector.0", align 8
  %17 = alloca %"class.std::allocator.2", align 1
  %18 = alloca %"class.std::vector.0", align 8
  %19 = alloca %"class.std::allocator.2", align 1
  %20 = alloca %"class.std::vector.25", align 8
  %21 = alloca %"class.std::allocator.27", align 1
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::tuple", align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::vector.0", align 8
  %29 = alloca %"class.std::allocator.2", align 1
  %30 = alloca %"class.std::vector.17", align 8
  %31 = alloca %"class.std::vector.32", align 8
  %32 = alloca %"class.std::unordered_set", align 8
  %33 = alloca %"class.std::vector", align 8
  %34 = alloca %"class.std::allocator", align 1
  %35 = alloca %"class.std::vector.0", align 8
  %36 = alloca %"class.std::allocator.2", align 1
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %41 = alloca i32, align 4
  %42 = alloca %"struct.std::pair.10", align 4
  %43 = alloca %"class.__gnu_cxx::__normal_iterator.44", align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator.44", align 8
  %45 = alloca %struct.op, align 4
  %46 = alloca %struct.op, align 4
  %47 = alloca %struct.op, align 4
  %48 = alloca %struct.op, align 4
  %49 = alloca %struct.op, align 4
  %50 = alloca %"class.__gnu_cxx::__normal_iterator.45", align 8
  %51 = alloca %"class.__gnu_cxx::__normal_iterator.45", align 8
  %52 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %53 = getelementptr i8, ptr %52, i64 -24
  %54 = load i64, ptr %53, align 8
  %55 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %54
  %56 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %55, ptr noundef null)
  %57 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %59 = load i32, ptr %1, align 4, !tbaa !8
  %60 = add nsw i32 %59, -1
  store i32 %60, ptr %1, align 4, !tbaa !8
  %.not322 = icmp eq i32 %59, 0
  br i1 %.not322, label %._crit_edge325, label %.lr.ph324

.lr.ph324:                                        ; preds = %0
  %61 = getelementptr inbounds i8, ptr %45, i64 4
  %62 = getelementptr inbounds i8, ptr %45, i64 8
  %63 = getelementptr inbounds i8, ptr %45, i64 12
  %64 = getelementptr inbounds i8, ptr %46, i64 4
  %65 = getelementptr inbounds i8, ptr %46, i64 8
  %66 = getelementptr inbounds i8, ptr %46, i64 12
  %67 = getelementptr inbounds i8, ptr %47, i64 4
  %68 = getelementptr inbounds i8, ptr %47, i64 8
  %69 = getelementptr inbounds i8, ptr %47, i64 12
  %70 = getelementptr inbounds i8, ptr %48, i64 4
  %71 = getelementptr inbounds i8, ptr %48, i64 8
  %72 = getelementptr inbounds i8, ptr %48, i64 12
  %73 = getelementptr inbounds i8, ptr %49, i64 4
  %74 = getelementptr inbounds i8, ptr %49, i64 8
  %75 = getelementptr inbounds i8, ptr %49, i64 12
  br label %76

76:                                               ; preds = %.lr.ph324, %676
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %77, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %78, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  %80 = load i32, ptr %2, align 4, !tbaa !8
  %81 = sext i32 %80 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %81, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %82 unwind label %95

82:                                               ; preds = %76
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  %83 = load i32, ptr %2, align 4, !tbaa !8
  %84 = sext i32 %83 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #8
  call void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %84, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %85 unwind label %97

85:                                               ; preds = %82
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  %86 = load i32, ptr %2, align 4, !tbaa !8
  %87 = load i32, ptr %3, align 4, !tbaa !8
  %88 = add nsw i32 %87, %86
  %89 = sext i32 %88 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #8
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %89, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %90 unwind label %99

90:                                               ; preds = %85
  %91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @g, ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %92 = load i32, ptr %2, align 4, !tbaa !8
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %.lr.ph, label %._crit_edge.thread

.preheader253:                                    ; preds = %103
  %94 = icmp sgt i32 %104, 0
  br i1 %94, label %.lr.ph270, label %._crit_edge.thread

95:                                               ; preds = %76
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  br label %687

97:                                               ; preds = %82
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  br label %686

99:                                               ; preds = %85
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  br label %685

.lr.ph:                                           ; preds = %90, %103
  %indvars.iv = phi i64 [ %indvars.iv.next, %103 ], [ 0, %90 ]
  %101 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #8
  %102 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %101)
          to label %103 unwind label %107

103:                                              ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %104 = load i32, ptr %2, align 4, !tbaa !8
  %105 = sext i32 %104 to i64
  %106 = icmp slt i64 %indvars.iv.next, %105
  br i1 %106, label %.lr.ph, label %.preheader253, !llvm.loop !11

107:                                              ; preds = %.lr.ph
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %684

._crit_edge.thread:                               ; preds = %.preheader253, %90
  %.ph = phi i32 [ %104, %.preheader253 ], [ %92, %90 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  br label %._crit_edge276.thread

._crit_edge:                                      ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  store i32 0, ptr %12, align 4, !tbaa !8
  %109 = icmp sgt i32 %113, 0
  br i1 %109, label %.preheader.preheader, label %._crit_edge276.thread

.preheader.preheader:                             ; preds = %._crit_edge
  %.pre = load i32, ptr %3, align 4, !tbaa !8
  br label %.preheader

.lr.ph270:                                        ; preds = %.preheader253, %112
  %indvars.iv338 = phi i64 [ %indvars.iv.next339, %112 ], [ 0, %.preheader253 ]
  %110 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv338) #8
  %111 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %110)
          to label %112 unwind label %116

112:                                              ; preds = %.lr.ph270
  %indvars.iv.next339 = add nuw nsw i64 %indvars.iv338, 1
  %113 = load i32, ptr %2, align 4, !tbaa !8
  %114 = sext i32 %113 to i64
  %115 = icmp slt i64 %indvars.iv.next339, %114
  br i1 %115, label %.lr.ph270, label %._crit_edge, !llvm.loop !13

116:                                              ; preds = %.lr.ph270
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %684

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge274
  %118 = phi i32 [ %123, %._crit_edge274 ], [ %113, %.preheader.preheader ]
  %119 = phi i32 [ %126, %._crit_edge274 ], [ 0, %.preheader.preheader ]
  %120 = phi i32 [ %125, %._crit_edge274 ], [ %.pre, %.preheader.preheader ]
  %.0178275 = phi i32 [ %.1179.lcssa, %._crit_edge274 ], [ 0, %.preheader.preheader ]
  %121 = icmp sgt i32 %120, 0
  br i1 %121, label %.lr.ph273, label %._crit_edge274

._crit_edge276.thread:                            ; preds = %._crit_edge, %._crit_edge.thread
  %.ph373 = phi i32 [ %.ph, %._crit_edge.thread ], [ %113, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  br label %184

._crit_edge276:                                   ; preds = %._crit_edge274
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  %122 = and i32 %.1179.lcssa, 1
  %.not205 = icmp eq i32 %122, 0
  br i1 %.not205, label %184, label %178

._crit_edge274.loopexit:                          ; preds = %173
  %.pre368 = load i32, ptr %12, align 4, !tbaa !8
  %.pre369 = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge274

._crit_edge274:                                   ; preds = %._crit_edge274.loopexit, %.preheader
  %123 = phi i32 [ %118, %.preheader ], [ %.pre369, %._crit_edge274.loopexit ]
  %124 = phi i32 [ %119, %.preheader ], [ %.pre368, %._crit_edge274.loopexit ]
  %125 = phi i32 [ %120, %.preheader ], [ %174, %._crit_edge274.loopexit ]
  %.1179.lcssa = phi i32 [ %.0178275, %.preheader ], [ %.2180, %._crit_edge274.loopexit ]
  %126 = add nsw i32 %124, 1
  store i32 %126, ptr %12, align 4, !tbaa !8
  %127 = icmp slt i32 %126, %123
  br i1 %127, label %.preheader, label %._crit_edge276, !llvm.loop !14

.lr.ph273:                                        ; preds = %.preheader, %173
  %indvars.iv341 = phi i64 [ %indvars.iv.next342, %173 ], [ 0, %.preheader ]
  %.1179272 = phi i32 [ %.2180, %173 ], [ %.0178275, %.preheader ]
  %128 = load i32, ptr %12, align 4, !tbaa !8
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %129) #8
  %131 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %130, i64 noundef %indvars.iv341)
          to label %132 unwind label %140

132:                                              ; preds = %.lr.ph273
  %133 = load i8, ptr %131, align 1, !tbaa !15
  %134 = icmp eq i8 %133, 63
  br i1 %134, label %135, label %144

135:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  %136 = load i32, ptr %2, align 4, !tbaa !8
  %137 = trunc nuw nsw i64 %indvars.iv341 to i32
  %138 = add nsw i32 %136, %137
  store i32 %138, ptr %14, align 4, !tbaa !8
  call void @_ZNSt4pairIiiEC2IRiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %14)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %139 unwind label %142

139:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %173

140:                                              ; preds = %149, %144, %.lr.ph273
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %177

142:                                              ; preds = %135
  %143 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %177

144:                                              ; preds = %132
  %145 = load i32, ptr %12, align 4, !tbaa !8
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %146) #8
  %148 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %147, i64 noundef %indvars.iv341)
          to label %149 unwind label %140

149:                                              ; preds = %144
  %150 = load i8, ptr %148, align 1, !tbaa !15
  %151 = load i32, ptr %12, align 4, !tbaa !8
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %152) #8
  %154 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %153, i64 noundef %indvars.iv341)
          to label %155 unwind label %140

155:                                              ; preds = %149
  %156 = load i8, ptr %154, align 1, !tbaa !15
  %.not239 = icmp eq i8 %150, %156
  br i1 %.not239, label %173, label %157

157:                                              ; preds = %155
  %158 = add nsw i32 %.1179272, 1
  %159 = load i32, ptr %12, align 4, !tbaa !8
  %160 = sext i32 %159 to i64
  %161 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @g, i64 noundef %160) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  %162 = load i32, ptr %2, align 4, !tbaa !8
  %163 = trunc nuw nsw i64 %indvars.iv341 to i32
  %164 = add nsw i32 %162, %163
  store i32 %164, ptr %15, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %161, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %165 unwind label %171

165:                                              ; preds = %157
  %166 = load i32, ptr %2, align 4, !tbaa !8
  %167 = add nsw i32 %166, %163
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @g, i64 noundef %168) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %169, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %170 unwind label %171

170:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  br label %173

171:                                              ; preds = %165, %157
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  br label %177

173:                                              ; preds = %139, %170, %155
  %.2180 = phi i32 [ %.1179272, %139 ], [ %158, %170 ], [ %.1179272, %155 ]
  %indvars.iv.next342 = add nuw nsw i64 %indvars.iv341, 1
  %174 = load i32, ptr %3, align 4, !tbaa !8
  %175 = sext i32 %174 to i64
  %176 = icmp slt i64 %indvars.iv.next342, %175
  br i1 %176, label %.lr.ph273, label %._crit_edge274.loopexit, !llvm.loop !16

177:                                              ; preds = %171, %142, %140
  %.pn240 = phi { ptr, i32 } [ %143, %142 ], [ %172, %171 ], [ %141, %140 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  br label %684

178:                                              ; preds = %._crit_edge276
  %179 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIiiESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  br i1 %179, label %180, label %._crit_edge370

._crit_edge370:                                   ; preds = %178
  %.pre371 = load i32, ptr %2, align 4, !tbaa !8
  br label %184

180:                                              ; preds = %178
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %676 unwind label %182, !llvm.loop !17

182:                                              ; preds = %180
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %684

184:                                              ; preds = %._crit_edge276.thread, %._crit_edge370, %._crit_edge276
  %185 = phi i32 [ %.pre371, %._crit_edge370 ], [ %123, %._crit_edge276 ], [ %.ph373, %._crit_edge276.thread ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #8
  %186 = load i32, ptr %3, align 4, !tbaa !8
  %187 = add nsw i32 %186, %185
  %188 = sext i32 %187 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %188, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %189 unwind label %197

189:                                              ; preds = %184
  %190 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @visited, ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  store i32 0, ptr @cc, align 4, !tbaa !8
  %191 = load i32, ptr %2, align 4, !tbaa !8
  %192 = load i32, ptr %3, align 4, !tbaa !8
  %193 = add nsw i32 %192, %191
  %194 = icmp sgt i32 %193, 0
  br i1 %194, label %.lr.ph280, label %._crit_edge281

._crit_edge281.loopexit:                          ; preds = %207
  %.pre372 = load i32, ptr @cc, align 4, !tbaa !8
  br label %._crit_edge281

._crit_edge281:                                   ; preds = %._crit_edge281.loopexit, %189
  %195 = phi i32 [ %.pre372, %._crit_edge281.loopexit ], [ 0, %189 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #8
  %196 = sext i32 %195 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %196, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %213 unwind label %223

197:                                              ; preds = %184
  %198 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  br label %684

.lr.ph280:                                        ; preds = %189, %207
  %indvars.iv344 = phi i64 [ %indvars.iv.next345, %207 ], [ 0, %189 ]
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @visited, i64 noundef %indvars.iv344) #8
  %200 = load i32, ptr %199, align 4, !tbaa !8
  %.not238 = icmp eq i32 %200, 0
  br i1 %.not238, label %201, label %207

201:                                              ; preds = %.lr.ph280
  %202 = load i32, ptr @cc, align 4, !tbaa !8
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr @cc, align 4, !tbaa !8
  %204 = trunc nuw nsw i64 %indvars.iv344 to i32
  invoke void @_Z3dfsi(i32 noundef %204)
          to label %207 unwind label %205

205:                                              ; preds = %201
  %206 = landingpad { ptr, i32 }
          cleanup
  br label %684

207:                                              ; preds = %.lr.ph280, %201
  %indvars.iv.next345 = add nuw nsw i64 %indvars.iv344, 1
  %208 = load i32, ptr %2, align 4, !tbaa !8
  %209 = load i32, ptr %3, align 4, !tbaa !8
  %210 = add nsw i32 %209, %208
  %211 = sext i32 %210 to i64
  %212 = icmp slt i64 %indvars.iv.next345, %211
  br i1 %212, label %.lr.ph280, label %._crit_edge281.loopexit, !llvm.loop !18

213:                                              ; preds = %._crit_edge281
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #8
  %214 = load i32, ptr @cc, align 4, !tbaa !8
  %215 = sext i32 %214 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #8
  call void @_ZNSaI5graphEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #8
  invoke void @_ZNSt6vectorI5graphSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %215, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %216 unwind label %225

216:                                              ; preds = %213
  call void @_ZNSt15__new_allocatorI5graphED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #8
  store i32 0, ptr %22, align 4, !tbaa !8
  %217 = load i32, ptr %2, align 4, !tbaa !8
  %218 = load i32, ptr %3, align 4, !tbaa !8
  %219 = add nsw i32 %218, %217
  %220 = icmp sgt i32 %219, 0
  br i1 %220, label %.lr.ph284, label %._crit_edge285

._crit_edge285:                                   ; preds = %248, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  %221 = load i32, ptr @cc, align 4, !tbaa !8
  %222 = icmp sgt i32 %221, 0
  br i1 %222, label %.lr.ph288, label %.preheader252

223:                                              ; preds = %._crit_edge281
  %224 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #8
  br label %683

225:                                              ; preds = %213
  %226 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI5graphED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #8
  br label %682

.lr.ph284:                                        ; preds = %216, %248
  %storemerge206282 = phi i32 [ %250, %248 ], [ 0, %216 ]
  %227 = sext i32 %storemerge206282 to i64
  %228 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @g, i64 noundef %227) #8
  %229 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %228) #8
  %230 = load i32, ptr %22, align 4, !tbaa !8
  %231 = sext i32 %230 to i64
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @visited, i64 noundef %231) #8
  %233 = load i32, ptr %232, align 4, !tbaa !8
  %234 = add nsw i32 %233, -1
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %235) #8
  %237 = load i32, ptr %236, align 4, !tbaa !8
  %238 = trunc i64 %229 to i32
  %239 = add i32 %237, %238
  store i32 %239, ptr %236, align 4, !tbaa !8
  %240 = load i32, ptr %22, align 4, !tbaa !8
  %241 = sext i32 %240 to i64
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @visited, i64 noundef %241) #8
  %243 = load i32, ptr %242, align 4, !tbaa !8
  %244 = add nsw i32 %243, -1
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %245) #8
  %247 = getelementptr inbounds i8, ptr %246, i64 32
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %247, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %248 unwind label %255

248:                                              ; preds = %.lr.ph284
  %249 = load i32, ptr %22, align 4, !tbaa !8
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %22, align 4, !tbaa !8
  %251 = load i32, ptr %2, align 4, !tbaa !8
  %252 = load i32, ptr %3, align 4, !tbaa !8
  %253 = add nsw i32 %252, %251
  %254 = icmp slt i32 %250, %253
  br i1 %254, label %.lr.ph284, label %._crit_edge285, !llvm.loop !19

255:                                              ; preds = %.lr.ph284
  %256 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  br label %681

.preheader252:                                    ; preds = %.lr.ph288, %._crit_edge285
  %257 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %.not327 = icmp eq i64 %257, 0
  br i1 %.not327, label %.preheader251, label %.lr.ph290

.lr.ph288:                                        ; preds = %._crit_edge285, %.lr.ph288
  %indvars.iv347 = phi i64 [ %indvars.iv.next348, %.lr.ph288 ], [ 0, %._crit_edge285 ]
  %258 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv347) #8
  %259 = load i32, ptr %258, align 4, !tbaa !8
  %260 = sdiv i32 %259, 2
  store i32 %260, ptr %258, align 4, !tbaa !8
  %indvars.iv.next348 = add nuw nsw i64 %indvars.iv347, 1
  %261 = load i32, ptr @cc, align 4, !tbaa !8
  %262 = sext i32 %261 to i64
  %263 = icmp slt i64 %indvars.iv.next348, %262
  br i1 %263, label %.lr.ph288, label %.preheader252, !llvm.loop !20

.preheader251:                                    ; preds = %315, %.preheader252
  %264 = load i32, ptr @cc, align 4
  %265 = icmp sgt i32 %264, 0
  br i1 %265, label %.lr.ph293, label %.loopexit250

.lr.ph290:                                        ; preds = %.preheader252, %315
  %indvars.iv350 = phi i64 [ %indvars.iv.next351, %315 ], [ 0, %.preheader252 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #8
  %266 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv350) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #8
  call void @_ZSt3tieIJiiEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %25, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24) #8
  %267 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRiS0_EEaSIiiEENSt9enable_ifIXcl12__assignableIRKT_RKT0_EEERS1_E4typeERKSt4pairIS4_S7_E(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(8) %266) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #8
  %268 = load i32, ptr %23, align 4, !tbaa !8
  %269 = sext i32 %268 to i64
  %270 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @visited, i64 noundef %269) #8
  %271 = load i32, ptr %270, align 4, !tbaa !8
  %272 = add nsw i32 %271, -1
  %273 = sext i32 %272 to i64
  %274 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %273) #8
  %275 = load i32, ptr %274, align 4, !tbaa !8
  %276 = and i32 %275, 1
  %.not230 = icmp eq i32 %276, 0
  br i1 %.not230, label %291, label %277

277:                                              ; preds = %.lr.ph290
  %278 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %273) #8
  %279 = getelementptr inbounds i8, ptr %278, i64 32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #8
  %280 = load i32, ptr %2, align 4, !tbaa !8
  %281 = load i32, ptr %3, align 4, !tbaa !8
  %282 = trunc nuw nsw i64 %indvars.iv350 to i32
  %283 = add i32 %280, %282
  %284 = add i32 %283, %281
  store i32 %284, ptr %26, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %279, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %285 unwind label %289

285:                                              ; preds = %277
  %286 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %273) #8
  %287 = load i32, ptr %286, align 4, !tbaa !8
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %286, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #8
  br label %291

289:                                              ; preds = %277
  %290 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #8
  br label %318

291:                                              ; preds = %285, %.lr.ph290
  %292 = load i32, ptr %24, align 4, !tbaa !8
  %293 = sext i32 %292 to i64
  %294 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @visited, i64 noundef %293) #8
  %295 = load i32, ptr %294, align 4, !tbaa !8
  %296 = add nsw i32 %295, -1
  %297 = sext i32 %296 to i64
  %298 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %297) #8
  %299 = load i32, ptr %298, align 4, !tbaa !8
  %300 = and i32 %299, 1
  %.not231 = icmp eq i32 %300, 0
  br i1 %.not231, label %315, label %301

301:                                              ; preds = %291
  %302 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %297) #8
  %303 = getelementptr inbounds i8, ptr %302, i64 32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #8
  %304 = load i32, ptr %2, align 4, !tbaa !8
  %305 = load i32, ptr %3, align 4, !tbaa !8
  %306 = trunc nuw nsw i64 %indvars.iv350 to i32
  %307 = add i32 %304, %306
  %308 = add i32 %307, %305
  store i32 %308, ptr %27, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %303, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %309 unwind label %313

309:                                              ; preds = %301
  %310 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %297) #8
  %311 = load i32, ptr %310, align 4, !tbaa !8
  %312 = add nsw i32 %311, 1
  store i32 %312, ptr %310, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #8
  br label %315

313:                                              ; preds = %301
  %314 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #8
  br label %318

315:                                              ; preds = %309, %291
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  %indvars.iv.next351 = add nuw nsw i64 %indvars.iv350, 1
  %316 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %317 = icmp ugt i64 %316, %indvars.iv.next351
  br i1 %317, label %.lr.ph290, label %.preheader251, !llvm.loop !21

318:                                              ; preds = %313, %289
  %.pn232 = phi { ptr, i32 } [ %314, %313 ], [ %290, %289 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  br label %681

._crit_edge294:                                   ; preds = %.lr.ph293
  %319 = and i32 %324, 1
  %.not207 = icmp ne i32 %319, 0
  %320 = icmp sgt i32 %325, 0
  %or.cond = and i1 %.not207, %320
  br i1 %or.cond, label %.lr.ph297, label %.loopexit250

.lr.ph293:                                        ; preds = %.preheader251, %.lr.ph293
  %indvars.iv353 = phi i64 [ %indvars.iv.next354, %.lr.ph293 ], [ 0, %.preheader251 ]
  %.0187292 = phi i32 [ %324, %.lr.ph293 ], [ 0, %.preheader251 ]
  %321 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv353) #8
  %322 = load i32, ptr %321, align 4, !tbaa !8
  %323 = srem i32 %322, 2
  %324 = add nsw i32 %323, %.0187292
  %indvars.iv.next354 = add nuw nsw i64 %indvars.iv353, 1
  %325 = load i32, ptr @cc, align 4
  %326 = sext i32 %325 to i64
  %327 = icmp slt i64 %indvars.iv.next354, %326
  br i1 %327, label %.lr.ph293, label %._crit_edge294, !llvm.loop !22

328:                                              ; preds = %.lr.ph297
  %indvars.iv.next357 = add nuw nsw i64 %indvars.iv356, 1
  %329 = load i32, ptr @cc, align 4, !tbaa !8
  %330 = sext i32 %329 to i64
  %331 = icmp slt i64 %indvars.iv.next357, %330
  br i1 %331, label %.lr.ph297, label %.loopexit250, !llvm.loop !23

.lr.ph297:                                        ; preds = %._crit_edge294, %328
  %indvars.iv356 = phi i64 [ %indvars.iv.next357, %328 ], [ 0, %._crit_edge294 ]
  %332 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv356) #8
  %333 = getelementptr inbounds i8, ptr %332, i64 32
  %334 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %333) #8
  %335 = load i32, ptr %334, align 4, !tbaa !8
  %336 = load i32, ptr %2, align 4, !tbaa !8
  %337 = load i32, ptr %3, align 4, !tbaa !8
  %338 = add nsw i32 %337, %336
  %.not208 = icmp slt i32 %335, %338
  br i1 %.not208, label %328, label %339

339:                                              ; preds = %.lr.ph297
  %340 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv356) #8
  %341 = load i32, ptr %340, align 4, !tbaa !8
  %342 = add nsw i32 %341, -1
  store i32 %342, ptr %340, align 4, !tbaa !8
  %343 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv356) #8
  %344 = getelementptr inbounds i8, ptr %343, i64 32
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %344) #8
  br label %.loopexit250

.loopexit250:                                     ; preds = %328, %.preheader251, %339, %._crit_edge294
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #8
  %345 = load i32, ptr %2, align 4, !tbaa !8
  %346 = load i32, ptr %3, align 4, !tbaa !8
  %347 = add nsw i32 %346, %345
  %348 = sext i32 %347 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %348, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %349 unwind label %353

349:                                              ; preds = %.loopexit250
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %30) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #8
  call void @_ZNSt6vectorI2opSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %350 = load i32, ptr @cc, align 4, !tbaa !8
  %351 = icmp sgt i32 %350, 0
  br i1 %351, label %.lr.ph313, label %._crit_edge314

._crit_edge314:                                   ; preds = %._crit_edge310, %349
  %352 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIiiESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  br i1 %352, label %594, label %601

353:                                              ; preds = %.loopexit250
  %354 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #8
  br label %680

.lr.ph313:                                        ; preds = %349, %._crit_edge310
  %indvars.iv362 = phi i64 [ %indvars.iv.next363, %._crit_edge310 ], [ 0, %349 ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %32) #8
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %32) #8
  %355 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %356 = getelementptr inbounds i8, ptr %355, i64 32
  %357 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %356) #8
  %.not328 = icmp eq i64 %357, 0
  br i1 %.not328, label %.loopexit, label %.lr.ph300

.lr.ph300:                                        ; preds = %.lr.ph313, %371
  %indvars.iv359 = phi i64 [ %indvars.iv.next360, %371 ], [ 0, %.lr.ph313 ]
  %358 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %359 = getelementptr inbounds i8, ptr %358, i64 32
  %360 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %359, i64 noundef %indvars.iv359) #8
  %361 = load i32, ptr %360, align 4, !tbaa !8
  %362 = load i32, ptr %2, align 4, !tbaa !8
  %363 = load i32, ptr %3, align 4, !tbaa !8
  %364 = add nsw i32 %363, %362
  %365 = icmp slt i32 %361, %364
  br i1 %365, label %366, label %385

366:                                              ; preds = %.lr.ph300
  %367 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %368 = getelementptr inbounds i8, ptr %367, i64 32
  %369 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %368, i64 noundef %indvars.iv359) #8
  %370 = invoke { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %32, ptr noundef nonnull align 4 dereferenceable(4) %369)
          to label %371 unwind label %383

371:                                              ; preds = %366
  %372 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %373 = getelementptr inbounds i8, ptr %372, i64 32
  %374 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %373, i64 noundef %indvars.iv359) #8
  %375 = load i32, ptr %374, align 4, !tbaa !8
  %376 = sext i32 %375 to i64
  %377 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %376) #8
  %378 = trunc nuw nsw i64 %indvars.iv359 to i32
  store i32 %378, ptr %377, align 4, !tbaa !8
  %indvars.iv.next360 = add nuw nsw i64 %indvars.iv359, 1
  %379 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %380 = getelementptr inbounds i8, ptr %379, i64 32
  %381 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %380) #8
  %382 = icmp ugt i64 %381, %indvars.iv.next360
  br i1 %382, label %.lr.ph300, label %.loopexit, !llvm.loop !24

383:                                              ; preds = %366
  %384 = landingpad { ptr, i32 }
          cleanup
  br label %593

385:                                              ; preds = %.lr.ph300
  %386 = trunc nuw nsw i64 %indvars.iv359 to i32
  %387 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %388 = getelementptr inbounds i8, ptr %387, i64 32
  %389 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %388, i64 noundef %indvars.iv359) #8
  %390 = load i32, ptr %389, align 4, !tbaa !8
  %391 = load i32, ptr %2, align 4, !tbaa !8
  %392 = load i32, ptr %3, align 4, !tbaa !8
  %393 = add i32 %391, %392
  %394 = sub i32 %390, %393
  %395 = sext i32 %394 to i64
  %396 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %395) #8
  %397 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %32, ptr noundef nonnull align 4 dereferenceable(4) %396)
          to label %398 unwind label %418

398:                                              ; preds = %385
  %.not215 = icmp eq i64 %397, 0
  br i1 %.not215, label %399, label %420

399:                                              ; preds = %398
  %400 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %395) #8
  %401 = load i32, ptr %400, align 4, !tbaa !25
  %402 = sext i32 %401 to i64
  %403 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %402) #8
  store i32 %386, ptr %403, align 4, !tbaa !8
  %404 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %405 = getelementptr inbounds i8, ptr %404, i64 32
  %406 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %395) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %405, ptr noundef nonnull align 4 dereferenceable(4) %406)
          to label %407 unwind label %418

407:                                              ; preds = %399
  %408 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %409 = getelementptr inbounds i8, ptr %408, i64 32
  %410 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %409, i64 noundef %indvars.iv359) #8
  %411 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %412 = getelementptr inbounds i8, ptr %411, i64 32
  %413 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %412) #8
  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) %410, ptr noundef nonnull align 4 dereferenceable(4) %413) #8
  %414 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %395) #8
  %415 = invoke { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %32, ptr noundef nonnull align 4 dereferenceable(4) %414)
          to label %416 unwind label %418

416:                                              ; preds = %407
  %417 = add nuw nsw i32 %386, 1
  br label %420

418:                                              ; preds = %435, %425, %420, %407, %399, %385
  %419 = landingpad { ptr, i32 }
          cleanup
  br label %593

420:                                              ; preds = %416, %398
  %.1196 = phi i32 [ %386, %398 ], [ %417, %416 ]
  %421 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %395) #8
  %422 = getelementptr inbounds i8, ptr %421, i64 4
  %423 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %32, ptr noundef nonnull align 4 dereferenceable(4) %422)
          to label %424 unwind label %418

424:                                              ; preds = %420
  %.not216 = icmp eq i64 %423, 0
  br i1 %.not216, label %425, label %.loopexit

425:                                              ; preds = %424
  %426 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %395) #8
  %427 = getelementptr inbounds i8, ptr %426, i64 4
  %428 = load i32, ptr %427, align 4, !tbaa !27
  %429 = sext i32 %428 to i64
  %430 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %429) #8
  store i32 %.1196, ptr %430, align 4, !tbaa !8
  %431 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %432 = getelementptr inbounds i8, ptr %431, i64 32
  %433 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %395) #8
  %434 = getelementptr inbounds i8, ptr %433, i64 4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %432, ptr noundef nonnull align 4 dereferenceable(4) %434)
          to label %435 unwind label %418

435:                                              ; preds = %425
  %436 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %437 = getelementptr inbounds i8, ptr %436, i64 32
  %438 = sext i32 %.1196 to i64
  %439 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %437, i64 noundef %438) #8
  %440 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %441 = getelementptr inbounds i8, ptr %440, i64 32
  %442 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %441) #8
  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) %439, ptr noundef nonnull align 4 dereferenceable(4) %442) #8
  %443 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %395) #8
  %444 = getelementptr inbounds i8, ptr %443, i64 4
  %445 = invoke { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %32, ptr noundef nonnull align 4 dereferenceable(4) %444)
          to label %.loopexit unwind label %418

.loopexit:                                        ; preds = %371, %.lr.ph313, %424, %435
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %33) #8
  %446 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %447 = getelementptr inbounds i8, ptr %446, i64 32
  %448 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %447) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %34) #8
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #8
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %448, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %449 unwind label %463

449:                                              ; preds = %.loopexit
  %450 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @h, ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %35) #8
  %451 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %452 = getelementptr inbounds i8, ptr %451, i64 32
  %453 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %452) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %36) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %453, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %454 unwind label %465

454:                                              ; preds = %449
  %455 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @visited, ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %36) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %35) #8
  %456 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %457 = getelementptr inbounds i8, ptr %456, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #8
  %458 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %457) #8
  store ptr %458, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #8
  %459 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %457) #8
  store ptr %459, ptr %38, align 8
  %460 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  br i1 %460, label %.lr.ph306, label %._crit_edge307

._crit_edge307:                                   ; preds = %526, %454
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @sols) #8
  %461 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @visited, i64 noundef 0) #8
  store i32 1, ptr %461, align 4, !tbaa !8
  %462 = invoke noundef i32 @_Z4dfs2i(i32 noundef 0)
          to label %530 unwind label %541

463:                                              ; preds = %.loopexit
  %464 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #8
  br label %593

465:                                              ; preds = %449
  %466 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %36) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %35) #8
  br label %593

.lr.ph306:                                        ; preds = %454, %526
  %467 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  %468 = load i32, ptr %467, align 4, !tbaa !8
  %469 = load i32, ptr %2, align 4, !tbaa !8
  %470 = load i32, ptr %3, align 4, !tbaa !8
  %471 = add nsw i32 %470, %469
  %472 = icmp slt i32 %468, %471
  br i1 %472, label %473, label %496

473:                                              ; preds = %.lr.ph306
  %474 = sext i32 %468 to i64
  %475 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @g, i64 noundef %474) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #8
  %476 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %475) #8
  store ptr %476, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %40) #8
  %477 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %475) #8
  store ptr %477, ptr %40, align 8
  %478 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  br i1 %478, label %.lr.ph303, label %._crit_edge304

._crit_edge304:                                   ; preds = %493, %473
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #8
  br label %526

.lr.ph303:                                        ; preds = %473, %493
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %41) #8
  %479 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  %480 = load i32, ptr %479, align 4, !tbaa !8
  store i32 %480, ptr %41, align 4, !tbaa !8
  %481 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %32, ptr noundef nonnull align 4 dereferenceable(4) %41)
          to label %482 unwind label %491

482:                                              ; preds = %.lr.ph303
  %.not222 = icmp eq i64 %481, 0
  br i1 %.not222, label %493, label %483

483:                                              ; preds = %482
  %484 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %474) #8
  %485 = load i32, ptr %484, align 4, !tbaa !8
  %486 = sext i32 %485 to i64
  %487 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @h, i64 noundef %486) #8
  %488 = load i32, ptr %41, align 4, !tbaa !8
  %489 = sext i32 %488 to i64
  %490 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %489) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %487, ptr noundef nonnull align 4 dereferenceable(4) %490)
          to label %493 unwind label %491

491:                                              ; preds = %483, %.lr.ph303
  %492 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #8
  br label %529

493:                                              ; preds = %483, %482
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #8
  %494 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  %495 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  br i1 %495, label %.lr.ph303, label %._crit_edge304

496:                                              ; preds = %.lr.ph306
  %497 = sub nsw i32 %468, %471
  %498 = sext i32 %497 to i64
  %499 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %498) #8
  %500 = load i32, ptr %499, align 4, !tbaa !25
  %501 = sext i32 %500 to i64
  %502 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %501) #8
  %503 = load i32, ptr %502, align 4, !tbaa !8
  %504 = sext i32 %503 to i64
  %505 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @h, i64 noundef %504) #8
  %506 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %498) #8
  %507 = getelementptr inbounds i8, ptr %506, i64 4
  %508 = load i32, ptr %507, align 4, !tbaa !27
  %509 = sext i32 %508 to i64
  %510 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %509) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %505, ptr noundef nonnull align 4 dereferenceable(4) %510)
          to label %511 unwind label %524

511:                                              ; preds = %496
  %512 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %498) #8
  %513 = getelementptr inbounds i8, ptr %512, i64 4
  %514 = load i32, ptr %513, align 4, !tbaa !27
  %515 = sext i32 %514 to i64
  %516 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %515) #8
  %517 = load i32, ptr %516, align 4, !tbaa !8
  %518 = sext i32 %517 to i64
  %519 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @h, i64 noundef %518) #8
  %520 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %498) #8
  %521 = load i32, ptr %520, align 4, !tbaa !25
  %522 = sext i32 %521 to i64
  %523 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %522) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %519, ptr noundef nonnull align 4 dereferenceable(4) %523)
          to label %526 unwind label %524

524:                                              ; preds = %511, %496
  %525 = landingpad { ptr, i32 }
          cleanup
  br label %529

526:                                              ; preds = %511, %._crit_edge304
  %527 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  %528 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  br i1 %528, label %.lr.ph306, label %._crit_edge307

529:                                              ; preds = %524, %491
  %.pn223 = phi { ptr, i32 } [ %492, %491 ], [ %525, %524 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #8
  br label %593

530:                                              ; preds = %._crit_edge307
  %531 = icmp sgt i32 %462, -1
  br i1 %531, label %532, label %545

532:                                              ; preds = %530
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #8
  %533 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %534 = getelementptr inbounds i8, ptr %533, i64 32
  %535 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %534, i64 noundef 0) #8
  %536 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %537 = getelementptr inbounds i8, ptr %536, i64 32
  %538 = zext nneg i32 %462 to i64
  %539 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %537, i64 noundef %538) #8
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %42, ptr noundef nonnull align 4 dereferenceable(4) %535, ptr noundef nonnull align 4 dereferenceable(4) %539)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 4 dereferenceable(8) %42)
          to label %540 unwind label %543

540:                                              ; preds = %532
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #8
  br label %545

541:                                              ; preds = %._crit_edge307
  %542 = landingpad { ptr, i32 }
          cleanup
  br label %593

543:                                              ; preds = %532
  %544 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #8
  br label %593

545:                                              ; preds = %540, %530
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %43) #8
  %546 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @sols) #8
  store ptr %546, ptr %43, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %44) #8
  %547 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @sols) #8
  store ptr %547, ptr %44, align 8
  %548 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  br i1 %548, label %.lr.ph309, label %._crit_edge310

._crit_edge310:                                   ; preds = %588, %545
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #8
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %32) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %32) #8
  %indvars.iv.next363 = add nuw nsw i64 %indvars.iv362, 1
  %549 = load i32, ptr @cc, align 4, !tbaa !8
  %550 = sext i32 %549 to i64
  %551 = icmp slt i64 %indvars.iv.next363, %550
  br i1 %551, label %.lr.ph313, label %._crit_edge314, !llvm.loop !28

.lr.ph309:                                        ; preds = %545, %588
  %552 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  %.sroa.049.0.copyload = load i32, ptr %552, align 4
  %.sroa.550.0..sroa_idx = getelementptr inbounds i8, ptr %552, i64 4
  %.sroa.550.0.copyload = load i32, ptr %.sroa.550.0..sroa_idx, align 4
  %.sroa.651.0..sroa_idx = getelementptr inbounds i8, ptr %552, i64 8
  %.sroa.651.0.copyload = load i32, ptr %.sroa.651.0..sroa_idx, align 4
  %.sroa.752.0..sroa_idx = getelementptr inbounds i8, ptr %552, i64 12
  %.sroa.752.0.copyload = load i32, ptr %.sroa.752.0..sroa_idx, align 4
  %553 = icmp eq i32 %.sroa.049.0.copyload, %.sroa.651.0.copyload
  br i1 %553, label %561, label %554

554:                                              ; preds = %.lr.ph309
  %555 = icmp eq i32 %.sroa.049.0.copyload, %.sroa.752.0.copyload
  br i1 %555, label %561, label %556

556:                                              ; preds = %554
  %557 = icmp eq i32 %.sroa.550.0.copyload, %.sroa.651.0.copyload
  br i1 %557, label %561, label %558

558:                                              ; preds = %556
  %559 = icmp eq i32 %.sroa.550.0.copyload, %.sroa.752.0.copyload
  br i1 %559, label %561, label %560

560:                                              ; preds = %558
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, i32 noundef 154, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

561:                                              ; preds = %558, %556, %554, %.lr.ph309
  %.0192 = phi i32 [ %.sroa.049.0.copyload, %.lr.ph309 ], [ %.sroa.049.0.copyload, %554 ], [ %.sroa.550.0.copyload, %556 ], [ %.sroa.550.0.copyload, %558 ]
  %.0191 = phi i32 [ %.sroa.550.0.copyload, %.lr.ph309 ], [ %.sroa.550.0.copyload, %554 ], [ %.sroa.049.0.copyload, %556 ], [ %.sroa.049.0.copyload, %558 ]
  %.0190 = phi i32 [ %.sroa.752.0.copyload, %.lr.ph309 ], [ %.sroa.651.0.copyload, %554 ], [ %.sroa.752.0.copyload, %556 ], [ %.sroa.651.0.copyload, %558 ]
  %562 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %563 = getelementptr inbounds i8, ptr %562, i64 32
  %564 = sext i32 %.0192 to i64
  %565 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %563, i64 noundef %564) #8
  %566 = load i32, ptr %565, align 4, !tbaa !8
  %567 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %568 = getelementptr inbounds i8, ptr %567, i64 32
  %569 = sext i32 %.0191 to i64
  %570 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %568, i64 noundef %569) #8
  %571 = load i32, ptr %570, align 4, !tbaa !8
  %572 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI5graphSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv362) #8
  %573 = getelementptr inbounds i8, ptr %572, i64 32
  %574 = sext i32 %.0190 to i64
  %575 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %573, i64 noundef %574) #8
  %576 = load i32, ptr %575, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %45) #8
  %577 = load i32, ptr %2, align 4
  %578 = icmp sge i32 %566, %577
  %579 = zext i1 %578 to i64
  %580 = getelementptr inbounds [3 x i8], ptr @.str.7, i64 0, i64 %579
  %581 = load i8, ptr %580, align 1, !tbaa !15
  store i8 %581, ptr %45, align 4, !tbaa !29
  %.not217 = icmp slt i32 %566, %577
  %582 = select i1 %.not217, i32 0, i32 %577
  %583 = sub nsw i32 %566, %582
  store i32 %583, ptr %61, align 4, !tbaa !31
  %.not218 = icmp slt i32 %571, %577
  %584 = select i1 %.not218, i32 0, i32 %577
  %585 = sub nsw i32 %571, %584
  store i32 %585, ptr %62, align 4, !tbaa !32
  %.not219 = icmp slt i32 %576, %577
  %586 = select i1 %.not219, i32 0, i32 %577
  %587 = sub nsw i32 %576, %586
  store i32 %587, ptr %63, align 4, !tbaa !33
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(16) %45)
          to label %588 unwind label %591

588:                                              ; preds = %561
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %45) #8
  %589 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  %590 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  br i1 %590, label %.lr.ph309, label %._crit_edge310

591:                                              ; preds = %561
  %592 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #8
  br label %593

593:                                              ; preds = %541, %543, %591, %383, %418, %529, %465, %463
  %.pn225.pn = phi { ptr, i32 } [ %.pn223, %529 ], [ %466, %465 ], [ %464, %463 ], [ %384, %383 ], [ %419, %418 ], [ %592, %591 ], [ %544, %543 ], [ %542, %541 ]
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %32) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %32) #8
  br label %679

594:                                              ; preds = %._crit_edge314
  %595 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %596 = and i64 %595, 1
  %.not209 = icmp eq i64 %596, 0
  br i1 %.not209, label %601, label %597

597:                                              ; preds = %594
  %598 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %675 unwind label %599, !llvm.loop !17

599:                                              ; preds = %643, %640, %597
  %600 = landingpad { ptr, i32 }
          cleanup
  br label %679

601:                                              ; preds = %594, %._crit_edge314
  %602 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %603 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %604 = and i64 %603, 1
  %.not329 = icmp eq i64 %602, %604
  br i1 %.not329, label %._crit_edge318, label %.lr.ph317

._crit_edge318:                                   ; preds = %616, %601
  %605 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %606 = and i64 %605, 1
  %.not210 = icmp eq i64 %606, 0
  br i1 %.not210, label %640, label %626

.lr.ph317:                                        ; preds = %601, %616
  %indvars.iv365 = phi i64 [ %indvars.iv.next366, %616 ], [ 0, %601 ]
  %607 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv365) #8
  %.sroa.012.0.copyload = load i32, ptr %607, align 4
  %.sroa.614.0..sroa_idx = getelementptr inbounds i8, ptr %607, i64 4
  %.sroa.614.0.copyload = load i32, ptr %.sroa.614.0..sroa_idx, align 4
  %608 = or disjoint i64 %indvars.iv365, 1
  %609 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %608) #8
  %.sroa.09.0.copyload = load i32, ptr %609, align 4
  %.sroa.510.0..sroa_idx = getelementptr inbounds i8, ptr %609, i64 4
  %.sroa.510.0.copyload = load i32, ptr %.sroa.510.0..sroa_idx, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %46) #8
  store i8 82, ptr %46, align 4, !tbaa !29
  store i32 %.sroa.012.0.copyload, ptr %64, align 4, !tbaa !31
  %610 = load i32, ptr %2, align 4, !tbaa !8
  %611 = sub nsw i32 %.sroa.614.0.copyload, %610
  store i32 %611, ptr %65, align 4, !tbaa !32
  %612 = sub nsw i32 %.sroa.510.0.copyload, %610
  store i32 %612, ptr %66, align 4, !tbaa !33
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(16) %46)
          to label %613 unwind label %622

613:                                              ; preds = %.lr.ph317
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %47) #8
  store i8 67, ptr %47, align 4, !tbaa !29
  %614 = load i32, ptr %2, align 4, !tbaa !8
  %615 = sub nsw i32 %.sroa.510.0.copyload, %614
  store i32 %615, ptr %67, align 4, !tbaa !31
  store i32 %.sroa.012.0.copyload, ptr %68, align 4, !tbaa !32
  store i32 %.sroa.09.0.copyload, ptr %69, align 4, !tbaa !33
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(16) %47)
          to label %616 unwind label %624

616:                                              ; preds = %613
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #8
  %indvars.iv.next366 = add nuw nsw i64 %indvars.iv365, 2
  %617 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %618 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %619 = and i64 %618, 1
  %620 = sub i64 %617, %619
  %621 = icmp ugt i64 %620, %indvars.iv.next366
  br i1 %621, label %.lr.ph317, label %._crit_edge318, !llvm.loop !34

622:                                              ; preds = %.lr.ph317
  %623 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #8
  br label %679

624:                                              ; preds = %613
  %625 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #8
  br label %679

626:                                              ; preds = %._crit_edge318
  %627 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %.sroa.06.0.copyload = load i32, ptr %627, align 4
  %.sroa.68.0..sroa_idx = getelementptr inbounds i8, ptr %627, i64 4
  %.sroa.68.0.copyload = load i32, ptr %.sroa.68.0..sroa_idx, align 4
  %628 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #8
  %.sroa.03.0.copyload = load i32, ptr %628, align 4
  %.sroa.54.0..sroa_idx = getelementptr inbounds i8, ptr %628, i64 4
  %.sroa.54.0.copyload = load i32, ptr %.sroa.54.0..sroa_idx, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %48) #8
  store i8 82, ptr %48, align 4, !tbaa !29
  store i32 %.sroa.06.0.copyload, ptr %70, align 4, !tbaa !31
  %629 = load i32, ptr %2, align 4, !tbaa !8
  %630 = sub nsw i32 %.sroa.68.0.copyload, %629
  store i32 %630, ptr %71, align 4, !tbaa !32
  %631 = sub nsw i32 %.sroa.54.0.copyload, %629
  store i32 %631, ptr %72, align 4, !tbaa !33
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(16) %48)
          to label %632 unwind label %636

632:                                              ; preds = %626
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %48) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %49) #8
  store i8 67, ptr %49, align 4, !tbaa !29
  %633 = load i32, ptr %2, align 4, !tbaa !8
  %634 = sub nsw i32 %.sroa.54.0.copyload, %633
  store i32 %634, ptr %73, align 4, !tbaa !31
  store i32 %.sroa.06.0.copyload, ptr %74, align 4, !tbaa !32
  store i32 %.sroa.03.0.copyload, ptr %75, align 4, !tbaa !33
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(16) %49)
          to label %635 unwind label %638

635:                                              ; preds = %632
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %49) #8
  br label %640

636:                                              ; preds = %626
  %637 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %48) #8
  br label %679

638:                                              ; preds = %632
  %639 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %49) #8
  br label %679

640:                                              ; preds = %635, %._crit_edge318
  %641 = call noundef i64 @_ZNKSt6vectorI2opSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %642 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %641)
          to label %643 unwind label %599

643:                                              ; preds = %640
  %644 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %642, i8 noundef signext 10)
          to label %645 unwind label %599

645:                                              ; preds = %643
  %646 = load i32, ptr %4, align 4, !tbaa !8
  %.not212 = icmp eq i32 %646, 0
  br i1 %.not212, label %675, label %647

647:                                              ; preds = %645
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %50) #8
  %648 = call ptr @_ZNSt6vectorI2opSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  store ptr %648, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %51) #8
  %649 = call ptr @_ZNSt6vectorI2opSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  store ptr %649, ptr %51, align 8
  %650 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2opSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %51) #8
  br i1 %650, label %.lr.ph320, label %._crit_edge321

._crit_edge321:                                   ; preds = %670, %647
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %50) #8
  br label %675

.lr.ph320:                                        ; preds = %647, %670
  %651 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2opSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #8
  %.sroa.0.0.copyload = load i8, ptr %651, align 4, !tbaa !15
  %.sroa.51.0..sroa_idx = getelementptr inbounds i8, ptr %651, i64 4
  %.sroa.51.0.copyload = load i32, ptr %.sroa.51.0..sroa_idx, align 4, !tbaa !8
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %651, i64 8
  %.sroa.6.0.copyload = load i32, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !8
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %651, i64 12
  %.sroa.7.0.copyload = load i32, ptr %.sroa.7.0..sroa_idx, align 4, !tbaa !8
  %652 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %.sroa.0.0.copyload)
          to label %653 unwind label %673

653:                                              ; preds = %.lr.ph320
  %654 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %652, i8 noundef signext 32)
          to label %655 unwind label %673

655:                                              ; preds = %653
  %656 = add nsw i32 %.sroa.51.0.copyload, 1
  %657 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %654, i32 noundef %656)
          to label %658 unwind label %673

658:                                              ; preds = %655
  %659 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %657, i8 noundef signext 32)
          to label %660 unwind label %673

660:                                              ; preds = %658
  %661 = add nsw i32 %.sroa.6.0.copyload, 1
  %662 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %659, i32 noundef %661)
          to label %663 unwind label %673

663:                                              ; preds = %660
  %664 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %662, i8 noundef signext 32)
          to label %665 unwind label %673

665:                                              ; preds = %663
  %666 = add nsw i32 %.sroa.7.0.copyload, 1
  %667 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %664, i32 noundef %666)
          to label %668 unwind label %673

668:                                              ; preds = %665
  %669 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %667, i8 noundef signext 10)
          to label %670 unwind label %673

670:                                              ; preds = %668
  %671 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2opSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #8
  %672 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2opSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %51) #8
  br i1 %672, label %.lr.ph320, label %._crit_edge321

673:                                              ; preds = %668, %665, %663, %660, %658, %655, %653, %.lr.ph320
  %674 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %50) #8
  br label %679

675:                                              ; preds = %645, %._crit_edge321, %597
  call void @_ZNSt6vectorI2opSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #8
  call void @_ZNSt6vectorI5graphSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  br label %676

676:                                              ; preds = %180, %675
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  %677 = load i32, ptr %1, align 4, !tbaa !8
  %678 = add nsw i32 %677, -1
  store i32 %678, ptr %1, align 4, !tbaa !8
  %.not = icmp eq i32 %677, 0
  br i1 %.not, label %._crit_edge325, label %76

679:                                              ; preds = %636, %638, %622, %624, %673, %599, %593
  %.pn225.pn.pn = phi { ptr, i32 } [ %.pn225.pn, %593 ], [ %600, %599 ], [ %674, %673 ], [ %625, %624 ], [ %623, %622 ], [ %639, %638 ], [ %637, %636 ]
  call void @_ZNSt6vectorI2opSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  br label %680

680:                                              ; preds = %679, %353
  %.pn225.pn.pn.pn = phi { ptr, i32 } [ %.pn225.pn.pn, %679 ], [ %354, %353 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #8
  br label %681

681:                                              ; preds = %680, %318, %255
  %.pn234 = phi { ptr, i32 } [ %256, %255 ], [ %.pn232, %318 ], [ %.pn225.pn.pn.pn, %680 ]
  call void @_ZNSt6vectorI5graphSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  br label %682

682:                                              ; preds = %681, %225
  %.pn234.pn = phi { ptr, i32 } [ %.pn234, %681 ], [ %226, %225 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  br label %683

683:                                              ; preds = %682, %223
  %.pn234.pn.pn = phi { ptr, i32 } [ %.pn234.pn, %682 ], [ %224, %223 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  br label %684

684:                                              ; preds = %683, %205, %197, %182, %177, %116, %107
  %.pn242 = phi { ptr, i32 } [ %108, %107 ], [ %117, %116 ], [ %.pn240, %177 ], [ %183, %182 ], [ %206, %205 ], [ %.pn234.pn.pn, %683 ], [ %198, %197 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  br label %685

685:                                              ; preds = %684, %99
  %.pn242.pn = phi { ptr, i32 } [ %.pn242, %684 ], [ %100, %99 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br label %686

686:                                              ; preds = %685, %97
  %.pn242.pn.pn = phi { ptr, i32 } [ %.pn242.pn, %685 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  br label %687

687:                                              ; preds = %686, %95
  %.pn242.pn.pn.pn = phi { ptr, i32 } [ %.pn242.pn.pn, %686 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn242.pn.pn.pn

._crit_edge325:                                   ; preds = %676, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

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

; Function Attrs: mustprogress 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 @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorISt4pairIiiESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJiiEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRiS0_EEaSIiiEENSt9enable_ifIXcl12__assignableIRKT_RKT0_EEERS1_E4typeERKSt4pairIS4_S7_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 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 #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #6

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP2opSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2opSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2opSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { "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 = { inlinehint 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 #7 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = !{!26, !9, i64 0}
!26 = !{!"_ZTSSt4pairIiiE", !9, i64 0, !9, i64 4}
!27 = !{!26, !9, i64 4}
!28 = distinct !{!28, !12}
!29 = !{!30, !10, i64 0}
!30 = !{!"_ZTS2op", !10, i64 0, !9, i64 4, !9, i64 8, !9, i64 12}
!31 = !{!30, !9, i64 4}
!32 = !{!30, !9, i64 8}
!33 = !{!30, !9, i64 12}
!34 = distinct !{!34, !12}


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