// File: /workspace/github_cpp_makefile_star2_O3/ALSchwalm[P]cppEvolve/include/cppEvolve/SimpleGA.hpp
// Function: evolve::SimpleGA<std::array<int, 3ul>, 100ul>::run(unsigned int, unsigned int)
virtual void run(unsigned int generations,
                     unsigned int logFrequency = 100) {
        // Generation: create the new members
        for (auto i = 0U; i < PopSize; ++i) {
            population.push_back(generator());
        }

        for (auto generation = 0U; generation < generations; ++generation) {
            // Crossover: Add missing members
            auto popSizePostSelection = population.size();
            while (population.size() < PopSize) {
                population.push_back(
                    crossover(population[random_uint(popSizePostSelection)],
                              population[random_uint(popSizePostSelection)]));
            }

            // Mutation: Mutate at least rate*popsize members
            for (size_t i = 0; i < PopSize * mutationRate; ++i) {
                auto index = random_uint(PopSize);
                mutator(population[index]);
            }

            // Selection: Destroy the least fit members
            selector(population, evaluator);

            if (evaluator(population[0]) > bestScore) {
                bestMember = population[0];
                bestScore = evaluator(population[0]);
            }

            if (generation % logFrequency == 0) {
                std::cout << "Generation(" << generation
                          << ") - Fitness:" << bestScore << std::endl;
            }
        }
        std::cout << "Best: ";
        for (const auto& allele : bestMember) {
            std::cout << allele << " ";
        }
        std::cout << std::endl << "Fitness: " << evaluator(bestMember)
                  << std::endl;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %edx, -0x4c(%rbp)
movl %esi, -0x40(%rbp)
movq %rdi, %rbx
leaq 0x8(%rdi), %r15
leaq 0x20(%rdi), %r12
movl $0x64, %r14d
leaq -0x38(%rbp), %r13
cmpq $0x0, 0x30(%rbx)
je 0x2c40
movq %r12, %rdi
callq *0x38(%rbx)
movq %rax, -0x38(%rbp)
movl %edx, -0x30(%rbp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x2878
movl -0x30(%rbp), %eax
movl %eax, 0x8(%rsi)
movq -0x38(%rbp), %rax
movq %rax, (%rsi)
addq $0xc, 0x10(%rbx)
jmp 0x2883
movq %r15, %rdi
movq %r13, %rdx
callq 0x43bc
decl %r14d
jne 0x2842
movl -0x40(%rbp), %ecx
testl %ecx, %ecx
je 0x2b5d
leaq 0x60(%rbx), %rax
movq %rax, -0x78(%rbp)
leaq 0x80(%rbx), %rax
movq %rax, -0x70(%rbp)
leaq 0x40(%rbx), %rax
movq %rax, -0x48(%rbp)
leaq 0xa0(%rbx), %rax
movq %rax, -0x68(%rbp)
leaq 0xc0(%rbx), %rax
movq %rax, -0x58(%rbp)
movl %ecx, %eax
movq %rax, -0x60(%rbp)
xorl %r14d, %r14d
movq %r14, -0x40(%rbp)
movq 0x10(%rbx), %r14
subq 0x8(%rbx), %r14
sarq $0x2, %r14
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %r14
cmpq $0x63, %r14
ja 0x2998
xorl %edi, %edi
movq %r14, %rsi
callq 0x230c
movq %rax, %r12
movq 0x8(%rbx), %r13
xorl %edi, %edi
movq %r14, %rsi
callq 0x230c
cmpq $0x0, 0x70(%rbx)
je 0x2c40
leaq (%rax,%rax,2), %rdx
shlq $0x2, %rdx
addq 0x8(%rbx), %rdx
leaq (%r12,%r12,2), %rax
leaq (,%rax,4), %rsi
addq %r13, %rsi
movq -0x78(%rbp), %rdi
callq *0x78(%rbx)
movq %rax, -0x38(%rbp)
movl %edx, -0x30(%rbp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x2969
movl -0x30(%rbp), %eax
movl %eax, 0x8(%rsi)
movq -0x38(%rbp), %rax
movq %rax, (%rsi)
movq 0x10(%rbx), %rax
addq $0xc, %rax
movq %rax, 0x10(%rbx)
jmp 0x2979
movq %r15, %rdi
leaq -0x38(%rbp), %rdx
callq 0x43bc
movq 0x10(%rbx), %rax
subq (%r15), %rax
sarq $0x2, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
cmpq $0x64, %rax
jb 0x28f5
movss 0xd8(%rbx), %xmm0
mulss 0x265c(%rip), %xmm0     # 0x5004
ucomiss 0x2659(%rip), %xmm0     # 0x5008
jbe 0x2a29
movl $0x1, %r14d
movl $0x64, %esi
xorl %edi, %edi
callq 0x230c
cmpq $0x0, 0x90(%rbx)
je 0x2c40
leaq (%rax,%rax,2), %rsi
shlq $0x2, %rsi
addq 0x8(%rbx), %rsi
movq -0x70(%rbp), %rdi
callq *0x98(%rbx)
testq %r14, %r14
js 0x29f6
xorps %xmm0, %xmm0
cvtsi2ss %r14, %xmm0
jmp 0x2a11
movq %r14, %rax
shrq %rax
movl %r14d, %ecx
andl $0x1, %ecx
orq %rax, %rcx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
movss 0xd8(%rbx), %xmm1
mulss 0x25e3(%rip), %xmm1     # 0x5004
incq %r14
ucomiss %xmm0, %xmm1
ja 0x29b7
leaq -0x98(%rbp), %r14
movq %r14, %rdi
movq -0x48(%rbp), %rsi
callq 0x41a2
cmpq $0x0, 0xb0(%rbx)
je 0x2c45
movq -0x68(%rbp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq *0xb8(%rbx)
movq -0x40(%rbp), %r14
movq -0x88(%rbp), %rax
testq %rax, %rax
je 0x2a7b
leaq -0x98(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
cmpq $0x0, 0x50(%rbx)
je 0x2c40
movq 0x8(%rbx), %rsi
movq -0x48(%rbp), %rdi
callq *0x58(%rbx)
ucomisd 0xd0(%rbx), %xmm0
jbe 0x2ac9
movq 0x8(%rbx), %rsi
movl 0x8(%rsi), %eax
movq -0x58(%rbp), %rcx
movl %eax, 0x8(%rcx)
movq (%rsi), %rax
movq %rax, (%rcx)
cmpq $0x0, 0x50(%rbx)
je 0x2c40
movq -0x48(%rbp), %rdi
callq *0x58(%rbx)
movsd %xmm0, 0xd0(%rbx)
movl %r14d, %eax
xorl %edx, %edx
divl -0x4c(%rbp)
testl %edx, %edx
jne 0x2b50
movl $0xb, %edx
movq 0x54f7(%rip), %r12      # 0x7fd8
movq %r12, %rdi
leaq 0x269f(%rip), %rsi      # 0x518a
callq 0x2120
movq %r12, %rdi
movq %r14, %rsi
callq 0x20b0
movq %rax, %r14
movl $0xc, %edx
movq %rax, %rdi
leaq 0x2689(%rip), %rsi      # 0x5196
callq 0x2120
movsd 0xd0(%rbx), %xmm0
movq %r14, %rdi
callq 0x2140
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %esi
movq %r14, %rdi
movq -0x40(%rbp), %r14
callq 0x2030
movq %rax, %rdi
callq 0x20c0
incq %r14
cmpq -0x60(%rbp), %r14
jne 0x28cd
movq 0x5474(%rip), %r14      # 0x7fd8
leaq 0x2638(%rip), %rsi      # 0x51a3
movl $0x6, %edx
movq %r14, %rdi
callq 0x2120
movq $-0xc, %r12
leaq 0x262c(%rip), %r15      # 0x51b2
movl 0xcc(%rbx,%r12), %esi
movq %r14, %rdi
callq 0x2160
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2120
addq $0x4, %r12
jne 0x2b86
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movq %rax, %r14
leaq 0x25cd(%rip), %rsi      # 0x51aa
movl $0x9, %edx
movq %rax, %rdi
callq 0x2120
cmpq $0x0, 0x50(%rbx)
je 0x2c40
leaq 0x40(%rbx), %rdi
leaq 0xc0(%rbx), %rsi
callq *0x58(%rbx)
movq %r14, %rdi
callq 0x2140
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2060
callq 0x2060
jmp 0x2c76
jmp 0x2c4e
movq %rax, %rbx
movq -0x88(%rbp), %rax
testq %rax, %rax
je 0x2c6e
leaq -0x98(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x2d37