// File: /workspace/github_cpp_makefile_star2_O2/minimind[P]simple-graph/unittest/../graph/graph.hpp
// Function: Graph<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::add_edge(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, SimpleGraph::NodeIterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, SimpleGraph::NodeIterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&)
void Graph<N,E>::add_edge( const E& e, typename Graph<N,E>::node_iterator& left, typename Graph<N,E>::node_iterator& right )
{
  if ( left.key() == right.key() )
  {
    throw std::runtime_error( "Cannot add_edge linking a node to itself" );
  }

  boost::shared_ptr< SimpleGraph::SimpleEdge<N,E> > newEdge( new SimpleGraph::SimpleEdge<N,E>( e, left, right ) );

  edges.m_edges.push_back( newEdge );
  newEdge->m_mainIterator = edges.m_edges.end();
  --( newEdge->m_mainIterator );

  left.m_iterator->second->m_edges.push_back( newEdge );
  newEdge->m_leftIterator = left.m_iterator->second->m_edges.end();
  --( newEdge->m_leftIterator );

  right.m_iterator->second->m_edges.push_back( newEdge );
  newEdge->m_rightIterator = right.m_iterator->second->m_edges.end();
  --( newEdge->m_rightIterator );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
movq (%rdx), %rax
movq 0x20(%rax), %rax
movq (%rcx), %rcx
cmpq 0x20(%rcx), %rax
je 0x23b73
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %r15
pushq $0x48
popq %rdi
callq 0x93a0
movq %rax, %r12
movq %rax, %rdi
movq %r13, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x242e4
movq %rsp, %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x24318
addq $0x30, %r15
movq %r15, %rdi
movq %r13, %rsi
callq 0x2434c
movq %rsp, %r12
movq %r12, %rdi
callq 0x24358
movq %r15, 0x30(%rax)
movq %r12, %rdi
callq 0x24358
movq 0x30(%rax), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, 0x30(%rax)
movq (%r14), %rdi
addq $0x28, %rdi
callq 0x24382
leaq 0x28(%rax), %rdi
movq %r12, %rsi
callq 0x2434c
movq (%r14), %rdi
addq $0x28, %rdi
callq 0x24382
movq %rax, %r14
addq $0x28, %r14
movq %rsp, %r15
movq %r15, %rdi
callq 0x24358
movq %r14, 0x38(%rax)
movq %r15, %rdi
callq 0x24358
movq 0x38(%rax), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, 0x38(%rax)
movq (%rbx), %rdi
addq $0x28, %rdi
callq 0x24382
leaq 0x28(%rax), %rdi
movq %r15, %rsi
callq 0x2434c
movq (%rbx), %rdi
addq $0x28, %rdi
callq 0x24382
movq %rax, %rbx
addq $0x28, %rbx
movq %rsp, %r14
movq %r14, %rdi
callq 0x24358
movq %rbx, 0x40(%rax)
movq %r14, %rdi
callq 0x24358
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, 0x40(%rax)
leaq 0x8(%rsp), %rdi
callq 0x241a8
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
pushq $0x10
popq %rdi
callq 0x91c0
movq %rax, %r14
leaq 0xe813(%rip), %rsi      # 0x32398
movq %rax, %rdi
callq 0x9140
movq 0x2845c(%rip), %rsi     # 0x4bff0
movq 0x28415(%rip), %rdx     # 0x4bfb0
movq %r14, %rdi
callq 0x95e0
movq %rax, %rbx
movq %r14, %rdi
callq 0x92d0
jmp 0x23bcd
movq %rax, %rbx
pushq $0x48
popq %rsi
movq %r12, %rdi
callq 0x93c0
jmp 0x23bcd
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x241a8
movq %rbx, %rdi
callq 0x9610