// File: /workspace/github_cpp_makefile_star2_O2/bonetblai[P]mdp-engine/ctp3/../engine/improved_lao.h
// Function: Algorithm::improved_lao_t<state_t>::policy_graph_t::recompute()
void recompute() {
            std::vector<std::pair<T, float> > outcomes;
            size_ = 0;
            tips_.clear();
            nodes_.clear();

            pair_list open;
            for( vector_iterator si = roots_.begin(); si != roots_.end(); ++si ) {
                Hash::data_t *dptr = hash_.data_ptr(*si);
                open.push_back(std::make_pair(*si, dptr));
                dptr->solve();
                dptr->mark();
            }

            while( !open.empty() ) {
                std::pair<T, Hash::data_t*> n = open.front();
                open.pop_front();

                if( problem_.terminal( n.first ) ) {
                    n.second->set_action(Problem::noop);
                    nodes_.push_front(n);
                    ++size_;
                } else {
                    bool unsolved = false;
                    std::pair<Problem::action_t, float> p = hash_.best_q_value(n.first);
                    assert(p.first != Problem::noop);
                    n.second->set_action(p.first);

                    problem_.next(n.first, p.first, outcomes);
                    unsigned osize = outcomes.size();

                    for( unsigned i = 0; i < osize; ++i ) {
                        if( !hash_.solved(outcomes[i].first) ) {
                            unsolved = true;
                            break;
                        }
                    }

                    ++size_;
                    if( !unsolved ) {
                        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->solve();
                                dptr->mark();
                            }
                        }
                        nodes_.push_front(n);
                    } else {
                        tips_.push_back(n);
                        n.second->set_action(Problem::noop);
                    }
                }
            }

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
andq $0x0, 0x10(%rdi)
addq $0x30, %rdi
movq %rdi, 0x20(%rsp)
callq 0xe242
leaq 0x48(%r15), %r14
movq %r14, %rdi
callq 0xe242
leaq 0x30(%rsp), %r12
movq %r12, 0x8(%r12)
movq %r12, (%r12)
andq $0x0, 0x10(%r12)
movq 0x18(%r15), %r13
leaq 0x48(%rsp), %rbp
cmpq 0x20(%r15), %r13
je 0xe008
movq 0x8(%r15), %rdi
movq %r13, %rsi
callq 0xcf18
movq %rax, %rbx
movq %rbp, %rdi
movq %r13, %rsi
callq 0xa4d8
movq %rbx, 0xb8(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
callq 0xe788
movq %rbp, %rdi
callq 0x8e90
movw $0x101, 0x4(%rbx)       # imm = 0x101
addq $0x70, %r13
jmp 0xdfc1
leaq 0x48(%rsp), %rbx
leaq 0xc0(%rsp), %rbp
movq %r14, 0x28(%rsp)
movq 0x30(%rsp), %rsi
cmpq %r12, %rsi
je 0xe17e
addq $0x10, %rsi
movq %rbx, %rdi
callq 0xe794
movq %r12, %rdi
callq 0xe7b4
movq (%r15), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x20(%rax)
testb %al, %al
je 0xe06c
movq 0xb8(%rsp), %rax
orl $-0x1, 0x10(%rax)
movq %r14, %rdi
movq %rbx, %rsi
callq 0xe7bc
incq 0x10(%r15)
jmp 0xe171
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0xd74c
cmpl $-0x1, %eax
je 0xe1d7
movq 0xb8(%rsp), %rcx
movl %eax, 0x10(%rcx)
movq (%r15), %rdi
movq (%rdi), %r8
movq %rbx, %rsi
movl %eax, %edx
movq %rsp, %rcx
callq *0x60(%r8)
movq 0x8(%rsp), %rax
subq (%rsp), %rax
cqto
pushq $0x78
popq %rcx
idivq %rcx
movl %eax, %eax
imulq $0x78, %rax, %r14
leaq 0x78(%r14), %rbx
xorl %esi, %esi
leaq 0x78(%rsi), %r13
cmpq %r13, %rbx
je 0xe101
movq 0x8(%r15), %rdi
addq (%rsp), %rsi
callq 0xe7c8
movq %r13, %rsi
testb %al, %al
jne 0xe0bb
incq 0x10(%r15)
movq 0x20(%rsp), %rdi
leaq 0x48(%rsp), %rbx
movq %rbx, %rsi
callq 0xe7e4
movq 0x28(%rsp), %r14
movq 0xb8(%rsp), %rax
orl $-0x1, 0x10(%rax)
jmp 0xe171
incq 0x10(%r15)
xorl %r13d, %r13d
cmpq %r13, %r14
je 0xe15c
movq 0x8(%r15), %rdi
movq (%rsp), %rsi
addq %r13, %rsi
callq 0xcf18
movq %rax, %rbx
cmpb $0x0, 0x5(%rax)
jne 0xe156
movq (%rsp), %rsi
addq %r13, %rsi
movq %rbp, %rdi
callq 0xa4d8
movq %rbx, 0x130(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
callq 0xe788
movq %rbp, %rdi
callq 0x8e90
movw $0x101, 0x4(%rbx)       # imm = 0x101
addq $0x78, %r13
jmp 0xe108
movq 0x28(%rsp), %r14
movq %r14, %rdi
leaq 0x48(%rsp), %rbx
movq %rbx, %rsi
callq 0xe7bc
movq %rbx, %rdi
callq 0x8e90
jmp 0xe01a
movq %r14, %rax
movq 0x20(%rsp), %rdx
movq (%rax), %rax
cmpq %r14, %rax
je 0xe19b
movq 0x80(%rax), %rcx
movb $0x0, 0x5(%rcx)
jmp 0xe186
movq %rdx, %rax
movq (%rax), %rax
cmpq %rdx, %rax
je 0xe1b3
movq 0x80(%rax), %rcx
movb $0x0, 0x5(%rcx)
jmp 0xe19e
leaq 0x30(%rsp), %rdi
callq 0xe98e
movq %rsp, %rdi
callq 0xb53c
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x12938(%rip), %rdi     # 0x20b16
leaq 0x1294a(%rip), %rsi     # 0x20b2f
leaq 0x1295c(%rip), %rcx     # 0x20b48
pushq $0x58
popq %rdx
callq 0x51b0
jmp 0xe21b
jmp 0xe1fc
jmp 0xe21b
jmp 0xe1fc
movq %rax, %rbx
jmp 0xe228
jmp 0xe21b
jmp 0xe21b
jmp 0xe21b
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x8e90
jmp 0xe21e
jmp 0xe21b
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x8e90
leaq 0x30(%rsp), %rdi
callq 0xe98e
movq %rsp, %rdi
callq 0xb53c
movq %rbx, %rdi
callq 0x5410