// File: /workspace/github_cpp_makefile_star2_O1/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 0x1020a
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 0xd546
leaq 0x38(%rsp), %rsi
movq %r12, 0x70(%rsi)
leaq 0x18(%rsp), %rdi
callq 0x123c2
leaq 0x18(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6060
incq 0x10(%rbx)
cmpb $0x0, 0x94(%rsp)
jne 0x11d4d
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x11d4d
callq 0x6340
movb $0x1, 0x5(%r12)
cmpq %rbx, 0x18(%rsp)
je 0x11f87
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 0xd546
movq 0x80(%r15), %rax
movq %rax, 0xa8(%rsp)
movq (%rbp), %r13
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x1245a
movq %rax, %rdi
movq %r13, %rsi
callq 0x6060
incq 0x10(%rbp)
movq 0x20(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x1242c
movq 0xa8(%rsp), %rax
cmpb $0x0, 0x4(%rax)
je 0x11fc4
movl 0x10(%rax), %edx
cmpl $-0x1, %edx
je 0x11ef7
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 0x11f56
movl %eax, %eax
imulq $0x78, %rax, %rbp
xorl %r15d, %r15d
movq 0x8(%r14), %rdi
movq (%rsp), %rsi
addq %r15, %rsi
callq 0x1020a
movq %rax, %r13
cmpb $0x0, 0x5(%rax)
jne 0x11ee8
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 0xd546
movq %r13, 0x120(%rsp)
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x123c2
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6060
incq 0x28(%rsp)
cmpb $0x0, 0x10c(%rsp)
jne 0x11ee3
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x11ee3
callq 0x6340
movb $0x1, 0x5(%r13)
addq $0x78, %r15
cmpq %r15, %rbp
jne 0x11e3b
jmp 0x11f56
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x10b16
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 0x11f56
movl %eax, %eax
imulq $0x78, %rax, %r15
xorl %r13d, %r13d
movq 0x8(%r14), %rdi
movq (%rsp), %rsi
addq %r13, %rsi
callq 0x12502
addq $0x78, %r13
cmpq %r13, %r15
jne 0x11f3d
cmpb $0x0, 0x94(%rsp)
jne 0x11f72
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x11f72
callq 0x6340
leaq 0x18(%rsp), %rax
cmpq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rbp
jne 0x11d63
movq (%rbp), %rax
cmpq %rbp, %rax
je 0x11fa0
movq 0x80(%rax), %rcx
movb $0x0, 0x5(%rcx)
movq (%rax), %rax
jmp 0x11f8b
movq %rsp, %rdi
callq 0xe35c
leaq 0x18(%rsp), %rdi
callq 0x124c4
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1bc15(%rip), %rdi     # 0x2dbe0
leaq 0x1bba2(%rip), %rsi     # 0x2db74
leaq 0x1bc1a(%rip), %rcx     # 0x2dbf3
movl $0x8a, %edx
callq 0x61c0
jmp 0x12017
jmp 0x11feb
jmp 0x11feb
jmp 0x12017
movq %rax, %rbx
jmp 0x12036
jmp 0x12017
jmp 0x12017
movq %rax, %rbx
cmpb $0x0, 0x10c(%rsp)
jne 0x1201a
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x1201a
callq 0x6340
jmp 0x1201a
jmp 0x12017
movq %rax, %rbx
cmpb $0x0, 0x94(%rsp)
jne 0x12036
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x12036
callq 0x6340
movq %rsp, %rdi
callq 0xe35c
leaq 0x18(%rsp), %rdi
callq 0x124c4
movq %rbx, %rdi
callq 0x6410