// File: kobanium[P]Ray/src/learn/LearningLog.cpp
// Function: OutputLearningLogFile(int, int, double)
void
OutputLearningLogFile( const int update_steps, const int all_moves, const double consume_time )
{
  std::ofstream ofs(learning_log_file_path, std::ios::app);

  if (!ofs) {
    std::cerr << "Training log file open error." << std::endl;
    std::cerr << update_steps << ", all_moves : " << all_moves << ", run_time : " << consume_time << " seconds" << std::endl;
  } else {
    ofs << "step " << update_steps << ", all_moves : " << all_moves << ", run_time : ";
    ofs << std::fixed << std::setprecision(3) << consume_time << " seconds\n";
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2a0, %rsp            # imm = 0x2A0
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
leaq 0x6a633(%rip), %rsi     # 0xeb810
leaq -0x210(%rbp), %rdi
movl $0x1, %edx
callq 0x7a90
movq -0x210(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x210(%rbp,%rax), %rdi
callq 0x7220
movb %al, -0x221(%rbp)
jmp 0x8120e
movb -0x221(%rbp), %al
testb $0x1, %al
jne 0x8121d
jmp 0x81329
movq 0x65dcc(%rip), %rdi     # 0xe6ff0
leaq 0x2dcc8(%rip), %rsi     # 0xaeef3
callq 0x7530
movq %rax, -0x230(%rbp)
jmp 0x81239
movq -0x230(%rbp), %rdi
movq 0x65d21(%rip), %rsi     # 0xe6f68
callq 0x75b0
jmp 0x8124e
movl -0x4(%rbp), %esi
movq 0x65d98(%rip), %rdi     # 0xe6ff0
callq 0x7980
movq %rax, -0x238(%rbp)
jmp 0x81266
movq -0x238(%rbp), %rdi
leaq 0x2dc9d(%rip), %rsi     # 0xaef11
callq 0x7530
movq %rax, -0x240(%rbp)
jmp 0x81282
movq -0x240(%rbp), %rdi
movl -0x8(%rbp), %esi
callq 0x7980
movq %rax, -0x248(%rbp)
jmp 0x8129a
movq -0x248(%rbp), %rdi
leaq 0x2dc78(%rip), %rsi     # 0xaef20
callq 0x7530
movq %rax, -0x250(%rbp)
jmp 0x812b6
movq -0x250(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
callq 0x7a60
movq %rax, -0x258(%rbp)
jmp 0x812d0
movq -0x258(%rbp), %rdi
leaq 0x2aebb(%rip), %rsi     # 0xac199
callq 0x7530
movq %rax, -0x260(%rbp)
jmp 0x812ec
movq -0x260(%rbp), %rdi
movq 0x65c6e(%rip), %rsi     # 0xe6f68
callq 0x75b0
jmp 0x81301
jmp 0x8142c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x7820
jmp 0x81441
leaq 0x2dc1b(%rip), %rsi     # 0xaef4b
leaq -0x210(%rbp), %rdi
callq 0x7530
movq %rax, -0x268(%rbp)
jmp 0x81345
movq -0x268(%rbp), %rdi
movl -0x4(%rbp), %esi
callq 0x7980
movq %rax, -0x270(%rbp)
jmp 0x8135d
movq -0x270(%rbp), %rdi
leaq 0x2dba6(%rip), %rsi     # 0xaef11
callq 0x7530
movq %rax, -0x278(%rbp)
jmp 0x81379
movq -0x278(%rbp), %rdi
movl -0x8(%rbp), %esi
callq 0x7980
movq %rax, -0x280(%rbp)
jmp 0x81391
movq -0x280(%rbp), %rdi
leaq 0x2db81(%rip), %rsi     # 0xaef20
callq 0x7530
jmp 0x813a6
leaq -0x54dbd(%rip), %rsi    # 0x2c5f0
leaq -0x210(%rbp), %rdi
callq 0x7170
movq %rax, -0x288(%rbp)
jmp 0x813c2
movl $0x3, %edi
callq 0x2c620
movl %eax, -0x28c(%rbp)
jmp 0x813d4
movq -0x288(%rbp), %rdi
movl -0x28c(%rbp), %eax
movl %eax, -0x220(%rbp)
movl -0x220(%rbp), %esi
callq 0x7880
movq %rax, -0x298(%rbp)
jmp 0x813fb
movq -0x298(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
callq 0x7a60
movq %rax, -0x2a0(%rbp)
jmp 0x81415
movq -0x2a0(%rbp), %rdi
leaq 0x2db0b(%rip), %rsi     # 0xaef2e
callq 0x7530
jmp 0x8142a
jmp 0x8142c
leaq -0x210(%rbp), %rdi
callq 0x7820
addq $0x2a0, %rsp            # imm = 0x2A0
popq %rbp
retq
movq -0x218(%rbp), %rdi
callq 0x79b0
nopl (%rax)