// File: /workspace/github_cpp_makefile_star2_O1/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 0x4985(%rip), %rsi      # 0x9080
leaq 0x497f(%rip), %rdx      # 0x9081
leaq 0x48(%rsp), %rdi
callq 0x2d2c
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 0x4788
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x477f
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x4785
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x4788
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x474c
addl $-0x3, %r14d
jmp 0x4788
addl $-0x2, %r14d
jmp 0x4788
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 0x2240
leaq 0x28(%rsp), %r12
addq (%r12), %r15
movq %r15, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x516c
leaq 0x48db(%rip), %rsi      # 0x90a0
movq %r12, %rdi
callq 0x2370
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47f5
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x47ff
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 0x483a
callq 0x2200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4849
callq 0x2200
movswl 0xc(%rbx), %r15d
movl %r15d, %ebp
negl %ebp
cmovsl %r15d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x488b
movl $0x2, %r14d
cmpl $0x64, %ebp
jb 0x488b
movl $0x3, %r14d
cmpl $0x3e8, %ebp            # imm = 0x3E8
jb 0x488b
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 0x2240
movl %r15d, %edi
leaq 0x28(%rsp), %r15
addq (%r15), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x516c
leaq 0x47df(%rip), %rsi      # 0x90a0
movq %r15, %rdi
callq 0x2370
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x48ec
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x48f6
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 0x4931
callq 0x2200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4940
callq 0x2200
xorps %xmm0, %xmm0
cvtss2sd 0x10(%rbx), %xmm0
movq 0x8671(%rip), %rsi      # 0xcfc0
leaq 0x474c(%rip), %rcx      # 0x90a2
leaq 0x28(%rsp), %rdi
movl $0x3a, %edx
movb $0x1, %al
callq 0x51d9
leaq 0x4732(%rip), %rsi      # 0x90a0
leaq 0x28(%rsp), %rdi
callq 0x2370
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x499b
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x49a3
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 0x49de
callq 0x2200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x49ed
callq 0x2200
movsd 0x18(%rbx), %xmm0
movq 0x85c7(%rip), %rsi      # 0xcfc0
leaq 0x46a2(%rip), %rcx      # 0x90a2
leaq 0x28(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x51d9
leaq 0x4688(%rip), %rsi      # 0x90a0
leaq 0x28(%rsp), %rdi
callq 0x2370
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4a45
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4a4f
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 0x4a8a
callq 0x2200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4a99
callq 0x2200
movswl 0x20(%rbx), %r15d
movl %r15d, %ebx
negl %ebx
cmovsl %r15d, %ebx
movl $0x1, %r14d
cmpl $0xa, %ebx
jb 0x4adb
movl $0x2, %r14d
cmpl $0x64, %ebx
jb 0x4adb
movl $0x3, %r14d
cmpl $0x3e8, %ebx            # imm = 0x3E8
jb 0x4adb
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 0x2240
movl %r15d, %edi
addq 0x8(%rsp), %rdi
movl %r14d, %esi
movl %ebx, %edx
callq 0x516c
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4b2a
callq 0x2200
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x849d(%rip), %rdi      # 0xcfd8
callq 0x2220
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4b54
callq 0x2200
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4bb0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
jne 0x4ba9
jmp 0x4bb3
jmp 0x4bb0
jmp 0x4b88
jmp 0x4b9c
jmp 0x4bb0
jmp 0x4b88
jmp 0x4b9c
jmp 0x4bb0
jmp 0x4b88
jmp 0x4b9c
jmp 0x4bb0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4b9f
callq 0x2200
jmp 0x4b9f
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4bb3
callq 0x2200
jmp 0x4bb3
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4bc7
callq 0x2200
movq %rbx, %rdi
callq 0x2330
nop