// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/dispatcher.h
// Function: Dispatcher::dispatcher_t<state_t>::evaluate(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Online::Policy::policy_t<state_t> const&, state_t const&, Dispatcher::dispatcher_t<state_t>::evaluate_result_t&, unsigned int, unsigned int, bool) const
void dispatcher_t<T>::evaluate(const std::string &name, const Online::Policy::policy_t<T> &policy, const T &s, evaluate_result_t &result, unsigned num_trials, unsigned max_evaluation_depth, bool verbose) const {
    std::cout << "dispatcher: evaluate: " << name << std::endl;
    const Problem::problem_t<T> &problem = policy.problem();
    policy.reset_stats();

    result.name_ = name;
    result.policy_ = &policy;
    result.seed_ = policy.seed();
    Random::set_seed(result.seed_);

    float start_time = Utils::read_time_in_seconds();
    std::pair<float, float> p = Online::Evaluation::evaluation_with_stdev(policy, problem.init(), num_trials, max_evaluation_depth, verbose);
    result.eval_value_ = p.first;
    result.eval_stdev_ = p.second;
    float end_time = Utils::read_time_in_seconds();

    // expansions from problem
    result.problem_expansions_ = problem.expansions();

    // time stats
    result.time_raw_ = end_time - start_time;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %r9d, %ebp
movq %r8, %rbx
movq %rdx, %r15
movq %rsi, %r13
movb 0xd8(%rsp), %r14b
movq 0x34978(%rip), %r12     # 0x3efd8
leaq 0x25c33(%rip), %rsi     # 0x3029a
movl $0x16, %edx
movq %r12, %rdi
callq 0x62e0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x62e0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x6270
movsbl %al, %esi
movq %r12, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61e0
movq (%r15), %rax
movq 0x8(%r15), %r12
movq %r15, %rdi
callq *0x28(%rax)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6170
movq %r15, 0x20(%rbx)
movslq 0x10(%r15), %rdi
movl %edi, 0x28(%rbx)
leaq 0x8(%rsp), %r13
movw %di, 0x4(%r13)
movw %di, 0x2(%r13)
movw %di, (%r13)
callq 0x63f0
movq %r13, %rdi
callq 0x6120
leaq 0x8(%rsp), %r13
xorl %edi, %edi
movq %r13, %rsi
callq 0x6190
cvtsi2ssq (%r13), %xmm0
movss %xmm0, (%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%r13), %xmm0
movss %xmm0, 0x4(%rsp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %r13, %rsi
callq 0x6190
cvtsi2ssq (%r13), %xmm1
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%r13), %xmm0
addss (%rsp), %xmm1
movss %xmm1, (%rsp)
addss 0x4(%rsp), %xmm0
movss %xmm0, 0x4(%rsp)
movq (%r12), %rax
movq %r12, %rdi
callq *0x18(%rax)
movzbl %r14b, %r8d
movq %r15, %rdi
movq %rax, %rsi
movl %ebp, %edx
movl 0xd0(%rsp), %ecx
callq 0x2bc28
movlps %xmm0, 0x30(%rbx)
leaq 0x8(%rsp), %r14
xorl %edi, %edi
movq %r14, %rsi
callq 0x6190
xorps %xmm0, %xmm0
cvtsi2ssq (%r14), %xmm0
subss (%rsp), %xmm0
movss %xmm0, (%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%r14), %xmm0
subss 0x4(%rsp), %xmm0
movss %xmm0, 0x4(%rsp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %r14, %rsi
callq 0x6190
xorps %xmm0, %xmm0
cvtsi2ssq (%r14), %xmm0
xorps %xmm1, %xmm1
cvtsi2ssq 0x8(%r14), %xmm1
addss (%rsp), %xmm0
addss 0x4(%rsp), %xmm1
movl 0x10(%r12), %eax
movl %eax, 0x2c(%rbx)
mulss 0x22822(%rip), %xmm1    # 0x2d004
addss %xmm0, %xmm1
movss %xmm1, 0x38(%rbx)
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop