// 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::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 $0x148, %rsp            # imm = 0x148
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
xorl %ebx, %ebx
movq %rbx, 0x40(%rsp)
movq %rbx, 0x10(%rdi)
leaq 0x30(%rdi), %r14
movq %r14, %rdi
callq 0x124c4
movq %r14, 0x38(%r15)
movq %r14, 0x20(%rsp)
movq %r14, 0x30(%r15)
movq %rbx, 0x40(%r15)
leaq 0x48(%r15), %r14
movq %r14, %rdi
callq 0x124c4
movq %r14, 0x50(%r15)
movq %r14, 0x28(%rsp)
movq %r14, 0x48(%r15)
movq %rbx, 0x58(%r15)
leaq 0x8(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movq %rbx, 0x10(%rax)
movq 0x18(%r15), %r13
cmpq 0x20(%r15), %r13
je 0x118f1
leaq 0x5c(%rsp), %r12
leaq 0x58(%rsp), %rbp
leaq 0x8(%rsp), %rbx
movq 0x8(%r15), %rdi
movq %r13, %rsi
callq 0x1020a
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r12)
movups %xmm0, 0x20(%r12)
movups %xmm0, 0x10(%r12)
movups %xmm0, (%r12)
xorl %eax, %eax
movq %rax, 0x40(%r12)
movb $0x1, 0xb4(%rsp)
movq %rax, 0xb8(%rsp)
movq %rbp, %rdi
movq %r13, %rsi
callq 0xd546
movq %r14, 0xc8(%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x123c2
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6060
incq 0x18(%rsp)
cmpb $0x0, 0xb4(%rsp)
jne 0x118dc
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x118dc
callq 0x6340
movw $0x101, 0x4(%r14)       # imm = 0x101
addq $0x70, %r13
cmpq 0x20(%r15), %r13
jne 0x11852
movq 0x8(%rsp), %rbx
leaq 0x8(%rsp), %rbp
cmpq %rbp, %rbx
movq 0x28(%rsp), %r12
je 0x11bac
leaq 0x58(%rsp), %r14
leaq 0x10(%rbx), %rsi
leaq 0x5c(%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, 0xb4(%rsp)
movq %rcx, 0xb8(%rsp)
movq %r14, %rdi
callq 0xd546
movq 0x80(%rbx), %rax
movq %rax, 0xc8(%rsp)
movq 0x8(%rsp), %rsi
movq %rbp, %rdi
callq 0x1242c
movq (%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
testb %al, %al
je 0x119a9
movq 0xc8(%rsp), %rax
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
movq (%r12), %rbx
movq %r12, %rdi
movq %r14, %rsi
callq 0x1245a
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6060
incq 0x58(%r15)
incq 0x10(%r15)
jmp 0x11b82
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x10b16
cmpl $-0x1, %eax
je 0x11c08
movq 0xc8(%rsp), %rcx
movl %eax, 0x10(%rcx)
movq (%r15), %rdi
movq (%rdi), %r8
movq %r14, %rsi
movl %eax, %edx
leaq 0x30(%rsp), %rcx
callq *0x60(%r8)
movq 0x38(%rsp), %rbx
subq 0x30(%rsp), %rbx
sarq $0x3, %rbx
movabsq $-0x1111111111111111, %rax # imm = 0xEEEEEEEEEEEEEEEF
imulq %rax, %rbx
testl %ebx, %ebx
je 0x11a3a
movl %ebx, %eax
imulq $0x78, %rax, %r12
xorl %ebp, %ebp
movq 0x8(%r15), %rdi
movq 0x30(%rsp), %rsi
addq %rbp, %rsi
addq $0x8, %rdi
callq 0x1069e
testq %rax, %rax
je 0x11b47
movq 0x78(%rax), %rax
cmpb $0x0, 0x4(%rax)
je 0x11b47
addq $0x78, %rbp
cmpq %rbp, %r12
jne 0x11a05
incq 0x10(%r15)
testl %ebx, %ebx
je 0x11b22
movl %ebx, %eax
imulq $0x78, %rax, %r13
xorl %r12d, %r12d
movq %r13, 0x50(%rsp)
movq 0x8(%r15), %rdi
movq 0x30(%rsp), %rsi
addq %r12, %rsi
callq 0x1020a
movq %rax, %rbx
cmpb $0x0, 0x5(%rax)
jne 0x11b15
movq %r15, %rbp
movq %r14, %r13
movq 0x30(%rsp), %rsi
addq %r12, %rsi
xorl %eax, %eax
leaq 0xd4(%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, 0x12c(%rsp)
movq %rax, 0x130(%rsp)
leaq 0xd0(%rsp), %r15
movq %r15, %rdi
callq 0xd546
movq %rbx, 0x140(%rsp)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x123c2
movq %rax, %rdi
movq %r14, %rsi
callq 0x6060
incq 0x18(%rsp)
cmpb $0x0, 0x12c(%rsp)
movq %rbp, %r15
jne 0x11b07
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x11b07
callq 0x6340
movw $0x101, 0x4(%rbx)       # imm = 0x101
movq %r13, %r14
movq 0x50(%rsp), %r13
addq $0x78, %r12
cmpq %r12, %r13
jne 0x11a54
movq 0x28(%rsp), %r12
movq (%r12), %rbx
movq %r12, %rdi
movq %r14, %rsi
callq 0x1245a
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6060
incq 0x58(%r15)
jmp 0x11b7d
incq 0x10(%r15)
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x1245a
movq 0x28(%rsp), %r12
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x6060
incq 0x40(%r15)
movq 0xc8(%rsp), %rax
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
leaq 0x8(%rsp), %rbp
cmpb $0x0, 0xb4(%rsp)
jne 0x11b9e
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x11b9e
callq 0x6340
movq 0x8(%rsp), %rbx
cmpq %rbp, %rbx
jne 0x1190e
movq (%r12), %rax
cmpq %r12, %rax
je 0x11bc5
movq 0x80(%rax), %rcx
movb $0x0, 0x5(%rcx)
movq (%rax), %rax
jmp 0x11bb0
movq 0x20(%rsp), %rdx
movq (%rdx), %rax
cmpq %rdx, %rax
je 0x11be2
movq 0x80(%rax), %rcx
movb $0x0, 0x5(%rcx)
movq (%rax), %rax
jmp 0x11bcd
leaq 0x8(%rsp), %rdi
callq 0x124c4
leaq 0x30(%rsp), %rdi
callq 0xe35c
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1bf4c(%rip), %rdi     # 0x2db5b
leaq 0x1bf5e(%rip), %rsi     # 0x2db74
leaq 0x1bf70(%rip), %rcx     # 0x2db8d
movl $0x58, %edx
callq 0x61c0
jmp 0x11c5d
jmp 0x11c2f
jmp 0x11c5d
jmp 0x11c2f
movq %rax, %rbx
jmp 0x11c7c
jmp 0x11c5d
jmp 0x11c5d
jmp 0x11c5d
movq %rax, %rbx
cmpb $0x0, 0x12c(%rsp)
jne 0x11c60
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x11c60
callq 0x6340
jmp 0x11c60
jmp 0x11c5d
movq %rax, %rbx
cmpb $0x0, 0xb4(%rsp)
jne 0x11c7c
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x11c7c
callq 0x6340
leaq 0x8(%rsp), %rdi
callq 0x124c4
leaq 0x30(%rsp), %rdi
callq 0xe35c
movq %rbx, %rdi
callq 0x6410