// File: /workspace/github_cpp_makefile_star2_O2/travisdowns[P]avx-turbo/avx-turbo.cpp
// Function: report_results(std::vector<result_holder, std::allocator<result_holder>> const&, bool)
void report_results(const std::vector<result_holder>& results_list, bool use_aperf) {
    // report
    table::Table table;
    table.setColColumnSeparator(" | ");

    auto& header = table.newRow();

    using table::ColInfo;

    auto adder = [&header, &table](const char* s, ColInfo::Justification just = ColInfo::LEFT) {
        header.add(s);
        table.colInfo(header.size() - 1).justify = just;
    };

    adder("Cores");
    adder("ID");
    adder("Description");
    // adder("OVRLP1", ColInfo::RIGHT);
    // adder("OVRLP2", ColInfo::RIGHT);
    adder("OVRLP3", ColInfo::RIGHT);
    adder("Mops", ColInfo::RIGHT);

    if (use_aperf) {
        adder("A/M-ratio", ColInfo::RIGHT);
        adder("A/M-MHz", ColInfo::RIGHT);
        adder("M/tsc-ratio", ColInfo::RIGHT);
    }

    for (const result_holder& holder : results_list) {
        auto spec = holder.spec;
        auto &row = table.newRow()
                                .add(spec->count())
                                .add(spec->name)
                                .add(spec->description)
                                // .addf("%5.3f", holder.get_overlap1())
                                // .addf("%5.3f", holder.get_overlap2())
                                .addf("%5.3f", holder.get_overlap3());

        auto& results = holder.results;
        row.add(result_string(results, "%5.0f", [](const result& r){ return r.inner.mops * 1000; }));
        if (use_aperf) {
            row.add(result_string(results, "%4.2f", [](const result& r){ return r.aperf_am; }));
            row.add(result_string(results, "%.0f",  [](const result& r){ return r.aperf_am / 1000000.0 * RdtscClock::tsc_freq(); }));
            row.add(result_string(results, "%4.2f", [](const result& r){ return r.aperf_mt; }));
        }
    }

    printf("%s\n", table.str().c_str());
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movl %esi, 0x34(%rsp)
movq %rdi, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x9c12
leaq 0x13725(%rip), %rsi     # 0x1b75f
leaq 0xa8(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x6100
leaq 0xf8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x6190
leaq 0xa8(%rsp), %rdi
callq 0x6140
leaq 0xc8(%rsp), %r14
movq %r14, %rdi
callq 0x9c60
leaq 0x48(%rsp), %rdi
movq %rax, (%rdi)
movq %r14, 0x8(%rdi)
leaq 0x136d2(%rip), %rsi     # 0x1b763
xorl %edx, %edx
callq 0x8550
leaq 0x1335e(%rip), %rsi     # 0x1b3fd
leaq 0x48(%rsp), %rdi
xorl %edx, %edx
callq 0x8550
leaq 0x136b7(%rip), %rsi     # 0x1b769
leaq 0x48(%rsp), %rdi
xorl %edx, %edx
callq 0x8550
leaq 0x136b0(%rip), %rsi     # 0x1b775
leaq 0x48(%rsp), %rdi
pushq $0x1
popq %rdx
callq 0x8550
leaq 0x136a3(%rip), %rsi     # 0x1b77c
leaq 0x48(%rsp), %rdi
pushq $0x1
popq %rdx
callq 0x8550
cmpb $0x0, 0x34(%rsp)
je 0x8129
leaq 0x1368d(%rip), %rsi     # 0x1b781
leaq 0x48(%rsp), %rdi
pushq $0x1
popq %rdx
callq 0x8550
leaq 0x13683(%rip), %rsi     # 0x1b78b
leaq 0x48(%rsp), %rdi
pushq $0x1
popq %rdx
callq 0x8550
leaq 0x13677(%rip), %rsi     # 0x1b793
leaq 0x48(%rsp), %rdi
pushq $0x1
popq %rdx
callq 0x8550
movq (%rbx), %r14
movq 0x8(%rbx), %rax
movq %rax, 0x78(%rsp)
leaq 0x58(%rsp), %r12
leaq 0x10(%rsp), %rbp
leaq 0x88(%rsp), %r13
leaq 0xf(%rsp), %rbx
cmpq 0x78(%rsp), %r14
je 0x8489
movq (%r14), %r15
leaq 0xc8(%rsp), %rdi
callq 0x9c60
movq 0x48(%r15), %rcx
subq 0x40(%r15), %rcx
sarq $0x5, %rcx
movq %rcx, 0x58(%rsp)
movq %rax, %rdi
movq %r12, %rsi
callq 0x9cb4
movq %rax, %rdi
movq %r15, %rsi
callq 0x9d38
addq $0x20, %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x9d38
movq %rax, %r15
movq %r14, %rdi
callq 0x9e42
movq %r15, %rdi
leaq 0x135ed(%rip), %rsi     # 0x1b79f
callq 0x9dbc
movq %rax, 0x40(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movq %r14, %rax
movq 0x8(%r14), %r14
movq %rax, 0x38(%rsp)
movq 0x10(%rax), %r15
cmpq %r15, %r14
je 0x8248
cmpq $0x0, 0x18(%rsp)
je 0x81fd
movq %rbp, %rdi
leaq 0x137f4(%rip), %rsi     # 0x1b9ec
callq 0x6640
movq %r13, %rdi
leaq 0x1359e(%rip), %rsi     # 0x1b7a5
movq %rbx, %rdx
callq 0x6100
movsd (%r14), %xmm0
mulsd 0x12dec(%rip), %xmm0    # 0x1b008
movq %r12, %rdi
movq %r13, %rsi
callq 0x11649
movq %rbp, %rdi
movq %r12, %rsi
callq 0x6670
movq %r12, %rdi
callq 0x6140
movq %r13, %rdi
callq 0x6140
addq $0x48, %r14
jmp 0x81e1
movq 0x40(%rsp), %rdi
movq %rbp, %rsi
callq 0x9d38
movq %rbp, %rdi
callq 0x6140
cmpb $0x0, 0x34(%rsp)
movq 0x38(%rsp), %r14
je 0x8480
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movq %r14, %rax
movq 0x8(%r14), %r14
movq 0x10(%rax), %r15
cmpq %r15, %r14
je 0x82ed
cmpq $0x0, 0x18(%rsp)
je 0x82a9
movq %rbp, %rdi
leaq 0x13748(%rip), %rsi     # 0x1b9ec
callq 0x6640
movq %r13, %rdi
leaq 0x134f8(%rip), %rsi     # 0x1b7ab
movq %rbx, %rdx
callq 0x6100
movsd 0x38(%r14), %xmm0
movq %r12, %rdi
movq %r13, %rsi
callq 0x11649
movq %rbp, %rdi
movq %r12, %rsi
callq 0x6670
movq %r12, %rdi
callq 0x6140
movq %r13, %rdi
callq 0x6140
addq $0x48, %r14
jmp 0x828d
movq 0x40(%rsp), %rdi
movq %rbp, %rsi
callq 0x9d38
movq %rbp, %rdi
callq 0x6140
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %r15
movq 0x10(%rax), %r14
cmpq %r14, %r15
je 0x83cf
cmpq $0x0, 0x18(%rsp)
je 0x8344
movq %rbp, %rdi
leaq 0x136ad(%rip), %rsi     # 0x1b9ec
callq 0x6640
movq %r13, %rdi
leaq 0x13463(%rip), %rsi     # 0x1b7b1
movq %rbx, %rdx
callq 0x6100
movsd 0x38(%r15), %xmm0
movsd %xmm0, 0x80(%rsp)
callq 0xa6d6
movsd 0x80(%rsp), %xmm2
divsd 0x12c95(%rip), %xmm2    # 0x1b010
movq %rax, %xmm1
punpckldq 0x12cc8(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x12cd0(%rip), %xmm1    # 0x1b060
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd %xmm2, %xmm0
movq %r12, %rdi
movq %r13, %rsi
callq 0x11649
movq %rbp, %rdi
movq %r12, %rsi
callq 0x6670
movq %r12, %rdi
callq 0x6140
movq %r13, %rdi
callq 0x6140
addq $0x48, %r15
jmp 0x8324
movq 0x40(%rsp), %rdi
movq %rbp, %rsi
callq 0x9d38
movq %rbp, %rdi
callq 0x6140
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %r14
movq 0x10(%rax), %r15
cmpq %r15, %r14
je 0x8466
cmpq $0x0, 0x18(%rsp)
je 0x8422
movq %rbp, %rdi
leaq 0x135cf(%rip), %rsi     # 0x1b9ec
callq 0x6640
movq %r13, %rdi
leaq 0x1337f(%rip), %rsi     # 0x1b7ab
movq %rbx, %rdx
callq 0x6100
movsd 0x40(%r14), %xmm0
movq %r12, %rdi
movq %r13, %rsi
callq 0x11649
movq %rbp, %rdi
movq %r12, %rsi
callq 0x6670
movq %r12, %rdi
callq 0x6140
movq %r13, %rdi
callq 0x6140
addq $0x48, %r14
jmp 0x8406
movq 0x40(%rsp), %rdi
movq %rbp, %rsi
callq 0x9d38
movq %rbp, %rdi
callq 0x6140
movq 0x38(%rsp), %r14
addq $0x20, %r14
jmp 0x814c
leaq 0x58(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0xa238
leaq 0x58(%rsp), %rbx
movq (%rbx), %rdi
callq 0x6520
movq %rbx, %rdi
callq 0x6140
leaq 0xc8(%rsp), %rdi
callq 0xa3ec
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x84ee
jmp 0x84ee
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
jmp 0x8536
jmp 0x84ee
jmp 0x84ee
jmp 0x850d
jmp 0x850d
jmp 0x850d
jmp 0x850d
jmp 0x84ee
movq %rax, %rbx
jmp 0x853b
jmp 0x850d
jmp 0x850d
jmp 0x850d
jmp 0x8512
jmp 0x850d
jmp 0x8517
jmp 0x850d
jmp 0x8517
jmp 0x850d
jmp 0x8512
jmp 0x8517
jmp 0x850d
jmp 0x8512
movq %rax, %rbx
jmp 0x8531
movq %rax, %rbx
jmp 0x8524
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x6140
leaq 0x88(%rsp), %rdi
callq 0x6140
leaq 0x10(%rsp), %rdi
callq 0x6140
leaq 0xc8(%rsp), %rdi
callq 0xa3ec
movq %rbx, %rdi
callq 0x65f0