// File: /workspace/github_cpp_makefile_star2_O3/camargodev[P]n-tile-puzzle/src/Result.cpp
// Function: Result::printResult()
void Result :: printResult() {
    string strResult = "\n";
    this->averageHeuristicValue = this->totalHValue/max(this->counter, 1);
    strResult += to_string(this->expandedNodes) + ",";
    strResult += to_string(this->optimalSolutionLenght) + ",";
    strResult += to_string(this->duration) + ",";
    strResult += to_string(this->averageHeuristicValue) + ",";
    strResult += to_string(this->initialHeuristicValue);
    cout << strResult;
    // cout << "\nXXX: " << averageHeuristicValue;
    // cout << "\nCounter: " << counter;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x498d(%rip), %rsi      # 0x9080
leaq 0x4987(%rip), %rdx      # 0x9081
leaq 0x48(%rsp), %rdi
callq 0x2d36
movsd 0x30(%rbx), %xmm0
movl 0x8(%rbx), %eax
cmpl $0x2, %eax
movl $0x1, %r14d
cmovll %r14d, %eax
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rbx)
movl (%rbx), %r15d
movl %r15d, %ebp
negl %ebp
cmovsl %r15d, %ebp
cmpl $0xa, %ebp
jb 0x4780
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x4777
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x477d
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x4780
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x4744
addl $-0x3, %r14d
jmp 0x4780
addl $-0x2, %r14d
jmp 0x4780
decl %r14d
shrl $0x1f, %r15d
leal (%r14,%r15), %esi
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x28(%rsp), %rdi
movl $0x2d, %edx
callq 0x2230
leaq 0x28(%rsp), %r12
addq (%r12), %r15
movq %r15, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x5164
leaq 0x48e3(%rip), %rsi      # 0x90a0
movq %r12, %rdi
callq 0x2360
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47ed
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x47f7
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4832
callq 0x21f0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4841
callq 0x21f0
movswl 0xc(%rbx), %r15d
movl %r15d, %ebp
negl %ebp
cmovsl %r15d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x4883
movl $0x2, %r14d
cmpl $0x64, %ebp
jb 0x4883
movl $0x3, %r14d
cmpl $0x3e8, %ebp            # imm = 0x3E8
jb 0x4883
cmpl $0x2710, %ebp           # imm = 0x2710
movl $0x5, %r14d
sbbl $0x0, %r14d
shrl $0x1f, %r15d
leal (%r14,%r15), %esi
leaq 0x28(%rsp), %rdi
movq %r13, (%rdi)
movl $0x2d, %edx
callq 0x2230
movl %r15d, %edi
leaq 0x28(%rsp), %r15
addq (%r15), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x5164
leaq 0x47e7(%rip), %rsi      # 0x90a0
movq %r15, %rdi
callq 0x2360
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x48e4
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x48ee
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4929
callq 0x21f0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4938
callq 0x21f0
xorps %xmm0, %xmm0
cvtss2sd 0x10(%rbx), %xmm0
movq 0x8679(%rip), %rsi      # 0xcfc0
leaq 0x4754(%rip), %rcx      # 0x90a2
leaq 0x28(%rsp), %rdi
movl $0x3a, %edx
movb $0x1, %al
callq 0x51d1
leaq 0x473a(%rip), %rsi      # 0x90a0
leaq 0x28(%rsp), %rdi
callq 0x2360
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4993
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x499b
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x49d6
callq 0x21f0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x49e5
callq 0x21f0
movsd 0x18(%rbx), %xmm0
movq 0x85cf(%rip), %rsi      # 0xcfc0
leaq 0x46aa(%rip), %rcx      # 0x90a2
leaq 0x28(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x51d1
leaq 0x4690(%rip), %rsi      # 0x90a0
leaq 0x28(%rsp), %rdi
callq 0x2360
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4a3d
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4a47
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4a82
callq 0x21f0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4a91
callq 0x21f0
movswl 0x20(%rbx), %r15d
movl %r15d, %ebx
negl %ebx
cmovsl %r15d, %ebx
movl $0x1, %r14d
cmpl $0xa, %ebx
jb 0x4ad3
movl $0x2, %r14d
cmpl $0x64, %ebx
jb 0x4ad3
movl $0x3, %r14d
cmpl $0x3e8, %ebx            # imm = 0x3E8
jb 0x4ad3
cmpl $0x2710, %ebx           # imm = 0x2710
movl $0x5, %r14d
sbbl $0x0, %r14d
shrl $0x1f, %r15d
leal (%r14,%r15), %esi
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
movl $0x2d, %edx
callq 0x2230
movl %r15d, %edi
addq 0x8(%rsp), %rdi
movl %r14d, %esi
movl %ebx, %edx
callq 0x5164
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4b22
callq 0x21f0
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x84a5(%rip), %rdi      # 0xcfd8
callq 0x2210
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4b4c
callq 0x21f0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4ba8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
jne 0x4ba1
jmp 0x4bab
jmp 0x4ba8
jmp 0x4b80
jmp 0x4b94
jmp 0x4ba8
jmp 0x4b80
jmp 0x4b94
jmp 0x4ba8
jmp 0x4b80
jmp 0x4b94
jmp 0x4ba8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4b97
callq 0x21f0
jmp 0x4b97
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4bab
callq 0x21f0
jmp 0x4bab
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4bbf
callq 0x21f0
movq %rbx, %rdi
callq 0x2320
nop