// File: /workspace/github_cpp_makefile_star2_O3/camargodev[P]n-tile-puzzle/src/Result.cpp
// Function: Result::writeResult(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Result :: writeResult(string fileName) {
    ofstream outFile;
    outFile.open(fileName, std::ios_base::app);

    string strResult = "";
    strResult += to_string(this->expandedNodes) + ",";
    strResult += to_string(this->optimalSolutionLenght) + ",";
    strResult += to_string(this->duration) + ",";
    strResult += to_string(this->totalHValue/max(this->counter, 1)) + ",";
    strResult += to_string(this->initialHeuristicValue);
    outFile << strResult + "\n";

    outFile.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x68(%rsp), %r15
movq %r15, %rdi
callq 0x2300
movq %r15, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x20e0
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x4475(%rip), %rdx      # 0x9081
leaq 0x48(%rsp), %rdi
movq %rdx, %rsi
callq 0x2d36
movl (%rbx), %r14d
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x4c79
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x4c70
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x4c76
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x4c79
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x4c3d
addl $-0x3, %r15d
jmp 0x4c79
addl $-0x2, %r15d
jmp 0x4c79
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x28(%rsp), %rdi
movl $0x2d, %edx
callq 0x2230
leaq 0x28(%rsp), %r12
addq (%r12), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x5164
leaq 0x43ea(%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 0x4ce6
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4cf0
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 0x4d2b
callq 0x21f0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d3a
callq 0x21f0
movswl 0xc(%rbx), %r15d
movl %r15d, %ebp
negl %ebp
cmovsl %r15d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x4d7c
movl $0x2, %r14d
cmpl $0x64, %ebp
jb 0x4d7c
movl $0x3, %r14d
cmpl $0x3e8, %ebp            # imm = 0x3E8
jb 0x4d7c
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 0x42ee(%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 0x4ddd
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4de7
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 0x4e22
callq 0x21f0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4e31
callq 0x21f0
xorps %xmm0, %xmm0
cvtss2sd 0x10(%rbx), %xmm0
movq 0x8180(%rip), %rsi      # 0xcfc0
leaq 0x425b(%rip), %rcx      # 0x90a2
leaq 0x28(%rsp), %rdi
movl $0x3a, %edx
movb $0x1, %al
callq 0x51d1
leaq 0x4241(%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 0x4e8c
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4e94
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 0x4ecf
callq 0x21f0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4ede
callq 0x21f0
movl 0x8(%rbx), %eax
cmpl $0x2, %eax
movl $0x1, %ecx
cmovgel %eax, %ecx
movsd 0x30(%rbx), %xmm0
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
movq 0x80c0(%rip), %rsi      # 0xcfc0
leaq 0x419b(%rip), %rcx      # 0x90a2
leaq 0x28(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x51d1
leaq 0x4181(%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 0x4f4c
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4f56
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 0x4f91
callq 0x21f0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4fa0
callq 0x21f0
movswl 0x20(%rbx), %r15d
movl %r15d, %ebx
negl %ebx
cmovsl %r15d, %ebx
movl $0x1, %r14d
cmpl $0xa, %ebx
jb 0x4fe2
movl $0x2, %r14d
cmpl $0x64, %ebx
jb 0x4fe2
movl $0x3, %r14d
cmpl $0x3e8, %ebx            # imm = 0x3E8
jb 0x4fe2
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 0x5031
callq 0x21f0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
callq 0x2ca0
leaq 0x402e(%rip), %rsi      # 0x9080
leaq 0x8(%rsp), %rdi
callq 0x2360
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x68(%rsp), %rdi
callq 0x2210
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x507f
callq 0x21f0
leaq 0x68(%rsp), %rdi
callq 0x2280
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x509d
callq 0x21f0
movq 0x7f2c(%rip), %rax      # 0xcfd0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x70(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x68(%rsp,%rcx)
callq 0x21a0
leaq 0x160(%rsp), %rdi
callq 0x2080
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5134
jmp 0x50e9
jmp 0x50e9
jmp 0x5134
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
jne 0x512d
jmp 0x5137
jmp 0x5134
jmp 0x510c
jmp 0x5120
jmp 0x5134
jmp 0x510c
jmp 0x5120
jmp 0x5134
jmp 0x510c
jmp 0x5120
jmp 0x5134
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5123
callq 0x21f0
jmp 0x5123
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5137
callq 0x21f0
jmp 0x5137
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x514b
callq 0x21f0
leaq 0x68(%rsp), %rdi
callq 0x22b0
movq %rbx, %rdi
callq 0x2320
jmp 0x515f
movq %rax, %rbx
jmp 0x514b