// File: /workspace/github_cpp_makefile_star2_O1/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 0x2783(%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 0x8d7b
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x8d84
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 0x2724(%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 0x8dd3
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x8ddc
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 0x8e0b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e26
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 0x8e90
movq 0x619f(%rip), %r14      # 0xeff0
leaq 0x2678(%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 0x616d(%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 0x25bb(%rip), %xmm1     # 0xb470
addsd %xmm0, %xmm1
subsd 0x8(%rbx), %xmm1
ucomisd 0x25b2(%rip), %xmm1     # 0xb478
jbe 0x8f8f
leaq 0x262d(%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 0x2566(%rip), %xmm1     # 0xb470
addsd %xmm0, %xmm1
subsd (%rbx), %xmm1
cvttsd2si %xmm1, %esi
leaq 0x48(%rsp), %rdi
callq 0x33c0
movq %rax, %r14
leaq 0x25db(%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 0x24ea(%rip), %xmm1     # 0xb470
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rbx)
leaq 0x48(%rsp), %rdi
callq 0x32e0
movq 0x6020(%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 0x8fe2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x5fb7(%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 0x905d
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x9034
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x9034
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9074
movq 0x18(%rsp), %rsi
jmp 0x906c
jmp 0x904b
movq %rax, %rbx
jmp 0x9074
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x3310
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x9074
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x5f25(%rip), %rsi      # 0xefa0
leaq 0x248(%rsp), %rdi
callq 0x31b0
leaq 0x2c8(%rsp), %rdi
callq 0x30d0
movq %rbx, %rdi
callq 0x33d0
nopl (%rax)