// File: /workspace/github_cpp_makefile_star2_O3/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, -0x34(%rbp)
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x20(%rdi), %rax
movq %rax, -0x50(%rbp)
leaq 0x8(%rdi), %r12
movl $0x64, %r13d
leaq -0x30(%rbp), %r15
movq -0x50(%rbp), %rdi
callq 0x689e
movq %rax, -0x30(%rbp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x30c9
movq %rax, (%rsi)
addq $0x8, 0x10(%rbx)
jmp 0x30d4
movq %r12, %rdi
movq %r15, %rdx
callq 0x6970
decl %r13d
jne 0x30a8
testl %r14d, %r14d
je 0x33cd
leaq 0x98(%rbx), %rax
movq %rax, -0x40(%rbp)
leaq 0xf8(%rbx), %rax
movq %rax, -0x68(%rbp)
leaq 0xb8(%rbx), %rax
movq %rax, -0x78(%rbp)
leaq 0xd8(%rbx), %rax
movq %rax, -0x70(%rbp)
movl %r14d, %eax
movq %rax, -0x60(%rbp)
xorl %r14d, %r14d
leaq -0xa0(%rbp), %rdi
leaq -0x30(%rbp), %r15
movq -0x40(%rbp), %rsi
movq %rdi, %r13
callq 0x690c
cmpq $0x0, 0x108(%rbx)
je 0x3483
movq -0x68(%rbp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq *0x110(%rbx)
movq %r14, -0x48(%rbp)
movq -0x90(%rbp), %rax
testq %rax, %rax
je 0x316e
leaq -0xa0(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %r14
subq %rax, %r14
cmpq $0x31f, %r14            # imm = 0x31F
ja 0x3217
sarq $0x3, %r14
xorl %edi, %edi
movq %r14, %rsi
callq 0x23cc
movq 0x8(%rbx), %rcx
movq (%rcx,%rax,8), %r13
xorl %edi, %edi
movq %r14, %rsi
callq 0x23cc
movq 0x8(%rbx), %rcx
movq (%rcx,%rax,8), %rax
movq %r13, -0x30(%rbp)
movq %rax, -0x80(%rbp)
cmpq $0x0, 0xc8(%rbx)
je 0x347e
movq -0x78(%rbp), %rdi
movq %r15, %rsi
leaq -0x80(%rbp), %rdx
callq *0xd0(%rbx)
movq %rax, -0x30(%rbp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x31f4
movq %rax, (%rsi)
movq 0x10(%rbx), %rcx
addq $0x8, %rcx
movq %rcx, 0x10(%rbx)
jmp 0x3203
movq %r12, %rdi
movq %r15, %rdx
callq 0x6970
movq 0x10(%rbx), %rcx
movq (%r12), %rax
subq %rax, %rcx
cmpq $0x320, %rcx            # imm = 0x320
jb 0x318a
movss 0x118(%rbx), %xmm0
mulss 0x3de9(%rip), %xmm0     # 0x7010
ucomiss 0x3de6(%rip), %xmm0     # 0x7014
jbe 0x32b7
movl $0x1, %r14d
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 0x347e
movq -0x70(%rbp), %rdi
movq %r15, %rsi
movq -0x50(%rbp), %rdx
callq *0xf0(%rbx)
testq %r14, %r14
js 0x3280
xorps %xmm0, %xmm0
cvtsi2ss %r14, %xmm0
jmp 0x329b
movq %r14, %rax
shrq %rax
movl %r14d, %ecx
andl $0x1, %ecx
orq %rax, %rcx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
movss 0x118(%rbx), %xmm1
mulss 0x3d65(%rip), %xmm1     # 0x7010
incq %r14
ucomiss %xmm0, %xmm1
ja 0x323a
movq (%r12), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, 0xa8(%rbx)
je 0x347e
movq -0x40(%rbp), %rdi
movq %r15, %rsi
callq *0xb0(%rbx)
cvtss2sd %xmm0, %xmm0
ucomisd 0x90(%rbx), %xmm0
jbe 0x332e
movsd %xmm0, -0x58(%rbp)
movq 0x88(%rbx), %r14
testq %r14, %r14
je 0x3306
movq (%r14), %rdi
testq %rdi, %rdi
je 0x3306
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
callq 0x2140
movq 0x8(%rbx), %rax
movq (%rax), %rdi
callq 0x5458
movq %rax, 0x88(%rbx)
movsd -0x58(%rbp), %xmm0
movsd %xmm0, 0x90(%rbx)
movq -0x48(%rbp), %r14
movl %r14d, %eax
xorl %edx, %edx
divl -0x34(%rbp)
testl %edx, %edx
jne 0x33b9
movl $0xb, %edx
movq 0x8c8e(%rip), %r13      # 0xbfd8
movq %r13, %rdi
leaq 0x403f(%rip), %rsi      # 0x7393
callq 0x2180
movq %r13, %rdi
movq %r14, %rsi
callq 0x20d0
movq %rax, %r14
movl $0xc, %edx
movq %rax, %rdi
leaq 0x4029(%rip), %rsi      # 0x739f
callq 0x2180
movsd 0x90(%rbx), %xmm0
movq %r14, %rdi
callq 0x21c0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
movq -0x48(%rbp), %r14
callq 0x2030
movq %rax, %rdi
callq 0x20e0
incq %r14
cmpq -0x60(%rbp), %r14
leaq -0xa0(%rbp), %rdi
jne 0x3123
movq 0x8c04(%rip), %r14      # 0xbfd8
leaq 0x3fd1(%rip), %rsi      # 0x73ac
movl $0x6, %edx
movq %r14, %rdi
callq 0x2180
movq 0x88(%rbx), %rax
movq (%rax), %rsi
movq %r14, %rdi
callq 0x6c0f
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 0x3f8b(%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 0x34b4
jmp 0x348c
movq %rax, %rbx
movq -0x90(%rbp), %rax
testq %rax, %rax
je 0x34ac
leaq -0xa0(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x35bd