// File: /workspace/github_cpp_makefile_star2_O3/bonetblai[P]mdp-engine/ctp3/../engine/improved_lao.h
// Function: Algorithm::improved_lao_t<state_t>::policy_graph_t::postorder_dfs(state_t const&, std::__cxx11::list<std::pair<state_t, Hash::data_t*>, std::allocator<std::pair<state_t, Hash::data_t*>>>&)
void postorder_dfs(const T &s, pair_list &visited) {
            pair_list open;

            std::vector<std::pair<T, float> > outcomes;
            Hash::data_t *dptr = hash_.data_ptr(s);
            open.push_back(std::make_pair(s, dptr ));
            dptr->mark();

            while( !open.empty() ) {
                std::pair<T, Hash::data_t*> n = open.back();
                visited.push_front(n);
                open.pop_back();
                assert(n.second->solved());

                if( n.second->action() != Problem::noop ) {
                    problem_.next(n.first, n.second->action(), outcomes);
                    unsigned osize = outcomes.size();
                    for( unsigned i = 0; i < osize; ++i ) {
                        Hash::data_t *dptr = hash_.data_ptr(outcomes[i].first);
                        if( !dptr->marked() ) {
                            open.push_back(std::make_pair(outcomes[i].first, dptr));
                            dptr->mark();
                        }
                    }
                } else {
                    std::pair<Problem::action_t, float> p = hash_.best_q_value(n.first);
                    problem_.next(n.first, p.first, outcomes);
                    unsigned osize = outcomes.size();
                    for( unsigned i = 0; i < osize; ++i )
                        hash_.solve(outcomes[i].first);
                }
            }

            // unmark nodes
            for( list_iterator si = visited.begin(); si != visited.end(); ++si )
                si->second->unmark();
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdx, %rbp
movq %rsi, %r15
movq %rdi, %r14
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x10(%rax)
movq %rcx, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq 0x8(%rdi), %rdi
callq 0xefb2
movq %rax, %r12
leaq 0x38(%rsp), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x34(%rdi)
movups %xmm0, 0x24(%rdi)
movups %xmm0, 0x14(%rdi)
movups %xmm0, 0x4(%rdi)
xorl %eax, %eax
movq %rax, 0x44(%rdi)
movb $0x1, 0x5c(%rdi)
movq %rax, 0x60(%rdi)
movq %r15, %rsi
callq 0xc30a
leaq 0x38(%rsp), %rsi
movq %r12, 0x70(%rsi)
leaq 0x18(%rsp), %rdi
callq 0x11116
leaq 0x18(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5060
incq 0x10(%rbx)
cmpb $0x0, 0x94(%rsp)
jne 0x10a81
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x10a81
callq 0x5340
movb $0x1, 0x5(%r12)
cmpq %rbx, 0x18(%rsp)
je 0x10cbb
movq %rbp, 0x30(%rsp)
movq 0x20(%rsp), %r15
leaq 0x10(%r15), %rsi
leaq 0x3c(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x40(%rax)
movb $0x1, 0x94(%rsp)
movq %rcx, 0x98(%rsp)
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0xc30a
movq 0x80(%r15), %rax
movq %rax, 0xa8(%rsp)
movq (%rbp), %r13
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x111ae
movq %rax, %rdi
movq %r13, %rsi
callq 0x5060
incq 0x10(%rbp)
movq 0x20(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x11180
movq 0xa8(%rsp), %rax
cmpb $0x0, 0x4(%rax)
je 0x10cf8
movl 0x10(%rax), %edx
cmpl $-0x1, %edx
je 0x10c2b
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
movq %rsp, %rcx
callq *0x60(%rax)
movq 0x8(%rsp), %rax
subq (%rsp), %rax
sarq $0x3, %rax
movabsq $-0x1111111111111111, %rcx # imm = 0xEEEEEEEEEEEEEEEF
imulq %rcx, %rax
testl %eax, %eax
je 0x10c8a
movl %eax, %eax
imulq $0x78, %rax, %rbp
xorl %r15d, %r15d
movq 0x8(%r14), %rdi
movq (%rsp), %rsi
addq %r15, %rsi
callq 0xefb2
movq %rax, %r13
cmpb $0x0, 0x5(%rax)
jne 0x10c1c
movq (%rsp), %rsi
addq %r15, %rsi
xorl %eax, %eax
leaq 0xb4(%rsp), %rcx
movq %rax, 0x40(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rcx)
movups %xmm0, 0x20(%rcx)
movups %xmm0, 0x10(%rcx)
movups %xmm0, (%rcx)
movb $0x1, 0x10c(%rsp)
movq %rax, 0x110(%rsp)
leaq 0xb0(%rsp), %r12
movq %r12, %rdi
callq 0xc30a
movq %r13, 0x120(%rsp)
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11116
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5060
incq 0x28(%rsp)
cmpb $0x0, 0x10c(%rsp)
jne 0x10c17
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x10c17
callq 0x5340
movb $0x1, 0x5(%r13)
addq $0x78, %r15
cmpq %r15, %rbp
jne 0x10b6f
jmp 0x10c8a
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0xf8b0
movq (%r14), %rdi
movq (%rdi), %r8
movq %rbx, %rsi
movl %eax, %edx
movq %rsp, %rcx
callq *0x60(%r8)
movq 0x8(%rsp), %rax
subq (%rsp), %rax
sarq $0x3, %rax
movabsq $-0x1111111111111111, %rcx # imm = 0xEEEEEEEEEEEEEEEF
imulq %rcx, %rax
testl %eax, %eax
je 0x10c8a
movl %eax, %eax
imulq $0x78, %rax, %r15
xorl %r13d, %r13d
movq 0x8(%r14), %rdi
movq (%rsp), %rsi
addq %r13, %rsi
callq 0x11256
addq $0x78, %r13
cmpq %r13, %r15
jne 0x10c71
cmpb $0x0, 0x94(%rsp)
jne 0x10ca6
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x10ca6
callq 0x5340
leaq 0x18(%rsp), %rax
cmpq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rbp
jne 0x10a97
movq (%rbp), %rax
cmpq %rbp, %rax
je 0x10cd4
movq 0x80(%rax), %rcx
movb $0x0, 0x5(%rcx)
movq (%rax), %rax
jmp 0x10cbf
movq %rsp, %rdi
callq 0xd12e
leaq 0x18(%rsp), %rdi
callq 0x11218
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1aedc(%rip), %rdi     # 0x2bbdb
leaq 0x1ae69(%rip), %rsi     # 0x2bb6f
leaq 0x1aee1(%rip), %rcx     # 0x2bbee
movl $0x8a, %edx
callq 0x51c0
jmp 0x10d4b
jmp 0x10d1f
jmp 0x10d1f
jmp 0x10d4b
movq %rax, %rbx
jmp 0x10d6a
jmp 0x10d4b
jmp 0x10d4b
movq %rax, %rbx
cmpb $0x0, 0x10c(%rsp)
jne 0x10d4e
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x10d4e
callq 0x5340
jmp 0x10d4e
jmp 0x10d4b
movq %rax, %rbx
cmpb $0x0, 0x94(%rsp)
jne 0x10d6a
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x10d6a
callq 0x5340
movq %rsp, %rdi
callq 0xd12e
leaq 0x18(%rsp), %rdi
callq 0x11218
movq %rbx, %rdi
callq 0x5410