// File: /workspace/github_cpp_makefile_star2_O3/bonetblai[P]mdp-engine/ctp3/../engine/uct.h
// Function: Online::Policy::UCT::uct_t<state_t>::operator()(state_t const&) const
virtual Problem::action_t operator()(const T &s) const {
        if( base_policy_ == 0 ) {
            std::cout << Utils::error() << "(base) policy must be specified for uct() policy!" << std::endl;
            exit(1);
        }

        ++policy_t<T>::decisions_;
        if( horizon_ == 0 ) {
            return (*base_policy_)(s);
        } else {
            table_.clear();
            for( unsigned i = 0; i < width_; ++i )
                search_tree(s, 0);
            typename hash_t<T>::iterator it = table_.find(std::make_pair(0, s));
            assert(it != table_.end());
            Problem::action_t action = select_action(s, it->second, 0, false, random_ties_);
            assert(problem_.applicable(s, action));
            return action;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdi, %r14
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x1ecd4
movq %rsi, %rbx
incl 0x20(%r14)
cmpl $0x0, 0x34(%r14)
je 0x1ecb7
leaq 0x48(%r14), %r15
movq %r15, %rdi
callq 0x1f1aa
cmpl $0x0, 0x30(%r14)
je 0x1eba3
xorl %ebp, %ebp
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x1f27a
incl %ebp
cmpl 0x30(%r14), %ebp
jb 0x1eb8e
leaq 0x88(%rsp), %r12
movl $0x0, -0x8(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%r12)
movups %xmm0, 0x14(%r12)
movups %xmm0, 0x24(%r12)
movups %xmm0, 0x34(%r12)
xorl %r13d, %r13d
movq %r13, 0x44(%r12)
movb $0x1, %bpl
movb %bpl, 0x5c(%r12)
movq %r13, 0x60(%r12)
movq %r12, %rdi
movq %rbx, %rsi
callq 0xc30a
movl -0x8(%r12), %eax
leaq 0x10(%rsp), %rdi
movl %eax, -0x8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rdi)
movups %xmm0, 0x14(%rdi)
movups %xmm0, 0x24(%rdi)
movups %xmm0, 0x34(%rdi)
movq %r13, 0x44(%rdi)
movb %bpl, 0x5c(%rdi)
movq %r13, 0x60(%rdi)
movq %r12, %rsi
callq 0xc30a
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x2041a
movq %rax, %r15
cmpb $0x0, 0x6c(%rsp)
jne 0x1ec49
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x1ec49
callq 0x5340
cmpb $0x0, 0xe4(%rsp)
jne 0x1ec65
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x1ec65
callq 0x5340
testq %r15, %r15
je 0x1ed54
subq $-0x80, %r15
movzbl 0x3c(%r14), %r9d
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x1f756
movl %eax, %ebp
movq 0x8(%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
movl %ebp, %edx
callq *0x30(%rax)
testb %al, %al
je 0x1ed73
movl %ebp, %eax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rdi), %rax
movq 0x20(%rax), %rax
movq %rbx, %rsi
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
movb 0x1e57e(%rip), %al      # 0x3d258
testb %al, %al
leaq 0xcd11(%rip), %rcx      # 0x2b9f4
leaq 0xd278(%rip), %rsi      # 0x2bf62
cmovneq %rcx, %rsi
leaq 0x12(%rsi), %rdx
testb %al, %al
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
cmoveq %rsi, %rdx
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0xd386
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x1e2bc(%rip), %rdi     # 0x3cfd8
callq 0x52e0
movq %rax, %rbx
leaq 0xd802(%rip), %rsi      # 0x2c52d
movl $0x31, %edx
movq %rax, %rdi
callq 0x52e0
movq %rbx, %rdi
callq 0x5150
leaq 0x8(%rsp), %rdi
callq 0x5140
movl $0x1, %edi
callq 0x5310
leaq 0xd804(%rip), %rdi      # 0x2c55f
leaq 0xd810(%rip), %rsi      # 0x2c572
leaq 0xd819(%rip), %rcx      # 0x2c582
movl $0x9f, %edx
callq 0x51c0
leaq 0xd871(%rip), %rdi      # 0x2c5eb
leaq 0xd7f1(%rip), %rsi      # 0x2c572
leaq 0xd7fa(%rip), %rcx      # 0x2c582
movl $0xa1, %edx
callq 0x51c0
movq %rax, %rbx
cmpb $0x0, 0x6c(%rsp)
jne 0x1edb0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x1edb0
callq 0x5340
jmp 0x1edb0
movq %rax, %rbx
cmpb $0x0, 0xe4(%rsp)
jne 0x1ede0
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x1ede0
callq 0x5340
jmp 0x1ede0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1ede0
callq 0x5260
movq %rbx, %rdi
callq 0x5410