// File: /workspace/github_cpp_makefile_star2_O3/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 0x2d506
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %r15
movl $0x48, %edi
callq 0x9310
movq %rax, %r12
addq $0x10, %rax
movq %rax, (%r12)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x2ac50
movq (%r14), %rax
movq %rax, 0x20(%r12)
movq (%rbx), %rax
movq %rax, 0x28(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r12)
movq $0x0, 0x40(%r12)
movq %rsp, %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x2dca6
leaq 0x30(%r15), %r12
movq %r12, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2ddda
movq (%rsp), %rax
testq %rax, %rax
je 0x2d4e7
movq %r12, 0x30(%rax)
movq 0x38(%r15), %rcx
movq %rcx, 0x30(%rax)
movq (%r14), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x2d4d0
addq $0x28, %rdi
movq %rsp, %rdx
movq %rdi, %rsi
callq 0x2ddda
movq (%r14), %rax
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x2d4d0
movq (%rsp), %rcx
testq %rcx, %rcx
je 0x2d4e7
leaq 0x28(%rax), %rdx
movq %rdx, 0x38(%rcx)
movq 0x30(%rax), %rax
movq %rax, 0x38(%rcx)
movq (%rbx), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x2d4d0
addq $0x28, %rdi
movq %rsp, %rdx
movq %rdi, %rsi
callq 0x2ddda
movq (%rbx), %rax
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x2d4d0
movq (%rsp), %rcx
testq %rcx, %rcx
je 0x2d4e7
leaq 0x28(%rax), %rdx
movq %rdx, 0x40(%rcx)
movq 0x30(%rax), %rax
movq %rax, 0x40(%rcx)
leaq 0x8(%rsp), %rdi
callq 0x2db42
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x11ee5(%rip), %rdi     # 0x3f3bc
leaq 0x11ee6(%rip), %rsi     # 0x3f3c4
leaq 0x11ffe(%rip), %rcx     # 0x3f4e3
jmp 0x2d4fc
leaq 0x11ece(%rip), %rdi     # 0x3f3bc
leaq 0x11ecf(%rip), %rsi     # 0x3f3c4
leaq 0x11ef4(%rip), %rcx     # 0x3f3f0
movl $0x2d8, %edx            # imm = 0x2D8
callq 0x91f0
movl $0x10, %edi
callq 0x9160
movq %rax, %r14
leaq 0x11e79(%rip), %rsi     # 0x3f393
movq %rax, %rdi
callq 0x9110
movq 0x28ac7(%rip), %rsi     # 0x55ff0
movq 0x28a78(%rip), %rdx     # 0x55fa8
movq %r14, %rdi
callq 0x9580
movq %rax, %rbx
movq %r14, %rdi
callq 0x9270
jmp 0x2d564
movq %rax, %rbx
movl $0x48, %esi
movq %r12, %rdi
callq 0x9330
jmp 0x2d564
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2db42
movq %rbx, %rdi
callq 0x95c0