// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/tree/./tree.h
// Function: problem_t::next(state_t const&, int, std::vector<std::pair<state_t, float>, std::allocator<std::pair<state_t, float>>>&) const
virtual void next(const state_t &s, Problem::action_t a, std::vector<std::pair<state_t, float> > &outcomes) const {
        ++expansions_;
        outcomes.clear();
        if( a == Problem::noop ) {
            outcomes.reserve(1);
            outcomes.push_back(std::make_pair(s, 1.0));
        } else {
            outcomes.reserve(3);
            float p = pow(p_, 1 + s.onebits());
            float q = noisy(s) ? p * q_ : 0.0;
            if( p - q > 0 ) outcomes.push_back(std::make_pair(s, p - q));
            if( q > 0 ) outcomes.push_back(std::make_pair(s, q));
            if( 1 - p > 0 ) outcomes.push_back(std::make_pair(s, 1 - p));

            unsigned j = 0;
            if( a == onelfwd ) {
                if( p - q > 0 ) outcomes[j++].first.onelfwd(n_);
                if( q > 0 ) outcomes[j++].first.onerfwd(n_);
            } else if( a == onerfwd ) {
                if( p - q > 0 ) outcomes[j++].first.onerfwd(n_);
                if( q > 0 ) outcomes[j++].first.onelfwd(n_);
            }
            if( 1 - p > 0 ) outcomes[j++].first.onebwd();
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
movl %edx, %ebp
movq %rdi, %r14
incq 0x10(%rdi)
movq %rsi, %r15
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
je 0x8b06
movq %rax, 0x8(%rbx)
cmpl $-0x1, %ebp
je 0x8b85
movl $0x3, %esi
movq %rbx, %rdi
callq 0x98ee
movl $0x3ffffff, %eax        # imm = 0x3FFFFFF
andl (%r15), %eax
movss 0x1c(%r14), %xmm0
movl 0x4(%r15), %edx
xorl %ecx, %ecx
movl $0x20, %esi
movl %eax, %edi
andl $0x1, %edi
addl %ecx, %edi
shrl %eax
movl %edx, %ecx
andl $0x1, %ecx
addl %edi, %ecx
shrl %edx
decl %esi
jne 0x8b31
incl %ecx
cvtss2sd %xmm0, %xmm0
cvtsi2sd %rcx, %xmm1
callq 0x5360
xorpd %xmm1, %xmm1
ucomiss 0x24(%r14), %xmm1
jae 0x8bb1
leaq 0x30(%r14), %rdi
movq %r15, %rsi
movsd %xmm0, 0x10(%rsp)
callq 0x9c04
movsd 0x10(%rsp), %xmm0
xorps %xmm1, %xmm1
testq %rax, %rax
setne %al
jmp 0x8bb3
movl $0x1, %esi
movq %rbx, %rdi
callq 0x98ee
movq (%r15), %rax
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movl $0x3f800000, 0x8(%rsi)  # imm = 0x3F800000
movq %rbx, %rdi
callq 0x9a6c
jmp 0x8d57
xorl %eax, %eax
cvtsd2ss %xmm0, %xmm0
testb %al, %al
je 0x8bc5
movss 0x20(%r14), %xmm1
mulss %xmm0, %xmm1
ucomiss %xmm0, %xmm1
movss %xmm1, 0xc(%rsp)
movss %xmm0, 0x10(%rsp)
jae 0x8c04
movss 0x10(%rsp), %xmm0
subss %xmm1, %xmm0
movq (%r15), %rax
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movss %xmm0, 0x8(%rsi)
movq %rbx, %rdi
callq 0x9a6c
movss 0x10(%rsp), %xmm0
movss 0xc(%rsp), %xmm1
xorps %xmm3, %xmm3
ucomiss %xmm3, %xmm1
jbe 0x8c33
movq (%r15), %rax
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movss %xmm1, 0x8(%rsi)
movq %rbx, %rdi
callq 0x9a6c
xorps %xmm3, %xmm3
movss 0x10(%rsp), %xmm0
movss 0xc(%rsp), %xmm1
movss 0x1d3c9(%rip), %xmm2    # 0x26004
subss %xmm0, %xmm2
ucomiss %xmm3, %xmm2
jbe 0x8c74
movq (%r15), %rax
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movss %xmm2, 0x8(%rsi)
movq %rbx, %rdi
movss %xmm2, 0x8(%rsp)
callq 0x9a6c
movss 0x10(%rsp), %xmm0
movss 0x8(%rsp), %xmm2
movss 0xc(%rsp), %xmm1
xorl %r15d, %r15d
cmpl $0x1, %ebp
je 0x8ce1
testl %ebp, %ebp
jne 0x8d3d
xorl %r15d, %r15d
ucomiss %xmm0, %xmm1
jae 0x8cae
movq (%rbx), %rax
movl 0x18(%r14), %edx
movl (%rax), %ecx
movl %ecx, %esi
shrl $0x1a, %esi
decl %edx
movl $0x1, %r15d
cmpl %edx, %esi
jae 0x8cae
addl $0x4000000, %ecx        # imm = 0x4000000
movl %ecx, (%rax)
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm1
jbe 0x8d3d
movl %r15d, %eax
incl %r15d
leaq (%rax,%rax,2), %rdi
shll $0x2, %edi
addq (%rbx), %rdi
movl 0x18(%r14), %esi
movss %xmm2, 0x8(%rsp)
callq 0x9980
movss 0x8(%rsp), %xmm2
jmp 0x8d3d
ucomiss %xmm0, %xmm1
jae 0x8d0a
movq (%rbx), %rdi
movl 0x18(%r14), %esi
movss %xmm2, 0x8(%rsp)
callq 0x9980
movss 0x8(%rsp), %xmm2
movss 0xc(%rsp), %xmm1
movl $0x1, %r15d
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm1
jbe 0x8d3d
movl %r15d, %ecx
incl %r15d
movq (%rbx), %rax
leaq (%rcx,%rcx,2), %rdx
movl 0x18(%r14), %esi
movl (%rax,%rdx,4), %ecx
movl %ecx, %edi
shrl $0x1a, %edi
decl %esi
cmpl %esi, %edi
jae 0x8d3d
leaq (%rax,%rdx,4), %rax
addl $0x4000000, %ecx        # imm = 0x4000000
movl %ecx, (%rax)
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm2
jbe 0x8d57
movl %r15d, %eax
leaq (%rax,%rax,2), %rdi
shll $0x2, %edi
addq (%rbx), %rdi
callq 0x99c8
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq