// File: bonetblai[P]mdp-engine/ctp3/../engine/aot.h
// Function: Online::Policy::AOT::aot_t<state_t>::propagate(Online::Policy::AOT::state_node_t<state_t>*) const
void propagate(state_node_t<T> *s_node) const {
        std::deque<state_node_t<T>*> queue;
        queue.push_back(s_node);
        s_node->in_queue_ = true;
        while( !queue.empty() ) {
            state_node_t<T> *s_node = queue.front();
            queue.pop_front();
            s_node->in_queue_ = false;
            float old_value = s_node->value_;
            if( !s_node->is_leaf() ) s_node->update_value();
            if( s_node->is_leaf() || (old_value != s_node->value_) ) {
                for( int i = 0, isz = s_node->parents_.size(); i < isz; ++i ) {
                    action_node_t<T> *a_node = s_node->parents_[i].second;
                    float old_value = a_node->value_;
                    a_node->update_value(problem_.discount());
                    assert(a_node->parent_ != 0);
                    if( !a_node->parent_->in_queue_ && (old_value != a_node->value_) ) {
                        queue.push_back(a_node->parent_);
                        a_node->parent_->in_queue_ = true;
                    }
                }
            }
        }
    }

// Assembly:
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x58(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x48e30
movq 0x18(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x48e50
jmp 0x4f877
movq 0xa8(%rsp), %rax
movb $0x1, 0x15(%rax)
leaq 0x58(%rsp), %rdi
callq 0x48eb0
xorb $-0x1, %al
testb $0x1, %al
jne 0x4f898
jmp 0x4fa39
leaq 0x58(%rsp), %rdi
callq 0x4fa60
movq (%rax), %rax
movq %rax, 0x40(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x4fa90
movq 0x40(%rsp), %rax
movb $0x0, 0x15(%rax)
movq 0x40(%rsp), %rax
movss 0x8(%rax), %xmm0
movss %xmm0, 0x3c(%rsp)
movq 0x40(%rsp), %rdi
callq 0x46ec0
testb $0x1, %al
jne 0x4f906
movq 0x40(%rsp), %rdi
callq 0x4fb00
jmp 0x4f8e7
jmp 0x4f906
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x49790
jmp 0x4fa4b
movq 0x40(%rsp), %rdi
callq 0x46ec0
testb $0x1, %al
jne 0x4f92c
movss 0x3c(%rsp), %xmm0
movq 0x40(%rsp), %rax
ucomiss 0x8(%rax), %xmm0
jne 0x4f92c
jp 0x4f92c
jmp 0x4fa34
movl $0x0, 0x38(%rsp)
movq 0x40(%rsp), %rdi
addq $0x90, %rdi
callq 0x4bd00
movl %eax, 0x34(%rsp)
movl 0x38(%rsp), %eax
cmpl 0x34(%rsp), %eax
jge 0x4fa32
movq 0x40(%rsp), %rdi
addq $0x90, %rdi
movslq 0x38(%rsp), %rsi
callq 0x4bd20
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq 0x8(%rcx), %rcx
movq %rcx, 0x28(%rsp)
movq 0x28(%rsp), %rcx
movss 0x8(%rcx), %xmm0
movss %xmm0, 0x24(%rsp)
movq 0x28(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movq 0x8(%rax), %rdi
callq 0x28980
movq 0x8(%rsp), %rdi
callq 0x4fc30
jmp 0x4f9ad
movq 0x28(%rsp), %rax
cmpq $0x0, 0x20(%rax)
je 0x4f9bb
jmp 0x4f9da
leaq 0x10281(%rip), %rdi     # 0x5fc43
leaq 0xefac(%rip), %rsi      # 0x5e975
movl $0x2d1, %edx            # imm = 0x2D1
leaq 0x102df(%rip), %rcx     # 0x5fcb4
callq 0x6220
movq 0x28(%rsp), %rax
movq 0x20(%rax), %rax
testb $0x1, 0x15(%rax)
jne 0x4fa20
movss 0x24(%rsp), %xmm0
movq 0x28(%rsp), %rax
ucomiss 0x8(%rax), %xmm0
jne 0x4f9fe
jp 0x4f9fe
jmp 0x4fa20
movq 0x28(%rsp), %rsi
addq $0x20, %rsi
leaq 0x58(%rsp), %rdi
callq 0x48e50
jmp 0x4fa13
movq 0x28(%rsp), %rax
movq 0x20(%rax), %rax
movb $0x1, 0x15(%rax)
jmp 0x4fa22
movl 0x38(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x38(%rsp)
jmp 0x4f949
jmp 0x4fa34
jmp 0x4f883
leaq 0x58(%rsp), %rdi
callq 0x49790
addq $0xb8, %rsp
retq
movq 0x50(%rsp), %rdi
callq 0x6520
nopw %cs:(%rax,%rax)
nop