// File: GAStudyGroup[P]GPX2/src/base/sources/Log.cpp
// Function: Log::printHeader(std::ostream&)
void Log::printHeader(ostream &out){
    out << "Run id: "+to_string(Config::ID)+"\nGenetic Algoritm for problem "+Config::NAME+" with population size "+to_string(Config::POP_SIZE);
    out << (Config::LK_PERCENTAGE>0?(", using "+to_string(Config::LK_PERCENTAGE*100)+"% of LK generated tours"):(""));
    out <<"\nUsing new generation method: ";
    switch(Config::NEW_POP_TYPE){
        case 0:{
            out << "Cross using OX";
            break;
        }
        default:
        case 1:{
            out << " All vs All GPX2 crossover saving "+to_string(Config::N_BEST)+" with reset population and roulete.";
            break;
        }
        case 2:{
            out << "GPX2 with Ant Colony to introduce randomness";
            break;
        }
    }
    out<<"\nBest known solution: "<<to_string(Config::BEST_FITNESS)<<".\n";
    out.flush();
}

// Assembly:
subq $0x238, %rsp            # imm = 0x238
movq %rdi, 0x230(%rsp)
movq 0x230(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x862ed(%rip), %rax     # 0x9c9b0
movl (%rax), %esi
leaq 0x170(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x188a0
movq 0x50(%rsp), %rdx
leaq 0x5dd46(%rip), %rsi     # 0x74429
leaq 0x190(%rsp), %rdi
callq 0x18850
jmp 0x166f2
leaq 0x5dd39(%rip), %rdx     # 0x74432
leaq 0x1b0(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x186c0
jmp 0x16710
leaq 0x862a1(%rip), %rdx     # 0x9c9b8
leaq 0x1d0(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
callq 0x18800
jmp 0x1672e
leaq 0x5dd1c(%rip), %rdx     # 0x74451
leaq 0x1f0(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
callq 0x186c0
jmp 0x1674c
leaq 0x862ad(%rip), %rax     # 0x9ca00
movl (%rax), %esi
leaq 0x140(%rsp), %rdi
callq 0x188a0
jmp 0x16764
leaq 0x210(%rsp), %rdi
leaq 0x1f0(%rsp), %rsi
leaq 0x140(%rsp), %rdx
callq 0x18710
jmp 0x16783
movq 0x48(%rsp), %rdi
leaq 0x210(%rsp), %rsi
callq 0x6440
jmp 0x16797
leaq 0x210(%rsp), %rdi
callq 0x6988
leaq 0x140(%rsp), %rdi
callq 0x6988
leaq 0x1f0(%rsp), %rdi
callq 0x6988
leaq 0x1d0(%rsp), %rdi
callq 0x6988
leaq 0x1b0(%rsp), %rdi
callq 0x6988
leaq 0x190(%rsp), %rdi
callq 0x6988
leaq 0x170(%rsp), %rdi
callq 0x6988
movq 0x230(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0x861f2(%rip), %rax     # 0x9c9f8
movsd (%rax), %xmm0
movb $0x0, 0xdf(%rsp)
movb $0x0, 0xde(%rsp)
movb $0x0, 0xdc(%rsp)
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x1689f
leaq 0x861c6(%rip), %rax     # 0x9c9f8
movsd (%rax), %xmm0
movsd 0x5db9a(%rip), %xmm1    # 0x743d8
mulsd %xmm1, %xmm0
leaq 0xe0(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x189a0
movq 0x38(%rsp), %rdx
movb $0x1, 0xdf(%rsp)
leaq 0x5dc00(%rip), %rsi     # 0x74468
leaq 0x100(%rsp), %rdi
callq 0x18850
jmp 0x16877
movb $0x1, 0xde(%rsp)
leaq 0x5dbeb(%rip), %rdx     # 0x74471
leaq 0x120(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x186c0
jmp 0x1689d
jmp 0x168d6
leaq 0xdd(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x6860
movq 0x30(%rsp), %rdx
movb $0x1, 0xdc(%rsp)
leaq 0x5f12f(%rip), %rsi     # 0x759f4
leaq 0x120(%rsp), %rdi
callq 0x92b0
jmp 0x168d4
jmp 0x168d6
movq 0x40(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x6440
jmp 0x168ea
leaq 0x120(%rsp), %rdi
callq 0x6988
testb $0x1, 0xdc(%rsp)
jne 0x16903
jmp 0x16910
leaq 0xdd(%rsp), %rdi
callq 0x6520
testb $0x1, 0xde(%rsp)
jne 0x1691c
jmp 0x16929
leaq 0x100(%rsp), %rdi
callq 0x6988
testb $0x1, 0xdf(%rsp)
jne 0x16935
jmp 0x16942
leaq 0xe0(%rsp), %rdi
callq 0x6988
movq 0x230(%rsp), %rdi
leaq 0x5db38(%rip), %rsi     # 0x74489
callq 0x64a0
leaq 0x85f87(%rip), %rax     # 0x9c8e4
movl (%rax), %eax
movl %eax, 0x2c(%rsp)
testl %eax, %eax
je 0x16b49
jmp 0x1696d
movl 0x2c(%rsp), %eax
subl $0x1, %eax
je 0x16b64
jmp 0x1697c
movl 0x2c(%rsp), %eax
subl $0x2, %eax
je 0x16c65
jmp 0x16b62
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
jmp 0x16a7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
jmp 0x16a70
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
jmp 0x16a63
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
jmp 0x16a56
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
jmp 0x16a49
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
jmp 0x16a3c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
leaq 0x210(%rsp), %rdi
callq 0x6988
leaq 0x140(%rsp), %rdi
callq 0x6988
leaq 0x1f0(%rsp), %rdi
callq 0x6988
leaq 0x1d0(%rsp), %rdi
callq 0x6988
leaq 0x1b0(%rsp), %rdi
callq 0x6988
leaq 0x190(%rsp), %rdi
callq 0x6988
leaq 0x170(%rsp), %rdi
callq 0x6988
jmp 0x16d0e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
jmp 0x16b2b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
jmp 0x16b10
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
jmp 0x16af5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
leaq 0x120(%rsp), %rdi
callq 0x6988
testb $0x1, 0xdc(%rsp)
jne 0x16b01
jmp 0x16b0e
leaq 0xdd(%rsp), %rdi
callq 0x6520
jmp 0x16b10
testb $0x1, 0xde(%rsp)
jne 0x16b1c
jmp 0x16b29
leaq 0x100(%rsp), %rdi
callq 0x6988
jmp 0x16b2b
testb $0x1, 0xdf(%rsp)
jne 0x16b37
jmp 0x16b44
leaq 0xe0(%rsp), %rdi
callq 0x6988
jmp 0x16d0e
movq 0x230(%rsp), %rdi
leaq 0x5d950(%rip), %rsi     # 0x744a8
callq 0x64a0
jmp 0x16c79
jmp 0x16b64
movq 0x230(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x85d68(%rip), %rax     # 0x9c8e0
movl (%rax), %esi
leaq 0x78(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x188a0
movq 0x20(%rsp), %rdx
leaq 0x5d922(%rip), %rsi     # 0x744b7
leaq 0x98(%rsp), %rdi
callq 0x18850
jmp 0x16ba4
leaq 0x5d92f(%rip), %rdx     # 0x744da
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x186c0
jmp 0x16bc2
movq 0x18(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x6440
jmp 0x16bd6
leaq 0xb8(%rsp), %rdi
callq 0x6988
leaq 0x98(%rsp), %rdi
callq 0x6988
leaq 0x78(%rsp), %rdi
callq 0x6988
jmp 0x16c79
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
jmp 0x16c56
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
jmp 0x16c49
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x6988
leaq 0x98(%rsp), %rdi
callq 0x6988
leaq 0x78(%rsp), %rdi
callq 0x6988
jmp 0x16d0e
movq 0x230(%rsp), %rdi
leaq 0x5d88a(%rip), %rsi     # 0x744fe
callq 0x64a0
movq 0x230(%rsp), %rdi
leaq 0x5d8a3(%rip), %rsi     # 0x7452b
callq 0x64a0
movq %rax, (%rsp)
leaq 0x85d6c(%rip), %rax     # 0x9ca04
movl (%rax), %esi
leaq 0x58(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x188a0
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x6440
movq %rax, 0x10(%rsp)
jmp 0x16cbe
movq 0x10(%rsp), %rdi
leaq 0x5d910(%rip), %rsi     # 0x745da
callq 0x64a0
jmp 0x16cd1
leaq 0x58(%rsp), %rdi
callq 0x6988
movq 0x230(%rsp), %rdi
callq 0x6340
addq $0x238, %rsp            # imm = 0x238
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x168(%rsp)
movl %eax, 0x164(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x6988
movq 0x168(%rsp), %rdi
callq 0x6850
nopl (%rax,%rax)