// File: /workspace/github_cpp_makefile_star2_O3/Kingsford-Group[P]ghost2/src/readFromNet.hpp
// Function: readFromNet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
Graph readFromNet(string fileName, bool directed)
{ 
  ptime t = bclock::local_time();
  Graph result;
  result.direct(directed);
  ifstream fin(fileName);
  if(!fin.good()) 
  {
    cout << "error loading file: " << fileName << "\n";
    exit(0);
  }
  unsigned start = fileName.find_last_of("/");
  unsigned end = fileName.find(".net");
  if(start == string::npos) start = -1;
  string name = fileName.substr(start+1,end-start-1);
  result.setName(name);

  int N,E;
  fin >> N >> E;
  for(int i=0;i<N;i++)
  {
    string n;
    fin >> n;
    result.addVertex(n);
  }
  for(int i=0;i<E;i++)
  {
    string n1,n2;
    fin >> n1 >> n2;
    result.addEdge(n1, n2);
  }
  fin.close();
  cout << "extracted: " << result.getName() << ".net in " <<
    (bclock::local_time() - t).total_milliseconds() << " milliseconds\n";
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x308, %rsp            # imm = 0x308
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x196f2(%rip), %rdi     # 0x2891c
callq 0x28826
movq %rax, 0x58(%rsp)
xorl %eax, %eax
movb %al, (%rbx)
movl $0x10, %ecx
movq %rcx, 0x8(%rbx)
movq %rax, 0x10(%rbx)
movl $0x3f800000, %edx       # imm = 0x3F800000
movl %edx, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movb %al, 0x30(%rbx)
movq %rcx, 0x38(%rbx)
movq %rax, 0x40(%rbx)
movl %edx, 0x48(%rbx)
movups %xmm0, 0x50(%rbx)
leaq 0x78(%rbx), %rcx
movq %rcx, 0x68(%rbx)
movq %rax, 0x70(%rbx)
movb %al, 0x78(%rbx)
movq %rbx, 0x28(%rsp)
movb %bpl, 0x60(%rbx)
leaq 0x100(%rsp), %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0xc920
movq 0x100(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x120(%rsp,%rax)
jne 0xf692
leaq 0x392bd(%rip), %rsi     # 0x48571
movl $0x1, %ecx
movq %r14, %rdi
movq $-0x1, %rdx
callq 0xcab0
movq %rax, %r15
leaq 0x3953a(%rip), %rsi     # 0x4880c
movl $0x4, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0xc9b0
leal 0x1(%r15), %edx
notl %r15d
addl %eax, %r15d
leaq 0xe0(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0xc580
leaq 0xd0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc0(%rsp), %rdi
callq 0x27846
movq 0x28(%rsp), %rax
leaq 0x68(%rax), %rdi
leaq 0xc0(%rsp), %rsi
callq 0xc2d0
movq 0xc0(%rsp), %rdi
cmpq %rbx, %rdi
je 0xf35d
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0xc550
leaq 0x100(%rsp), %rdi
leaq 0x34(%rsp), %rsi
callq 0xc310
leaq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0xc310
cmpl $0x0, 0x34(%rsp)
jle 0xf438
xorl %ebp, %ebp
leaq 0xb0(%rsp), %rbx
leaq 0x100(%rsp), %r14
leaq 0x8(%rsp), %r15
leaq 0xa0(%rsp), %r12
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0xc700
movq %rbx, 0xa0(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x27846
movq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x1c1b2
movq 0xa0(%rsp), %rdi
cmpq %rbx, %rdi
je 0xf410
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xc550
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xf42c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc550
incl %ebp
cmpl 0x34(%rsp), %ebp
jl 0xf3a6
cmpl $0x0, 0x30(%rsp)
jle 0xf568
leaq 0x90(%rsp), %r15
xorl %ebx, %ebx
leaq 0x70(%rsp), %r12
leaq 0x80(%rsp), %r13
leaq 0x60(%rsp), %rbp
xorl %r14d, %r14d
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movb %bl, 0x18(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %rbx, 0x40(%rsp)
movb %bl, 0x48(%rsp)
leaq 0x100(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xc700
movq %rax, %rdi
leaq 0x38(%rsp), %rsi
callq 0xc700
movq %r15, 0x80(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x27846
movq %r12, 0x60(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x27846
movq 0x28(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x1c21a
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0xf505
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xc550
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0xf522
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xc550
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xf53e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xc550
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xf55a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc550
incl %r14d
cmpl 0x30(%rsp), %r14d
jl 0xf462
leaq 0x100(%rsp), %rdi
callq 0xc140
movq 0x68a1c(%rip), %rdi     # 0x77f98
leaq 0x39264(%rip), %rsi     # 0x487e7
movl $0xb, %edx
callq 0xc620
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
movq 0x28(%rsp), %rax
movq 0x68(%rax), %rsi
movq 0x70(%rax), %rdx
addq %rsi, %rdx
callq 0x27846
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x689d8(%rip), %rdi     # 0x77f98
callq 0xc620
movq %rax, %r14
leaq 0x39242(%rip), %rsi     # 0x48811
movl $0x8, %edx
movq %rax, %rdi
callq 0xc620
leaq 0x19339(%rip), %rdi     # 0x2891c
callq 0x28826
leaq 0x38(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x58(%rsp), %rsi
callq 0x20fc4
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x7, %rdx
addq %rdx, %rsi
movq %r14, %rdi
callq 0xc4c0
leaq 0x391d9(%rip), %rsi     # 0x487fd
movl $0xe, %edx
movq %rax, %rdi
callq 0xc620
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xf64d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc550
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf66e
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xc550
leaq 0x100(%rsp), %rdi
callq 0xc160
movq 0x28(%rsp), %rax
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x688ff(%rip), %rdi     # 0x77f98
leaq 0x390fb(%rip), %rsi     # 0x4879b
movl $0x14, %edx
callq 0xc620
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x688e0(%rip), %rdi     # 0x77f98
callq 0xc620
leaq 0x38fdb(%rip), %rsi     # 0x4869f
movq %rax, %rdi
callq 0xc500
xorl %edi, %edi
callq 0xc690
jmp 0xf6fa
jmp 0xf70e
movq %rax, %r13
movq 0xc0(%rsp), %rdi
cmpq %rbx, %rdi
je 0xf7ae
movq 0xd0(%rsp), %rsi
jmp 0xf7a6
jmp 0xf70e
movq %rax, %r13
jmp 0xf7cf
movq %rax, %r13
jmp 0xf7dc
jmp 0xf76e
jmp 0xf76e
movq %rax, %r13
jmp 0xf7ae
movq %rax, %r13
jmp 0xf735
movq %rax, %r13
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0xf735
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xc550
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0xf776
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xc550
jmp 0xf776
movq %rax, %r13
movq 0xa0(%rsp), %rdi
cmpq %rbx, %rdi
je 0xf792
movq 0xb0(%rsp), %rsi
jmp 0xf78a
movq %rax, %r13
jmp 0xf792
movq %rax, %r13
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xf792
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xc550
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xf7ae
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc550
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf7cf
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xc550
leaq 0x100(%rsp), %rdi
callq 0xc160
movq 0x28(%rsp), %rdi
callq 0x1c286
movq %r13, %rdi
callq 0xc9c0