// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/Utils.cpp
// Function: Utils::OutLog()
void 
Utils::OutLog(void){
  int a = 0; //a dummy
  stringstream ss;
  ss << a;
  string log = LOG_DIR + ss.str() + ".log";
  ofstream fout(log.c_str(),ios::app);
  if(!fout)
    cerr << "Cannot open output file. No log file generated!"<<endl;

  if(this->GetCurTime()-this->last_time > 100){
    fout<<"The "<<int(this->GetCurTime()-this->start_time)<<"th second: "<<endl;
    this->last_time = this->GetCurTime();
   }

  fout.close();

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x3d0, %rsp            # imm = 0x3D0
movq %rdi, %rbx
leaq 0x248(%rsp), %rdi
callq 0x3190
leaq 0x258(%rsp), %rdi
xorl %esi, %esi
callq 0x33c0
leaq 0x260(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x3350
leaq 0x251f(%rip), %rcx      # 0xb4c3
leaq 0x8(%rsp), %rdi
movl $0x7, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x3290
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8fdf
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x8fe8
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x24c0(%rip), %rsi      # 0xb4cb
callq 0x3410
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9037
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x9040
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x906f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x908a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x28(%rsp), %rsi
leaq 0x48(%rsp), %rdi
movl $0x1, %edx
callq 0x3280
movq 0x48(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x68(%rsp,%rax)
je 0x90f4
movq 0x5f3b(%rip), %r14      # 0xeff0
leaq 0x2414(%rip), %rsi      # 0xb4d0
movl $0x2f, %edx
movq %r14, %rdi
callq 0x32a0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq 0x5f09(%rip), %rdi      # 0xeff0
callq 0x3030
movq %rax, %rdi
callq 0x3170
leaq 0x8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x3380
xorps %xmm0, %xmm0
cvtsi2sdq (%r14), %xmm0
cvtsi2sdq 0x8(%r14), %xmm1
divsd 0x2377(%rip), %xmm1     # 0xb490
addsd %xmm0, %xmm1
subsd 0x8(%rbx), %xmm1
ucomisd 0x236e(%rip), %xmm1     # 0xb498
jbe 0x91f3
leaq 0x23c9(%rip), %rsi      # 0xb500
leaq 0x48(%rsp), %rdi
movl $0x4, %edx
callq 0x32a0
leaq 0x8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x3380
xorps %xmm0, %xmm0
cvtsi2sdq (%r14), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdq 0x8(%r14), %xmm1
divsd 0x2322(%rip), %xmm1     # 0xb490
addsd %xmm0, %xmm1
subsd (%rbx), %xmm1
cvttsd2si %xmm1, %esi
leaq 0x48(%rsp), %rdi
callq 0x33c0
movq %rax, %r14
leaq 0x2377(%rip), %rsi      # 0xb505
movl $0xb, %edx
movq %rax, %rdi
callq 0x32a0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3170
leaq 0x8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x3380
xorps %xmm0, %xmm0
cvtsi2sdq (%r14), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdq 0x8(%r14), %xmm1
divsd 0x22a6(%rip), %xmm1     # 0xb490
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rbx)
leaq 0x48(%rsp), %rdi
callq 0x32e0
movq 0x5dbc(%rip), %rax      # 0xefc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x50(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x48(%rsp,%rcx)
callq 0x31f0
leaq 0x140(%rsp), %rdi
callq 0x30d0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x9246
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x5d53(%rip), %rsi      # 0xefa0
leaq 0x248(%rsp), %rdi
callq 0x31b0
leaq 0x2c8(%rsp), %rdi
callq 0x30d0
addq $0x3d0, %rsp            # imm = 0x3D0
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x92c1
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x9298
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x9298
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x92d8
movq 0x18(%rsp), %rsi
jmp 0x92d0
jmp 0x92af
movq %rax, %rbx
jmp 0x92d8
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x3310
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x92d8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x5cc1(%rip), %rsi      # 0xefa0
leaq 0x248(%rsp), %rdi
callq 0x31b0
leaq 0x2c8(%rsp), %rdi
callq 0x30d0
movq %rbx, %rdi
callq 0x33d0
nopl (%rax)