// File: /workspace/github_cpp_makefile_star2_O2/Kingsford-Group[P]ghost2/src/readFromGexf.hpp
// Function: readFromGexf(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
Graph readFromGexf(string fileName, bool directed)
{
  ptime t = bclock::local_time();
  Graph result;
  result.direct(directed);
  idtoval itv;
  ifstream fin(fileName);
  if(!fin.good()) {cout << "error loading file: " << fileName << "\n"; exit(0);}
  unsigned start = fileName.find_last_of("/");
  unsigned end = fileName.find(".gexf");
  if(start == string::npos) start = -1;
  string name = fileName.substr(start+1,end-start-1);
  result.setName(name);
  string atr = getAttribute(&fin);
  if(atr == "gname")
  {
    getNodes(&fin, &result, &itv);
    getEdges(&fin, &result, &itv);
  }
  else {cout << "ERROR: gexf does not have attribute gname\n"; exit(0);}
  fin.close();
  cout << "extracted: " << result.getName() << ".gexf in " <<
    (bclock::local_time() - t).total_milliseconds() << " milliseconds\n";
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x2c8, %rsp            # imm = 0x2C8
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x1889e
movq %rax, (%rsp)
movq %rbx, %rdi
callq 0x188aa
movb %bpl, 0x60(%rbx)
leaq 0x90(%rsp), %rdi
callq 0x188ec
leaq 0xc0(%rsp), %rdi
pushq $0x8
popq %rdx
movq %r14, %rsi
callq 0xe950
movq 0xc0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0xe0(%rsp,%rax)
jne 0x10320
leaq 0x303c4(%rip), %rsi     # 0x40555
pushq $-0x1
popq %rdx
movq %r14, %rdi
callq 0xe4f0
movq %rax, %r15
leaq 0x305ee(%rip), %rsi     # 0x40794
movq %r14, %rdi
xorl %edx, %edx
callq 0xeaf0
leal 0x1(%r15), %edx
notl %r15d
addl %eax, %r15d
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0xe5b0
leaq 0x50(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xe7a0
leaq 0x68(%rbx), %r14
leaq 0x50(%rsp), %rsi
movq %r14, %rdi
callq 0xe300
leaq 0x50(%rsp), %rdi
callq 0xe290
leaq 0x30(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0xf8a9
leaq 0x3058d(%rip), %rsi     # 0x4079a
leaq 0x30(%rsp), %rdi
callq 0x18661
testb %al, %al
je 0x1034f
leaq 0xc0(%rsp), %rdi
leaq 0x90(%rsp), %rdx
movq %rbx, %rsi
callq 0xfa8c
leaq 0xc0(%rsp), %rdi
leaq 0x90(%rsp), %rdx
movq %rbx, %rsi
callq 0xfdc3
leaq 0xc0(%rsp), %rdi
callq 0xe140
movq 0x6cd35(%rip), %rdi     # 0x7cf98
leaq 0x30561(%rip), %rsi     # 0x407cb
callq 0xe540
movq %rax, %r15
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0xe7a0
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xe4a0
leaq 0x30544(%rip), %rsi     # 0x407d7
movq %rax, %rdi
callq 0xe540
movq %rax, %r14
callq 0x1889e
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
movq %rsp, %rsi
callq 0x1c4fa
movl $0x3e8, %ecx            # imm = 0x3E8
cqto
idivq %rcx
movq %r14, %rdi
movq %rax, %rsi
callq 0xe500
leaq 0x30512(%rip), %rsi     # 0x407e1
movq %rax, %rdi
callq 0xe540
leaq 0x10(%rsp), %rdi
callq 0xe290
leaq 0x30(%rsp), %rdi
callq 0xe290
leaq 0x70(%rsp), %rdi
callq 0xe290
leaq 0xc0(%rsp), %rdi
callq 0xe170
leaq 0x90(%rsp), %rdi
callq 0x22eae
movq %rbx, %rax
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x6cc71(%rip), %rdi     # 0x7cf98
leaq 0x30451(%rip), %rsi     # 0x4077f
callq 0xe540
movq %rax, %rdi
movq %r14, %rsi
callq 0xe4a0
leaq 0x3033e(%rip), %rsi     # 0x40683
movq %rax, %rdi
callq 0xe540
jmp 0x10362
movq 0x6cc42(%rip), %rdi     # 0x7cf98
leaq 0x30443(%rip), %rsi     # 0x407a0
callq 0xe540
xorl %edi, %edi
callq 0xe6a0
jmp 0x1037e
jmp 0x1039e
jmp 0x10379
movq %rax, %r14
leaq 0x50(%rsp), %rdi
jmp 0x103a6
movq %rax, %r14
jmp 0x103ab
movq %rax, %r14
jmp 0x103b5
movq %rax, %r14
jmp 0x103c2
movq %rax, %r14
jmp 0x103cf
jmp 0x1038f
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0xe290
jmp 0x103a1
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0xe290
leaq 0x70(%rsp), %rdi
callq 0xe290
leaq 0xc0(%rsp), %rdi
callq 0xe170
leaq 0x90(%rsp), %rdi
callq 0x22eae
movq %rbx, %rdi
callq 0x18906
movq %r14, %rdi
callq 0xe9f0