// File: /workspace/github_cpp_makefile_star2_O1/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 0x20880
movq %rsi, %rbx
incl 0x20(%r14)
cmpl $0x0, 0x34(%r14)
je 0x20863
leaq 0x48(%r14), %r15
movq %r15, %rdi
callq 0x20d5a
cmpl $0x0, 0x30(%r14)
je 0x2074f
xorl %ebp, %ebp
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x20e2a
incl %ebp
cmpl 0x30(%r14), %ebp
jb 0x2073a
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 0xd546
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 0xd546
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x21fb4
movq %rax, %r15
cmpb $0x0, 0x6c(%rsp)
jne 0x207f5
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x207f5
callq 0x6340
cmpb $0x0, 0xe4(%rsp)
jne 0x20811
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x20811
callq 0x6340
testq %r15, %r15
je 0x20900
subq $-0x80, %r15
movzbl 0x3c(%r14), %r9d
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x21306
movl %eax, %ebp
movq 0x8(%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
movl %ebp, %edx
callq *0x30(%rax)
testb %al, %al
je 0x2091f
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 0x1e9d2(%rip), %al      # 0x3f258
testb %al, %al
leaq 0xd16a(%rip), %rcx      # 0x2d9f9
leaq 0xd6d1(%rip), %rsi      # 0x2df67
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 0xe5ba
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x1e710(%rip), %rdi     # 0x3efd8
callq 0x62e0
movq %rax, %rbx
leaq 0xdc99(%rip), %rsi      # 0x2e570
movl $0x31, %edx
movq %rax, %rdi
callq 0x62e0
movq %rbx, %rdi
callq 0x6150
leaq 0x8(%rsp), %rdi
callq 0x6140
movl $0x1, %edi
callq 0x6310
leaq 0xdc9b(%rip), %rdi      # 0x2e5a2
leaq 0xdca7(%rip), %rsi      # 0x2e5b5
leaq 0xdcb0(%rip), %rcx      # 0x2e5c5
movl $0x9f, %edx
callq 0x61c0
leaq 0xdd08(%rip), %rdi      # 0x2e62e
leaq 0xdc88(%rip), %rsi      # 0x2e5b5
leaq 0xdc91(%rip), %rcx      # 0x2e5c5
movl $0xa1, %edx
callq 0x61c0
movq %rax, %rbx
cmpb $0x0, 0x6c(%rsp)
jne 0x2095c
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2095c
callq 0x6340
jmp 0x2095c
movq %rax, %rbx
cmpb $0x0, 0xe4(%rsp)
jne 0x2098c
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x2098c
callq 0x6340
jmp 0x2098c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2098c
callq 0x6260
movq %rbx, %rdi
callq 0x6410