; LLVM IR from UtkarshPathrabe/Competitive-Coding :: Model Algorithms/Graphs (Depth First Search)

; 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<Nodes, std::allocator<Nodes>>::_Vector_impl" }
%"struct.std::_Vector_base<Nodes, std::allocator<Nodes>>::_Vector_impl" = type { %"struct.std::_Vector_base<Nodes, std::allocator<Nodes>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Nodes, std::allocator<Nodes>>::_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<Edges, std::allocator<Edges>>::_Vector_impl" }
%"struct.std::_Vector_base<Edges, std::allocator<Edges>>::_Vector_impl" = type { %"struct.std::_Vector_base<Edges, std::allocator<Edges>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Edges, std::allocator<Edges>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" }
%"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%struct.Edges = type { i32, i32, i8 }
%struct.Nodes = type { i8, i32, i32, i32, i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.9" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.8" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"struct.std::_List_const_iterator" = type { ptr }
%"struct.std::_List_iterator" = type { ptr }

@Node = external dso_local global %"class.std::vector", align 8
@Edge = external dso_local global %"class.std::vector.0", align 8
@_Z5StackB5cxx11 = external dso_local global %"class.std::__cxx11::list", align 8
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@c = external dso_local global i8, align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [99 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [129 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [58 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(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.end.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3DFSi(i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15TopologicalSorti(i32 noundef) #4

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #5 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.Edges, align 4
  %6 = alloca %struct.Nodes, align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"struct.std::_List_const_iterator", align 8
  %25 = alloca %"struct.std::_List_iterator", align 8
  %26 = alloca %"struct.std::_List_const_iterator", align 8
  %27 = alloca %"struct.std::_List_iterator", align 8
  %28 = alloca %"struct.std::_List_iterator", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #7
  store i8 121, ptr %7, align 1, !tbaa !5
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) @c)
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !8
  br label %35

35:                                               ; preds = %47, %0
  %36 = load i32, ptr %8, align 4, !tbaa !8
  %37 = load i32, ptr @n, align 4, !tbaa !8
  %38 = icmp sle i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %50

40:                                               ; preds = %35
  %41 = getelementptr inbounds %struct.Nodes, ptr %6, i32 0, i32 0
  store i8 119, ptr %41, align 4, !tbaa !10
  %42 = getelementptr inbounds %struct.Nodes, ptr %6, i32 0, i32 1
  store i32 -2147483648, ptr %42, align 4, !tbaa !12
  %43 = getelementptr inbounds %struct.Nodes, ptr %6, i32 0, i32 2
  store i32 -2147483648, ptr %43, align 4, !tbaa !13
  %44 = getelementptr inbounds %struct.Nodes, ptr %6, i32 0, i32 3
  store i32 -2147483648, ptr %44, align 4, !tbaa !14
  %45 = getelementptr inbounds %struct.Nodes, ptr %6, i32 0, i32 4
  store i32 -2147483648, ptr %45, align 4, !tbaa !15
  %46 = getelementptr inbounds %struct.Nodes, ptr %6, i32 0, i32 5
  store i32 -1, ptr %46, align 4, !tbaa !16
  call void @_ZNSt6vectorI5NodesSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @Node, ptr noundef nonnull align 4 dereferenceable(24) %6)
  br label %47

47:                                               ; preds = %40
  %48 = load i32, ptr %8, align 4, !tbaa !8
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %8, align 4, !tbaa !8
  br label %35, !llvm.loop !17

50:                                               ; preds = %39
  %51 = getelementptr inbounds %struct.Edges, ptr %5, i32 0, i32 0
  store i32 -1, ptr %51, align 4, !tbaa !19
  %52 = getelementptr inbounds %struct.Edges, ptr %5, i32 0, i32 1
  store i32 -1, ptr %52, align 4, !tbaa !21
  %53 = getelementptr inbounds %struct.Edges, ptr %5, i32 0, i32 2
  store i8 117, ptr %53, align 4, !tbaa !22
  call void @_ZNSt6vectorI5EdgesSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @Edge, ptr noundef nonnull align 4 dereferenceable(12) %5)
  store i32 1, ptr %4, align 4, !tbaa !8
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %56 = 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)
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 4 dereferenceable(4) %3)
  br label %58

58:                                               ; preds = %115, %50
  %59 = load i8, ptr @c, align 1, !tbaa !5
  %60 = sext i8 %59 to i32
  %61 = icmp eq i32 %60, 100
  br i1 %61, label %62, label %79

62:                                               ; preds = %58
  %63 = load i32, ptr %3, align 4, !tbaa !8
  %64 = getelementptr inbounds %struct.Edges, ptr %5, i32 0, i32 0
  store i32 %63, ptr %64, align 4, !tbaa !19
  %65 = load i32, ptr %2, align 4, !tbaa !8
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %66) #7
  %68 = getelementptr inbounds %struct.Nodes, ptr %67, i32 0, i32 5
  %69 = load i32, ptr %68, align 4, !tbaa !16
  %70 = getelementptr inbounds %struct.Edges, ptr %5, i32 0, i32 1
  store i32 %69, ptr %70, align 4, !tbaa !21
  %71 = getelementptr inbounds %struct.Edges, ptr %5, i32 0, i32 2
  store i8 117, ptr %71, align 4, !tbaa !22
  call void @_ZNSt6vectorI5EdgesSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @Edge, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %72 = load i32, ptr %4, align 4, !tbaa !8
  %73 = load i32, ptr %2, align 4, !tbaa !8
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %74) #7
  %76 = getelementptr inbounds %struct.Nodes, ptr %75, i32 0, i32 5
  store i32 %72, ptr %76, align 4, !tbaa !16
  %77 = load i32, ptr %4, align 4, !tbaa !8
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %4, align 4, !tbaa !8
  br label %112

79:                                               ; preds = %58
  %80 = load i32, ptr %3, align 4, !tbaa !8
  %81 = getelementptr inbounds %struct.Edges, ptr %5, i32 0, i32 0
  store i32 %80, ptr %81, align 4, !tbaa !19
  %82 = load i32, ptr %2, align 4, !tbaa !8
  %83 = sext i32 %82 to i64
  %84 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %83) #7
  %85 = getelementptr inbounds %struct.Nodes, ptr %84, i32 0, i32 5
  %86 = load i32, ptr %85, align 4, !tbaa !16
  %87 = getelementptr inbounds %struct.Edges, ptr %5, i32 0, i32 1
  store i32 %86, ptr %87, align 4, !tbaa !21
  %88 = getelementptr inbounds %struct.Edges, ptr %5, i32 0, i32 2
  store i8 117, ptr %88, align 4, !tbaa !22
  call void @_ZNSt6vectorI5EdgesSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @Edge, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %89 = load i32, ptr %4, align 4, !tbaa !8
  %90 = load i32, ptr %2, align 4, !tbaa !8
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %91) #7
  %93 = getelementptr inbounds %struct.Nodes, ptr %92, i32 0, i32 5
  store i32 %89, ptr %93, align 4, !tbaa !16
  %94 = load i32, ptr %4, align 4, !tbaa !8
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %4, align 4, !tbaa !8
  %96 = load i32, ptr %2, align 4, !tbaa !8
  %97 = getelementptr inbounds %struct.Edges, ptr %5, i32 0, i32 0
  store i32 %96, ptr %97, align 4, !tbaa !19
  %98 = load i32, ptr %3, align 4, !tbaa !8
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %99) #7
  %101 = getelementptr inbounds %struct.Nodes, ptr %100, i32 0, i32 5
  %102 = load i32, ptr %101, align 4, !tbaa !16
  %103 = getelementptr inbounds %struct.Edges, ptr %5, i32 0, i32 1
  store i32 %102, ptr %103, align 4, !tbaa !21
  %104 = getelementptr inbounds %struct.Edges, ptr %5, i32 0, i32 2
  store i8 117, ptr %104, align 4, !tbaa !22
  call void @_ZNSt6vectorI5EdgesSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @Edge, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %105 = load i32, ptr %4, align 4, !tbaa !8
  %106 = load i32, ptr %3, align 4, !tbaa !8
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %107) #7
  %109 = getelementptr inbounds %struct.Nodes, ptr %108, i32 0, i32 5
  store i32 %105, ptr %109, align 4, !tbaa !16
  %110 = load i32, ptr %4, align 4, !tbaa !8
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %4, align 4, !tbaa !8
  br label %112

112:                                              ; preds = %79, %62
  %113 = 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)
  %114 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %113, ptr noundef nonnull align 4 dereferenceable(4) %3)
  br label %115

115:                                              ; preds = %112
  %116 = load i32, ptr %2, align 4, !tbaa !8
  %117 = icmp ne i32 %116, -1
  br i1 %117, label %58, label %118, !llvm.loop !23

118:                                              ; preds = %115
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %121 = 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)
  %122 = load i32, ptr %2, align 4, !tbaa !8
  call void @_Z3DFSi(i32 noundef %122)
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.16)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %125 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %7)
  %126 = load i8, ptr %7, align 1, !tbaa !5
  %127 = sext i8 %126 to i32
  %128 = icmp eq i32 %127, 121
  br i1 %128, label %129, label %337

129:                                              ; preds = %118
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.17)
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.18)
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1, ptr %9, align 4, !tbaa !8
  br label %134

134:                                              ; preds = %185, %129
  %135 = load i32, ptr %9, align 4, !tbaa !8
  %136 = load i32, ptr @n, align 4, !tbaa !8
  %137 = icmp sle i32 %135, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %188

139:                                              ; preds = %134
  %140 = load i32, ptr %9, align 4, !tbaa !8
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %140)
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef @.str.6)
  %143 = load i32, ptr %9, align 4, !tbaa !8
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %144) #7
  %146 = getelementptr inbounds %struct.Nodes, ptr %145, i32 0, i32 0
  %147 = load i8, ptr %146, align 4, !tbaa !10
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %142, i8 noundef signext %147)
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef @.str.6)
  %150 = load i32, ptr %9, align 4, !tbaa !8
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %151) #7
  %153 = getelementptr inbounds %struct.Nodes, ptr %152, i32 0, i32 1
  %154 = load i32, ptr %153, align 4, !tbaa !12
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %149, i32 noundef %154)
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef @.str.19)
  %157 = load i32, ptr %9, align 4, !tbaa !8
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %158) #7
  %160 = getelementptr inbounds %struct.Nodes, ptr %159, i32 0, i32 2
  %161 = load i32, ptr %160, align 4, !tbaa !13
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %156, i32 noundef %161)
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef @.str.6)
  %164 = load i32, ptr %9, align 4, !tbaa !8
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %165) #7
  %167 = getelementptr inbounds %struct.Nodes, ptr %166, i32 0, i32 3
  %168 = load i32, ptr %167, align 4, !tbaa !14
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %163, i32 noundef %168)
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %169, ptr noundef @.str.19)
  %171 = load i32, ptr %9, align 4, !tbaa !8
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %172) #7
  %174 = getelementptr inbounds %struct.Nodes, ptr %173, i32 0, i32 4
  %175 = load i32, ptr %174, align 4, !tbaa !15
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %170, i32 noundef %175)
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef @.str.6)
  %178 = load i32, ptr %9, align 4, !tbaa !8
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %179) #7
  %181 = getelementptr inbounds %struct.Nodes, ptr %180, i32 0, i32 5
  %182 = load i32, ptr %181, align 4, !tbaa !16
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %177, i32 noundef %182)
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %183, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %185

185:                                              ; preds = %139
  %186 = load i32, ptr %9, align 4, !tbaa !8
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %9, align 4, !tbaa !8
  br label %134, !llvm.loop !24

188:                                              ; preds = %138
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.20)
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.21)
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %193 = call ptr @_ZNSt6vectorI5EdgesSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @Edge) #7
  %194 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %193, ptr %194, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %195 = call ptr @_ZNSt6vectorI5EdgesSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @Edge) #7
  %196 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %195, ptr %196, align 8
  %197 = call noundef i64 @_ZN9__gnu_cxxmiIP5EdgesSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %198 = trunc i64 %197 to i32
  store i32 %198, ptr @m, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  %199 = load i8, ptr @c, align 1, !tbaa !5
  %200 = sext i8 %199 to i32
  %201 = icmp ne i32 %200, 100
  br i1 %201, label %202, label %302

202:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 1, ptr %12, align 4, !tbaa !8
  br label %203

203:                                              ; preds = %298, %202
  %204 = load i32, ptr %12, align 4, !tbaa !8
  %205 = load i32, ptr @m, align 4, !tbaa !8
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %208, label %207

207:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %301

208:                                              ; preds = %203
  %209 = load i32, ptr %12, align 4, !tbaa !8
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %210) #7
  %212 = getelementptr inbounds %struct.Edges, ptr %211, i32 0, i32 2
  %213 = load i8, ptr %212, align 4, !tbaa !22
  %214 = sext i8 %213 to i32
  %215 = icmp eq i32 %214, 98
  br i1 %215, label %216, label %225

216:                                              ; preds = %208
  %217 = load i32, ptr %12, align 4, !tbaa !8
  %218 = add nsw i32 %217, 1
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %219) #7
  %221 = getelementptr inbounds %struct.Edges, ptr %220, i32 0, i32 2
  %222 = load i8, ptr %221, align 4, !tbaa !22
  %223 = sext i8 %222 to i32
  %224 = icmp eq i32 %223, 116
  br i1 %224, label %242, label %225

225:                                              ; preds = %216, %208
  %226 = load i32, ptr %12, align 4, !tbaa !8
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %227) #7
  %229 = getelementptr inbounds %struct.Edges, ptr %228, i32 0, i32 2
  %230 = load i8, ptr %229, align 4, !tbaa !22
  %231 = sext i8 %230 to i32
  %232 = icmp eq i32 %231, 116
  br i1 %232, label %233, label %252

233:                                              ; preds = %225
  %234 = load i32, ptr %12, align 4, !tbaa !8
  %235 = add nsw i32 %234, 1
  %236 = sext i32 %235 to i64
  %237 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %236) #7
  %238 = getelementptr inbounds %struct.Edges, ptr %237, i32 0, i32 2
  %239 = load i8, ptr %238, align 4, !tbaa !22
  %240 = sext i8 %239 to i32
  %241 = icmp eq i32 %240, 98
  br i1 %241, label %242, label %252

242:                                              ; preds = %233, %216
  %243 = load i32, ptr %12, align 4, !tbaa !8
  %244 = add nsw i32 %243, 1
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %245) #7
  %247 = getelementptr inbounds %struct.Edges, ptr %246, i32 0, i32 2
  store i8 116, ptr %247, align 4, !tbaa !22
  %248 = load i32, ptr %12, align 4, !tbaa !8
  %249 = sext i32 %248 to i64
  %250 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %249) #7
  %251 = getelementptr inbounds %struct.Edges, ptr %250, i32 0, i32 2
  store i8 116, ptr %251, align 4, !tbaa !22
  br label %297

252:                                              ; preds = %233, %225
  %253 = load i32, ptr %12, align 4, !tbaa !8
  %254 = sext i32 %253 to i64
  %255 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %254) #7
  %256 = getelementptr inbounds %struct.Edges, ptr %255, i32 0, i32 2
  %257 = load i8, ptr %256, align 4, !tbaa !22
  %258 = sext i8 %257 to i32
  %259 = icmp eq i32 %258, 98
  br i1 %259, label %260, label %269

260:                                              ; preds = %252
  %261 = load i32, ptr %12, align 4, !tbaa !8
  %262 = add nsw i32 %261, 1
  %263 = sext i32 %262 to i64
  %264 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %263) #7
  %265 = getelementptr inbounds %struct.Edges, ptr %264, i32 0, i32 2
  %266 = load i8, ptr %265, align 4, !tbaa !22
  %267 = sext i8 %266 to i32
  %268 = icmp eq i32 %267, 117
  br i1 %268, label %286, label %269

269:                                              ; preds = %260, %252
  %270 = load i32, ptr %12, align 4, !tbaa !8
  %271 = sext i32 %270 to i64
  %272 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %271) #7
  %273 = getelementptr inbounds %struct.Edges, ptr %272, i32 0, i32 2
  %274 = load i8, ptr %273, align 4, !tbaa !22
  %275 = sext i8 %274 to i32
  %276 = icmp eq i32 %275, 117
  br i1 %276, label %277, label %296

277:                                              ; preds = %269
  %278 = load i32, ptr %12, align 4, !tbaa !8
  %279 = add nsw i32 %278, 1
  %280 = sext i32 %279 to i64
  %281 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %280) #7
  %282 = getelementptr inbounds %struct.Edges, ptr %281, i32 0, i32 2
  %283 = load i8, ptr %282, align 4, !tbaa !22
  %284 = sext i8 %283 to i32
  %285 = icmp eq i32 %284, 98
  br i1 %285, label %286, label %296

286:                                              ; preds = %277, %260
  %287 = load i32, ptr %12, align 4, !tbaa !8
  %288 = add nsw i32 %287, 1
  %289 = sext i32 %288 to i64
  %290 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %289) #7
  %291 = getelementptr inbounds %struct.Edges, ptr %290, i32 0, i32 2
  store i8 98, ptr %291, align 4, !tbaa !22
  %292 = load i32, ptr %12, align 4, !tbaa !8
  %293 = sext i32 %292 to i64
  %294 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %293) #7
  %295 = getelementptr inbounds %struct.Edges, ptr %294, i32 0, i32 2
  store i8 98, ptr %295, align 4, !tbaa !22
  br label %296

296:                                              ; preds = %286, %277, %269
  br label %297

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

298:                                              ; preds = %297
  %299 = load i32, ptr %12, align 4, !tbaa !8
  %300 = add nsw i32 %299, 2
  store i32 %300, ptr %12, align 4, !tbaa !8
  br label %203, !llvm.loop !25

301:                                              ; preds = %207
  br label %302

302:                                              ; preds = %301, %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1, ptr %13, align 4, !tbaa !8
  br label %303

303:                                              ; preds = %333, %302
  %304 = load i32, ptr %13, align 4, !tbaa !8
  %305 = load i32, ptr @m, align 4, !tbaa !8
  %306 = icmp slt i32 %304, %305
  br i1 %306, label %308, label %307

307:                                              ; preds = %303
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %336

308:                                              ; preds = %303
  %309 = load i32, ptr %13, align 4, !tbaa !8
  %310 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %309)
  %311 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %310, ptr noundef @.str.6)
  %312 = load i32, ptr %13, align 4, !tbaa !8
  %313 = sext i32 %312 to i64
  %314 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %313) #7
  %315 = getelementptr inbounds %struct.Edges, ptr %314, i32 0, i32 0
  %316 = load i32, ptr %315, align 4, !tbaa !19
  %317 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %311, i32 noundef %316)
  %318 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %317, ptr noundef @.str.6)
  %319 = load i32, ptr %13, align 4, !tbaa !8
  %320 = sext i32 %319 to i64
  %321 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %320) #7
  %322 = getelementptr inbounds %struct.Edges, ptr %321, i32 0, i32 2
  %323 = load i8, ptr %322, align 4, !tbaa !22
  %324 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %318, i8 noundef signext %323)
  %325 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %324, ptr noundef @.str.6)
  %326 = load i32, ptr %13, align 4, !tbaa !8
  %327 = sext i32 %326 to i64
  %328 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %327) #7
  %329 = getelementptr inbounds %struct.Edges, ptr %328, i32 0, i32 1
  %330 = load i32, ptr %329, align 4, !tbaa !21
  %331 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %325, i32 noundef %330)
  %332 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %331, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %333

333:                                              ; preds = %308
  %334 = load i32, ptr %13, align 4, !tbaa !8
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %13, align 4, !tbaa !8
  br label %303, !llvm.loop !26

336:                                              ; preds = %307
  br label %337

337:                                              ; preds = %336, %118
  %338 = load i8, ptr @c, align 1, !tbaa !5
  %339 = sext i8 %338 to i32
  %340 = icmp eq i32 %339, 100
  br i1 %340, label %341, label %351

341:                                              ; preds = %337
  %342 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.22)
  %343 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %342, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %344 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %7)
  %345 = load i8, ptr %7, align 1, !tbaa !5
  %346 = sext i8 %345 to i32
  %347 = icmp eq i32 %346, 121
  br i1 %347, label %348, label %350

348:                                              ; preds = %341
  %349 = load i32, ptr %2, align 4, !tbaa !8
  call void @_Z15TopologicalSorti(i32 noundef %349)
  br label %350

350:                                              ; preds = %348, %341
  br label %351

351:                                              ; preds = %350, %337
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %352 = call ptr @_ZNSt6vectorI5NodesSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @Node) #7
  %353 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %15, i32 0, i32 0
  store ptr %352, ptr %353, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK5NodesSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %354 = call ptr @_ZNSt6vectorI5NodesSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @Node) #7
  %355 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %17, i32 0, i32 0
  store ptr %354, ptr %355, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK5NodesSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %356 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %14, i32 0, i32 0
  %357 = load ptr, ptr %356, align 8
  %358 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %16, i32 0, i32 0
  %359 = load ptr, ptr %358, align 8
  %360 = call ptr @_ZNSt6vectorI5NodesSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EES7_(ptr noundef nonnull align 8 dereferenceable(24) @Node, ptr %357, ptr %359)
  %361 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %18, i32 0, i32 0
  store ptr %360, ptr %361, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %362 = call ptr @_ZNSt6vectorI5EdgesSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @Edge) #7
  %363 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %362, ptr %363, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK5EdgesSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %364 = call ptr @_ZNSt6vectorI5EdgesSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @Edge) #7
  %365 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %364, ptr %365, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK5EdgesSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %366 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %19, i32 0, i32 0
  %367 = load ptr, ptr %366, align 8
  %368 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %21, i32 0, i32 0
  %369 = load ptr, ptr %368, align 8
  %370 = call ptr @_ZNSt6vectorI5EdgesSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EES7_(ptr noundef nonnull align 8 dereferenceable(24) @Edge, ptr %367, ptr %369)
  %371 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %370, ptr %371, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %372 = call ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z5StackB5cxx11) #7
  %373 = getelementptr inbounds %"struct.std::_List_iterator", ptr %25, i32 0, i32 0
  store ptr %372, ptr %373, align 8
  call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %374 = call ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z5StackB5cxx11) #7
  %375 = getelementptr inbounds %"struct.std::_List_iterator", ptr %27, i32 0, i32 0
  store ptr %374, ptr %375, align 8
  call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  %376 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %24, i32 0, i32 0
  %377 = load ptr, ptr %376, align 8
  %378 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %26, i32 0, i32 0
  %379 = load ptr, ptr %378, align 8
  %380 = call ptr @_ZNSt7__cxx114listIiSaIiEE5eraseESt20_List_const_iteratorIiES4_(ptr noundef nonnull align 8 dereferenceable(24) @_Z5StackB5cxx11, ptr %377, ptr %379) #7
  %381 = getelementptr inbounds %"struct.std::_List_iterator", ptr %28, i32 0, i32 0
  store ptr %380, ptr %381, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  ret i32 0
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI5EdgesSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #4 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) #1

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #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 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !6, i64 0}
!11 = !{!"_ZTS5Nodes", !6, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !9, i64 16, !9, i64 20}
!12 = !{!11, !9, i64 4}
!13 = !{!11, !9, i64 8}
!14 = !{!11, !9, i64 12}
!15 = !{!11, !9, i64 16}
!16 = !{!11, !9, i64 20}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !9, i64 0}
!20 = !{!"_ZTS5Edges", !9, i64 0, !9, i64 4, !6, i64 8}
!21 = !{!20, !9, i64 4}
!22 = !{!20, !6, i64 8}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}


; 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<Nodes, std::allocator<Nodes>>::_Vector_impl" }
%"struct.std::_Vector_base<Nodes, std::allocator<Nodes>>::_Vector_impl" = type { %"struct.std::_Vector_base<Nodes, std::allocator<Nodes>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Nodes, std::allocator<Nodes>>::_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<Edges, std::allocator<Edges>>::_Vector_impl" }
%"struct.std::_Vector_base<Edges, std::allocator<Edges>>::_Vector_impl" = type { %"struct.std::_Vector_base<Edges, std::allocator<Edges>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Edges, std::allocator<Edges>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" }
%"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%struct.Edges = type { i32, i32, i8 }
%struct.Nodes = type { i8, i32, i32, i32, i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.9" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.8" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"struct.std::_List_const_iterator" = type { ptr }
%"struct.std::_List_iterator" = type { ptr }

@Node = external dso_local global %"class.std::vector", align 8
@Edge = external dso_local global %"class.std::vector.0", align 8
@_Z5StackB5cxx11 = external dso_local global %"class.std::__cxx11::list", align 8
@n = external dso_local global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@c = external dso_local global i8, align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [99 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [129 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [58 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(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.end.p0(i64 immarg, ptr nocapture) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #5 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %struct.Edges, align 4
  %4 = alloca %struct.Nodes, align 4
  %5 = alloca i8, align 1
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"struct.std::_List_const_iterator", align 8
  %17 = alloca %"struct.std::_List_iterator", align 8
  %18 = alloca %"struct.std::_List_const_iterator", align 8
  %19 = alloca %"struct.std::_List_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  store i8 121, ptr %5, align 1, !tbaa !5
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.12)
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %22 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) @c)
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.13)
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %25 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %26 = load i32, ptr @n, align 4, !tbaa !8
  %.not47 = icmp slt i32 %26, 0
  br i1 %.not47, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0
  %27 = getelementptr inbounds i8, ptr %4, i64 4
  %28 = getelementptr inbounds i8, ptr %4, i64 20
  br label %35

._crit_edge:                                      ; preds = %35, %0
  store i32 -1, ptr %3, align 4, !tbaa !10
  %29 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 -1, ptr %29, align 4, !tbaa !12
  %30 = getelementptr inbounds i8, ptr %3, i64 8
  store i8 117, ptr %30, align 4, !tbaa !13
  call void @_ZNSt6vectorI5EdgesSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @Edge, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.14)
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %33 = 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)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %38

35:                                               ; preds = %.lr.ph, %35
  %.03948 = phi i32 [ 0, %.lr.ph ], [ %36, %35 ]
  store i8 119, ptr %4, align 4, !tbaa !14
  store <4 x i32> <i32 -2147483648, i32 -2147483648, i32 -2147483648, i32 -2147483648>, ptr %27, align 4, !tbaa !8
  store i32 -1, ptr %28, align 4, !tbaa !16
  call void @_ZNSt6vectorI5NodesSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @Node, ptr noundef nonnull align 4 dereferenceable(24) %4)
  %36 = add nuw nsw i32 %.03948, 1
  %37 = load i32, ptr @n, align 4, !tbaa !8
  %.not.not = icmp slt i32 %.03948, %37
  br i1 %.not.not, label %35, label %._crit_edge, !llvm.loop !17

38:                                               ; preds = %64, %._crit_edge
  %.0 = phi i32 [ 1, %._crit_edge ], [ %.1, %64 ]
  %39 = load i8, ptr @c, align 1, !tbaa !5
  %40 = icmp eq i8 %39, 100
  %41 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %41, ptr %3, align 4, !tbaa !10
  %42 = load i32, ptr %1, align 4, !tbaa !8
  %43 = sext i32 %42 to i64
  %44 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %43) #7
  %45 = getelementptr inbounds i8, ptr %44, i64 20
  %46 = load i32, ptr %45, align 4, !tbaa !16
  store i32 %46, ptr %29, align 4, !tbaa !12
  store i8 117, ptr %30, align 4, !tbaa !13
  call void @_ZNSt6vectorI5EdgesSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @Edge, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %47 = load i32, ptr %1, align 4, !tbaa !8
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %48) #7
  %50 = getelementptr inbounds i8, ptr %49, i64 20
  store i32 %.0, ptr %50, align 4, !tbaa !16
  %51 = add nsw i32 %.0, 1
  br i1 %40, label %64, label %52

52:                                               ; preds = %38
  %53 = load i32, ptr %1, align 4, !tbaa !8
  store i32 %53, ptr %3, align 4, !tbaa !10
  %54 = load i32, ptr %2, align 4, !tbaa !8
  %55 = sext i32 %54 to i64
  %56 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %55) #7
  %57 = getelementptr inbounds i8, ptr %56, i64 20
  %58 = load i32, ptr %57, align 4, !tbaa !16
  store i32 %58, ptr %29, align 4, !tbaa !12
  store i8 117, ptr %30, align 4, !tbaa !13
  call void @_ZNSt6vectorI5EdgesSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @Edge, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %59 = load i32, ptr %2, align 4, !tbaa !8
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %60) #7
  %62 = getelementptr inbounds i8, ptr %61, i64 20
  store i32 %51, ptr %62, align 4, !tbaa !16
  %63 = add nsw i32 %.0, 2
  br label %64

64:                                               ; preds = %38, %52
  %.1 = phi i32 [ %63, %52 ], [ %51, %38 ]
  %65 = 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)
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %65, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %67 = load i32, ptr %1, align 4, !tbaa !8
  %.not43 = icmp eq i32 %67, -1
  br i1 %.not43, label %68, label %38, !llvm.loop !19

68:                                               ; preds = %64
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.15)
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %71 = 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)
  %72 = load i32, ptr %1, align 4, !tbaa !8
  call void @_Z3DFSi(i32 noundef %72)
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.16)
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %5)
  %76 = load i8, ptr %5, align 1, !tbaa !5
  %77 = icmp eq i8 %76, 121
  br i1 %77, label %78, label %.loopexit

78:                                               ; preds = %68
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.17)
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.18)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %83 = load i32, ptr @n, align 4, !tbaa !8
  %.not4449 = icmp slt i32 %83, 1
  br i1 %.not4449, label %._crit_edge53, label %.lr.ph52

._crit_edge53:                                    ; preds = %.lr.ph52, %78
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.20)
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.21)
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %88 = call ptr @_ZNSt6vectorI5EdgesSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @Edge) #7
  store ptr %88, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %89 = call ptr @_ZNSt6vectorI5EdgesSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @Edge) #7
  store ptr %89, ptr %7, align 8
  %90 = call noundef i64 @_ZN9__gnu_cxxmiIP5EdgesSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %91 = trunc i64 %90 to i32
  store i32 %91, ptr @m, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %92 = load i8, ptr @c, align 1, !tbaa !5
  %.not45 = icmp ne i8 %92, 100
  %93 = icmp sgt i32 %91, 1
  %or.cond = and i1 %.not45, %93
  br i1 %or.cond, label %.lr.ph56, label %.loopexit46

.lr.ph52:                                         ; preds = %78, %.lr.ph52
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph52 ], [ 1, %78 ]
  %94 = trunc nuw nsw i64 %indvars.iv to i32
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %94)
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull @.str.6)
  %97 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %indvars.iv) #7
  %98 = load i8, ptr %97, align 4, !tbaa !14
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %96, i8 noundef signext %98)
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef nonnull @.str.6)
  %101 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %indvars.iv) #7
  %102 = getelementptr inbounds i8, ptr %101, i64 4
  %103 = load i32, ptr %102, align 4, !tbaa !20
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %100, i32 noundef %103)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull @.str.19)
  %106 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %indvars.iv) #7
  %107 = getelementptr inbounds i8, ptr %106, i64 8
  %108 = load i32, ptr %107, align 4, !tbaa !21
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %105, i32 noundef %108)
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull @.str.6)
  %111 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %indvars.iv) #7
  %112 = getelementptr inbounds i8, ptr %111, i64 12
  %113 = load i32, ptr %112, align 4, !tbaa !22
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %110, i32 noundef %113)
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @.str.19)
  %116 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %indvars.iv) #7
  %117 = getelementptr inbounds i8, ptr %116, i64 16
  %118 = load i32, ptr %117, align 4, !tbaa !23
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %115, i32 noundef %118)
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull @.str.6)
  %121 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorI5NodesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Node, i64 noundef %indvars.iv) #7
  %122 = getelementptr inbounds i8, ptr %121, i64 20
  %123 = load i32, ptr %122, align 4, !tbaa !16
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %120, i32 noundef %123)
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %126 = load i32, ptr @n, align 4, !tbaa !8
  %127 = sext i32 %126 to i64
  %.not44.not = icmp slt i64 %indvars.iv, %127
  br i1 %.not44.not, label %.lr.ph52, label %._crit_edge53, !llvm.loop !24

.lr.ph56:                                         ; preds = %._crit_edge53, %175
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %175 ], [ 1, %._crit_edge53 ]
  %128 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %indvars.iv62) #7
  %129 = getelementptr inbounds i8, ptr %128, i64 8
  %130 = load i8, ptr %129, align 4, !tbaa !13
  %131 = icmp eq i8 %130, 98
  br i1 %131, label %132, label %138

132:                                              ; preds = %.lr.ph56
  %133 = add nuw nsw i64 %indvars.iv62, 1
  %134 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %133) #7
  %135 = getelementptr inbounds i8, ptr %134, i64 8
  %136 = load i8, ptr %135, align 4, !tbaa !13
  %137 = icmp eq i8 %136, 116
  br i1 %137, label %.sink.split, label %138

138:                                              ; preds = %132, %.lr.ph56
  %139 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %indvars.iv62) #7
  %140 = getelementptr inbounds i8, ptr %139, i64 8
  %141 = load i8, ptr %140, align 4, !tbaa !13
  %142 = icmp eq i8 %141, 116
  br i1 %142, label %143, label %149

143:                                              ; preds = %138
  %144 = add nuw nsw i64 %indvars.iv62, 1
  %145 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %144) #7
  %146 = getelementptr inbounds i8, ptr %145, i64 8
  %147 = load i8, ptr %146, align 4, !tbaa !13
  %148 = icmp eq i8 %147, 98
  br i1 %148, label %.sink.split, label %149

149:                                              ; preds = %143, %138
  %150 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %indvars.iv62) #7
  %151 = getelementptr inbounds i8, ptr %150, i64 8
  %152 = load i8, ptr %151, align 4, !tbaa !13
  %153 = icmp eq i8 %152, 98
  br i1 %153, label %154, label %160

154:                                              ; preds = %149
  %155 = add nuw nsw i64 %indvars.iv62, 1
  %156 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %155) #7
  %157 = getelementptr inbounds i8, ptr %156, i64 8
  %158 = load i8, ptr %157, align 4, !tbaa !13
  %159 = icmp eq i8 %158, 117
  br i1 %159, label %.sink.split, label %160

160:                                              ; preds = %154, %149
  %161 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %indvars.iv62) #7
  %162 = getelementptr inbounds i8, ptr %161, i64 8
  %163 = load i8, ptr %162, align 4, !tbaa !13
  %164 = icmp eq i8 %163, 117
  br i1 %164, label %165, label %175

165:                                              ; preds = %160
  %166 = add nuw nsw i64 %indvars.iv62, 1
  %167 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %166) #7
  %168 = getelementptr inbounds i8, ptr %167, i64 8
  %169 = load i8, ptr %168, align 4, !tbaa !13
  %170 = icmp eq i8 %169, 98
  br i1 %170, label %.sink.split, label %175

.sink.split:                                      ; preds = %154, %165, %132, %143
  %.pre-phi.sink = phi i64 [ %144, %143 ], [ %133, %132 ], [ %166, %165 ], [ %155, %154 ]
  %.sink71 = phi i8 [ 116, %143 ], [ 116, %132 ], [ 98, %165 ], [ 98, %154 ]
  %171 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %.pre-phi.sink) #7
  %172 = getelementptr inbounds i8, ptr %171, i64 8
  store i8 %.sink71, ptr %172, align 4, !tbaa !13
  %173 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %indvars.iv62) #7
  %174 = getelementptr inbounds i8, ptr %173, i64 8
  store i8 %.sink71, ptr %174, align 4, !tbaa !13
  br label %175

175:                                              ; preds = %.sink.split, %165, %160
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 2
  %176 = load i32, ptr @m, align 4, !tbaa !8
  %177 = trunc nuw i64 %indvars.iv.next63 to i32
  %178 = icmp sgt i32 %176, %177
  br i1 %178, label %.lr.ph56, label %.loopexit46, !llvm.loop !25

.loopexit46:                                      ; preds = %175, %._crit_edge53
  %179 = phi i32 [ %91, %._crit_edge53 ], [ %176, %175 ]
  %180 = icmp sgt i32 %179, 1
  br i1 %180, label %.lr.ph59, label %.loopexit

.lr.ph59:                                         ; preds = %.loopexit46, %.lr.ph59
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %.lr.ph59 ], [ 1, %.loopexit46 ]
  %181 = trunc nuw nsw i64 %indvars.iv65 to i32
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %181)
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef nonnull @.str.6)
  %184 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %indvars.iv65) #7
  %185 = load i32, ptr %184, align 4, !tbaa !10
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %183, i32 noundef %185)
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %186, ptr noundef nonnull @.str.6)
  %188 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %indvars.iv65) #7
  %189 = getelementptr inbounds i8, ptr %188, i64 8
  %190 = load i8, ptr %189, align 4, !tbaa !13
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %187, i8 noundef signext %190)
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef nonnull @.str.6)
  %193 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI5EdgesSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Edge, i64 noundef %indvars.iv65) #7
  %194 = getelementptr inbounds i8, ptr %193, i64 4
  %195 = load i32, ptr %194, align 4, !tbaa !12
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %192, i32 noundef %195)
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %198 = load i32, ptr @m, align 4, !tbaa !8
  %199 = sext i32 %198 to i64
  %200 = icmp slt i64 %indvars.iv.next66, %199
  br i1 %200, label %.lr.ph59, label %.loopexit, !llvm.loop !26

.loopexit:                                        ; preds = %.lr.ph59, %.loopexit46, %68
  %201 = load i8, ptr @c, align 1, !tbaa !5
  %202 = icmp eq i8 %201, 100
  br i1 %202, label %203, label %211

203:                                              ; preds = %.loopexit
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.22)
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %206 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %5)
  %207 = load i8, ptr %5, align 1, !tbaa !5
  %208 = icmp eq i8 %207, 121
  br i1 %208, label %209, label %211

209:                                              ; preds = %203
  %210 = load i32, ptr %1, align 4, !tbaa !8
  call void @_Z15TopologicalSorti(i32 noundef %210)
  br label %211

211:                                              ; preds = %203, %209, %.loopexit
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %212 = call ptr @_ZNSt6vectorI5NodesSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @Node) #7
  store ptr %212, ptr %9, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK5NodesSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %213 = call ptr @_ZNSt6vectorI5NodesSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @Node) #7
  store ptr %213, ptr %11, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK5NodesSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %214 = load ptr, ptr %8, align 8
  %215 = load ptr, ptr %10, align 8
  %216 = call ptr @_ZNSt6vectorI5NodesSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EES7_(ptr noundef nonnull align 8 dereferenceable(24) @Node, ptr %214, ptr %215)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %217 = call ptr @_ZNSt6vectorI5EdgesSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @Edge) #7
  store ptr %217, ptr %13, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK5EdgesSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %218 = call ptr @_ZNSt6vectorI5EdgesSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @Edge) #7
  store ptr %218, ptr %15, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK5EdgesSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %219 = load ptr, ptr %12, align 8
  %220 = load ptr, ptr %14, align 8
  %221 = call ptr @_ZNSt6vectorI5EdgesSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EES7_(ptr noundef nonnull align 8 dereferenceable(24) @Edge, ptr %219, ptr %220)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %222 = call ptr @_ZNSt7__cxx114listIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z5StackB5cxx11) #7
  store ptr %222, ptr %17, align 8
  call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %223 = call ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z5StackB5cxx11) #7
  store ptr %223, ptr %19, align 8
  call void @_ZNSt20_List_const_iteratorIiEC2ERKSt14_List_iteratorIiE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %224 = load ptr, ptr %16, align 8
  %225 = load ptr, ptr %18, align 8
  %226 = call ptr @_ZNSt7__cxx114listIiSaIiEE5eraseESt20_List_const_iteratorIiES4_(ptr noundef nonnull align 8 dereferenceable(24) @_Z5StackB5cxx11, ptr %224, ptr %225) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2

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 #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI5EdgesSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 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 #1

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_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 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !9, i64 0}
!11 = !{!"_ZTS5Edges", !9, i64 0, !9, i64 4, !6, i64 8}
!12 = !{!11, !9, i64 4}
!13 = !{!11, !6, i64 8}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTS5Nodes", !6, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !9, i64 16, !9, i64 20}
!16 = !{!15, !9, i64 20}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!15, !9, i64 4}
!21 = !{!15, !9, i64 8}
!22 = !{!15, !9, i64 12}
!23 = !{!15, !9, i64 16}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}


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