// File: /workspace/github_cpp_makefile_star2_O3/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 $0xf8, %rsp
movl %esi, 0x44(%rsp)
movq %rdi, %rbx
leaq 0x88(%rsp), %rdi
callq 0xaf7c
leaq 0xe8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x159cc(%rip), %rsi     # 0x1e745
leaq 0x159c8(%rip), %rdx     # 0x1e748
leaq 0xd8(%rsp), %rdi
callq 0xdf70
leaq 0xb8(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x6180
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x8db4
callq 0x6320
leaq 0x88(%rsp), %rdi
callq 0xafda
movq %rax, %r14
leaq 0x1597e(%rip), %rax     # 0x1e749
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbac8
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe7be
movl $0x0, (%rax)
leaq 0x155f7(%rip), %rax     # 0x1e3fb
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbac8
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe7be
movl $0x0, (%rax)
leaq 0x15912(%rip), %rax     # 0x1e74f
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbac8
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe7be
movl $0x0, (%rax)
leaq 0x158e5(%rip), %rax     # 0x1e75b
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbac8
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe7be
movl $0x1, (%rax)
leaq 0x158b3(%rip), %rax     # 0x1e762
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbac8
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe7be
movl $0x1, (%rax)
cmpb $0x0, 0x44(%rsp)
je 0x8f97
leaq 0x15874(%rip), %rax     # 0x1e767
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbac8
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe7be
movl $0x1, (%rax)
leaq 0x15845(%rip), %rax     # 0x1e771
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbac8
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe7be
movl $0x1, (%rax)
leaq 0x15814(%rip), %rax     # 0x1e779
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbac8
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe7be
movl $0x1, (%rax)
movq (%rbx), %r13
movq 0x8(%rbx), %rax
movq %rax, 0x78(%rsp)
cmpq %rax, %r13
je 0x9403
leaq 0x58(%rsp), %r14
leaq 0x20(%rsp), %r12
movq %rsp, %rbp
leaq 0x48(%rsp), %r15
movq (%r13), %rbx
leaq 0x88(%rsp), %rdi
callq 0xafda
movq 0x48(%rbx), %rcx
subq 0x40(%rbx), %rcx
sarq $0x5, %rcx
movq %rcx, 0x20(%rsp)
movq %rax, %rdi
movq %r12, %rsi
callq 0xb030
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb0f2
addq $0x20, %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb0f2
movq %rax, %rbx
movq %r13, %rdi
callq 0xb262
movq %rbx, %rdi
leaq 0x1576b(%rip), %rsi     # 0x1e785
callq 0xb1b8
movq %rax, 0x70(%rsp)
movq 0x8(%r13), %rbx
movq %r13, 0x68(%rsp)
movq 0x10(%r13), %r13
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
cmpq %r13, %rbx
je 0x90ea
addq $0x48, %rbx
xorl %eax, %eax
testq %rax, %rax
je 0x906b
movq %rbp, %rdi
leaq 0x15967(%rip), %rsi     # 0x1e9cd
callq 0x6630
movq %r14, 0x48(%rsp)
movb $0x66, 0x4(%r14)
movl $0x302e3525, (%r14)     # imm = 0x302E3525
movq $0x5, 0x50(%rsp)
movb $0x0, 0x5d(%rsp)
movsd -0x48(%rbx), %xmm0
mulsd 0x14fd9(%rip), %xmm0    # 0x1e070
movq %r12, %rdi
movq %r15, %rsi
callq 0x13e7f
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbp, %rdi
callq 0x60c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x90c8
callq 0x6320
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x90d7
callq 0x6320
cmpq %r13, %rbx
je 0x90ea
movq 0x8(%rsp), %rax
addq $0x48, %rbx
jmp 0x9057
movq 0x70(%rsp), %rdi
movq %rbp, %rsi
callq 0xb0f2
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
movq 0x68(%rsp), %r13
je 0x910f
callq 0x6320
cmpb $0x0, 0x44(%rsp)
je 0x93f4
movq 0x8(%r13), %rbx
movq 0x10(%r13), %r13
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
cmpq %r13, %rbx
je 0x91d3
addq $0x48, %rbx
xorl %eax, %eax
testq %rax, %rax
je 0x915c
movq %rbp, %rdi
leaq 0x15876(%rip), %rsi     # 0x1e9cd
callq 0x6630
movq %r14, 0x48(%rsp)
movb $0x66, 0x4(%r14)
movl $0x322e3425, (%r14)     # imm = 0x322E3425
movq $0x5, 0x50(%rsp)
movb $0x0, 0x5d(%rsp)
movsd -0x10(%rbx), %xmm0
movq %r12, %rdi
movq %r15, %rsi
callq 0x13e7f
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbp, %rdi
callq 0x60c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x91b1
callq 0x6320
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x91c0
callq 0x6320
cmpq %r13, %rbx
je 0x91d3
movq 0x8(%rsp), %rax
addq $0x48, %rbx
jmp 0x9148
movq 0x70(%rsp), %rdi
movq %rbp, %rsi
callq 0xb0f2
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
movq 0x68(%rsp), %r13
je 0x91f8
callq 0x6320
movq 0x8(%r13), %rbx
movq 0x10(%r13), %r13
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
cmpq %r13, %rbx
je 0x92f1
addq $0x48, %rbx
xorl %eax, %eax
testq %rax, %rax
je 0x923a
movq %rbp, %rdi
leaq 0x15798(%rip), %rsi     # 0x1e9cd
callq 0x6630
movq %r14, 0x48(%rsp)
movl $0x66302e25, 0x58(%rsp) # imm = 0x66302E25
movq $0x4, 0x50(%rsp)
movb $0x0, 0x5c(%rsp)
movsd -0x10(%rbx), %xmm0
movsd %xmm0, 0x80(%rsp)
callq 0xbd24
movsd 0x80(%rsp), %xmm2
divsd 0x14dff(%rip), %xmm2    # 0x1e078
movq %rax, %xmm1
punpckldq 0x14daa(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x14db2(%rip), %xmm1    # 0x1e040
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd %xmm2, %xmm0
movq %r12, %rdi
movq %r15, %rsi
callq 0x13e7f
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbp, %rdi
callq 0x60c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x92cf
callq 0x6320
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x92de
callq 0x6320
cmpq %r13, %rbx
je 0x92f1
movq 0x8(%rsp), %rax
addq $0x48, %rbx
jmp 0x9226
movq 0x70(%rsp), %rdi
movq %rbp, %rsi
callq 0xb0f2
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
movq 0x68(%rsp), %r13
je 0x9316
callq 0x6320
movq 0x8(%r13), %rbx
movq 0x10(%r13), %r13
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
cmpq %r13, %rbx
je 0x93cf
addq $0x48, %rbx
xorl %eax, %eax
testq %rax, %rax
je 0x9358
movq %rbp, %rdi
leaq 0x1567a(%rip), %rsi     # 0x1e9cd
callq 0x6630
movq %r14, 0x48(%rsp)
movb $0x66, 0x4(%r14)
movl $0x322e3425, (%r14)     # imm = 0x322E3425
movq $0x5, 0x50(%rsp)
movb $0x0, 0x5d(%rsp)
movsd -0x8(%rbx), %xmm0
movq %r12, %rdi
movq %r15, %rsi
callq 0x13e7f
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbp, %rdi
callq 0x60c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x93ad
callq 0x6320
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x93bc
callq 0x6320
cmpq %r13, %rbx
je 0x93cf
movq 0x8(%rsp), %rax
addq $0x48, %rbx
jmp 0x9344
movq 0x70(%rsp), %rdi
movq %rbp, %rsi
callq 0xb0f2
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
movq 0x68(%rsp), %r13
je 0x93f4
callq 0x6320
addq $0x20, %r13
cmpq 0x78(%rsp), %r13
jne 0x8fbe
leaq 0x20(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0xb6b0
leaq 0x30(%rsp), %rbx
movq -0x10(%rbx), %rdi
callq 0x6500
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x9431
callq 0x6320
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9447
callq 0x6320
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x9459
callq 0x6320
leaq 0x88(%rsp), %rdi
callq 0xe5b6
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x949c
jmp 0x949c
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
jne 0x94f1
jmp 0x94f6
jmp 0x949c
jmp 0x94b1
jmp 0x94b1
jmp 0x94b1
jmp 0x949c
jmp 0x94b1
jmp 0x949c
movq %rax, %rbx
jmp 0x94f6
jmp 0x94b1
jmp 0x94b1
jmp 0x94b1
jmp 0x94d1
jmp 0x94b8
jmp 0x94b8
jmp 0x94b8
jmp 0x94d1
movq %rax, %rbx
jmp 0x94e3
jmp 0x94d1
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x94d4
callq 0x6320
jmp 0x94d4
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x94e3
callq 0x6320
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x94f6
callq 0x6320
leaq 0x88(%rsp), %rdi
callq 0xb8ea
movq %rbx, %rdi
callq 0x65f0