// File: /workspace/github_cpp_makefile_star2_O1/ALSchwalm[P]cppEvolve/include/cppEvolve/TreeGA.hpp
// Function: evolve::TreeGA<int, 100ul>::run(unsigned int, unsigned int)
virtual void run(unsigned int generations,
                     unsigned int logFrequency = 100) {
        for (auto i = 0U; i < PopSize; ++i) {
            population.push_back(generator.make());
        }

        for (auto generation = 0U; generation < generations; ++generation) {
            selector(population, evaluator);

            auto popSizePostSelection = population.size();

            while (population.size() < PopSize) {
                population.push_back(
                    crossover(population[random_uint(popSizePostSelection)],
                              population[random_uint(popSizePostSelection)]));
            }

            for (size_t i = 0; i < PopSize * mutationRate; ++i) {
                auto index = random_uint(PopSize);
                mutator(population[index], generator);
            }

            auto score = evaluator(population[0]);
            if (score > bestScore) {
                delete bestIndividual;
                bestIndividual = population[0]->clone();
                bestScore = score;
            }

            if (generation % logFrequency == 0) {
                std::cout << "Generation(" << generation
                          << ") - Fitness:" << bestScore << std::endl;
            }
        }
        std::cout << "Best: " << *bestIndividual << std::endl;
        std::cout << "Fitness: " << bestScore << std::endl;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %edx, -0x3c(%rbp)
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x20(%rdi), %rax
movq %rax, -0x58(%rbp)
leaq 0x8(%rdi), %rax
movq %rax, -0x38(%rbp)
movl $0x64, %r12d
leaq -0x30(%rbp), %r14
movq -0x58(%rbp), %rdi
callq 0x6936
movq %rax, -0x30(%rbp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x311f
movq %rax, (%rsi)
addq $0x8, 0x10(%rbx)
jmp 0x312b
movq -0x38(%rbp), %rdi
movq %r14, %rdx
callq 0x6a08
decl %r12d
jne 0x30fe
testl %r15d, %r15d
je 0x3412
leaq 0x98(%rbx), %rax
movq %rax, -0x48(%rbp)
leaq 0xf8(%rbx), %rax
movq %rax, -0x70(%rbp)
leaq 0xb8(%rbx), %rax
movq %rax, -0x78(%rbp)
leaq 0xd8(%rbx), %r13
movl %r15d, %eax
movq %rax, -0x68(%rbp)
xorl %r14d, %r14d
leaq -0xa0(%rbp), %r15
leaq -0x30(%rbp), %r12
movq %r15, %rdi
movq -0x48(%rbp), %rsi
callq 0x69a4
cmpq $0x0, 0x108(%rbx)
je 0x34c8
movq -0x70(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %r15, %rdx
callq *0x110(%rbx)
movq %r14, -0x50(%rbp)
movq -0x90(%rbp), %rax
testq %rax, %rax
je 0x31be
movq %r15, %rdi
movq %r15, %rsi
movl $0x3, %edx
callq *%rax
movq 0x10(%rbx), %r15
subq 0x8(%rbx), %r15
cmpq $0x31f, %r15            # imm = 0x31F
ja 0x3256
sarq $0x3, %r15
xorl %edi, %edi
movq %r15, %rsi
callq 0x23cc
movq 0x8(%rbx), %rcx
movq (%rcx,%rax,8), %r14
xorl %edi, %edi
movq %r15, %rsi
callq 0x23cc
movq 0x8(%rbx), %rcx
movq (%rcx,%rax,8), %rax
movq %r14, -0x30(%rbp)
movq %rax, -0x80(%rbp)
cmpq $0x0, 0xc8(%rbx)
je 0x34c3
movq -0x78(%rbp), %rdi
movq %r12, %rsi
leaq -0x80(%rbp), %rdx
callq *0xd0(%rbx)
movq %rax, -0x30(%rbp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x323a
movq %rax, (%rsi)
addq $0x8, 0x10(%rbx)
jmp 0x3246
movq -0x38(%rbp), %rdi
movq %r12, %rdx
callq 0x6a08
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
cmpq $0x320, %rax            # imm = 0x320
jb 0x31d7
movss 0x118(%rbx), %xmm0
mulss 0x3daa(%rip), %xmm0     # 0x7010
ucomiss 0x3da7(%rip), %xmm0     # 0x7014
jbe 0x32ed
movl $0x1, %r15d
movl $0x64, %esi
xorl %edi, %edi
callq 0x23cc
movq 0x8(%rbx), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, 0xe8(%rbx)
je 0x34c3
movq %r13, %rdi
movq %r12, %rsi
movq -0x58(%rbp), %rdx
callq *0xf0(%rbx)
testq %r15, %r15
js 0x32ba
xorps %xmm0, %xmm0
cvtsi2ss %r15, %xmm0
jmp 0x32d5
movq %r15, %rax
shrq %rax
movl %r15d, %ecx
andl $0x1, %ecx
orq %rax, %rcx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
movss 0x118(%rbx), %xmm1
mulss 0x3d2b(%rip), %xmm1     # 0x7010
incq %r15
ucomiss %xmm0, %xmm1
ja 0x3275
movq 0x8(%rbx), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, 0xa8(%rbx)
je 0x34c3
movq -0x48(%rbp), %rdi
movq %r12, %rsi
callq *0xb0(%rbx)
cvtss2sd %xmm0, %xmm0
ucomisd 0x90(%rbx), %xmm0
jbe 0x3368
movsd %xmm0, -0x60(%rbp)
movq 0x88(%rbx), %r15
testq %r15, %r15
je 0x3348
movq (%r15), %rdi
testq %rdi, %rdi
je 0x3340
movq (%rdi), %rax
callq *0x8(%rax)
movq %r15, %rdi
callq 0x2140
movq 0x8(%rbx), %rax
movq (%rax), %rdi
callq 0x5496
movq %rax, 0x88(%rbx)
movsd -0x60(%rbp), %xmm0
movsd %xmm0, 0x90(%rbx)
movq -0x50(%rbp), %r14
movl %r14d, %eax
xorl %edx, %edx
divl -0x3c(%rbp)
testl %edx, %edx
leaq -0xa0(%rbp), %r15
jne 0x3405
movl $0xb, %edx
movq 0x8c49(%rip), %r15      # 0xbfd8
movq %r15, %rdi
leaq 0x3ffa(%rip), %rsi      # 0x7393
callq 0x2180
movq %r15, %rdi
movq %r14, %rsi
callq 0x20d0
movq %rax, %r15
movl $0xc, %edx
movq %rax, %rdi
leaq 0x3fe4(%rip), %rsi      # 0x739f
callq 0x2180
movsd 0x90(%rbx), %xmm0
movq %r15, %rdi
callq 0x21c0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r15, %rdi
leaq -0xa0(%rbp), %r15
movq -0x50(%rbp), %r14
callq 0x2030
movq %rax, %rdi
callq 0x20e0
incq %r14
cmpq -0x68(%rbp), %r14
jne 0x3176
movq 0x8bbf(%rip), %r14      # 0xbfd8
leaq 0x3f8c(%rip), %rsi      # 0x73ac
movl $0x6, %edx
movq %r14, %rdi
callq 0x2180
movq 0x88(%rbx), %rax
movq (%rax), %rsi
movq %r14, %rdi
callq 0x6caf
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
leaq 0x3f46(%rip), %rsi      # 0x73b3
movl $0x9, %edx
movq %r14, %rdi
callq 0x2180
movsd 0x90(%rbx), %xmm0
movq %r14, %rdi
callq 0x21c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2070
callq 0x2070
jmp 0x34f9
jmp 0x34d1
movq %rax, %rbx
movq -0x90(%rbp), %rax
testq %rax, %rax
je 0x34f1
leaq -0xa0(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x3603
nop