// File: ldionne[P]hawick_circuits/boost/graph/hawick_circuits.hpp
// Function: void boost::hawick_circuits_detail::call_hawick_circuits<boost::hawick_circuits_detail::get_all_adjacent_vertices, boost::directed_graph<boost::no_property, boost::no_property, boost::no_property>, cycle_printer<std::ostream>, boost::adj_list_vertex_property_map<boost::adjacency_list<boost::listS, boost::listS, boost::bidirectionalS, boost::property<boost::vertex_index_t, unsigned int, boost::no_property>, boost::property<boost::edge_index_t, unsigned int, boost::no_property>, boost::no_property, boost::listS>, unsigned int, unsigned int const&, boost::vertex_index_t>>(boost::directed_graph<boost::no_property, boost::no_property, boost::no_property> const&, cycle_printer<std::ostream>, boost::adj_list_vertex_property_map<boost::adjacency_list<boost::listS, boost::listS, boost::bidirectionalS, boost::property<boost::vertex_index_t, unsigned int, boost::no_property>, boost::property<boost::edge_index_t, unsigned int, boost::no_property>, boost::no_property, boost::listS>, unsigned int, unsigned int const&, boost::vertex_index_t> const&)
void call_hawick_circuits(Graph const& graph,
                          Visitor /* by value */ visitor,
                          VertexIndexMap const& vertex_index_map) {
    typedef graph_traits<Graph> Traits;
    typedef typename Traits::vertex_descriptor Vertex;
    typedef typename Traits::vertices_size_type VerticesSize;
    typedef typename Traits::vertex_iterator VertexIterator;

    typedef std::vector<Vertex> Stack;
    typedef std::vector<std::vector<Vertex> > ClosedMatrix;

    typedef hawick_circuits_from<
                Graph, Visitor, VertexIndexMap, Stack, ClosedMatrix,
                GetAdjacentVertices
            > SubAlgorithm;

    VerticesSize const n_vertices = num_vertices(graph);
    Stack stack; stack.reserve(n_vertices);
    ClosedMatrix closed(n_vertices);

    VertexIterator start, last;
    for (boost::tie(start, last) = vertices(graph); start != last; ++start) {
        // Note1: The sub algorithm may NOT be reused once it has been called.

        // Note2: We reuse the Stack and the ClosedMatrix (after clearing them)
        // in each iteration to avoid redundant destruction and construction.
        // It would be strictly equivalent to have these as member variables
        // of the sub algorithm.
        SubAlgorithm sub_algo(graph, visitor, vertex_index_map,
                              stack, closed, n_vertices);
        sub_algo(*start);
        stack.clear();
        typename ClosedMatrix::iterator row, last_row = closed.end();
        for (row = closed.begin(); row != last_row; ++row)
            row->clear();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rsi, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x5c90
movq %rax, -0x20(%rbp)
leaq -0x38(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x9b70
movq -0x100(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x9b90
jmp 0x9906
movq -0x20(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq -0x61(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x9c90
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x9cb0
jmp 0x993a
leaq -0x61(%rbp), %rdi
callq 0x9d20
leaq -0x70(%rbp), %rdi
callq 0x60d0
leaq -0x78(%rbp), %rdi
callq 0x60d0
movq -0x10(%rbp), %rdi
callq 0x9d40
movq %rdx, -0x120(%rbp)
movq %rax, -0x118(%rbp)
jmp 0x996e
movq -0x120(%rbp), %rax
movq -0x118(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movq %rax, -0x80(%rbp)
leaq -0x98(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0x9d80
jmp 0x999d
leaq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x9dc0
jmp 0x99b2
jmp 0x99b4
leaq -0x70(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x3c90
testb $0x1, %al
jne 0x99ca
jmp 0x9af5
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rdx
movq %rsp, %rax
movq %rdx, (%rax)
leaq -0xe0(%rbp), %rdi
leaq -0x8(%rbp), %rdx
leaq -0x38(%rbp), %r8
leaq -0x60(%rbp), %r9
callq 0x9df0
jmp 0x99f6
leaq -0x70(%rbp), %rdi
callq 0x3cf0
movq (%rax), %rsi
leaq -0xe0(%rbp), %rdi
callq 0x9f60
jmp 0x9a10
leaq -0x38(%rbp), %rdi
callq 0x9f90
leaq -0xe8(%rbp), %rdi
callq 0x9fb0
leaq -0x60(%rbp), %rdi
callq 0x9fd0
movq %rax, -0xf0(%rbp)
leaq -0x60(%rbp), %rdi
callq 0xa000
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq -0xe8(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0xa030
testb $0x1, %al
jne 0x9a6c
jmp 0x9adb
leaq -0xe8(%rbp), %rdi
callq 0xa070
movq %rax, %rdi
callq 0x9f90
leaq -0xe8(%rbp), %rdi
callq 0xa090
jmp 0x9a53
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x9b19
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x61(%rbp), %rdi
callq 0x9d20
jmp 0x9b19
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x9b10
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0xa0b0
jmp 0x9b10
leaq -0xe0(%rbp), %rdi
callq 0xa0b0
leaq -0x70(%rbp), %rdi
callq 0x3d40
jmp 0x99b4
leaq -0x60(%rbp), %rdi
callq 0xa0d0
leaq -0x38(%rbp), %rdi
callq 0xa130
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
leaq -0x60(%rbp), %rdi
callq 0xa0d0
leaq -0x38(%rbp), %rdi
callq 0xa130
movq -0x40(%rbp), %rdi
callq 0x32e0
nopl (%rax,%rax)