// File: /workspace/github_cpp_makefile_star2_O1/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 0xafc6
leaq 0xe8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x15940(%rip), %rsi     # 0x1e735
leaq 0x1593c(%rip), %rdx     # 0x1e738
leaq 0xd8(%rsp), %rdi
callq 0xe0a8
leaq 0xb8(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x6180
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x8e30
callq 0x6320
leaq 0x88(%rsp), %rdi
callq 0xb024
movq %rax, %r14
leaq 0x158f2(%rip), %rax     # 0x1e739
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbb98
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe91e
movl $0x0, (%rax)
leaq 0x1556b(%rip), %rax     # 0x1e3eb
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbb98
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe91e
movl $0x0, (%rax)
leaq 0x15886(%rip), %rax     # 0x1e73f
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbb98
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe91e
movl $0x0, (%rax)
leaq 0x15859(%rip), %rax     # 0x1e74b
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbb98
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe91e
movl $0x1, (%rax)
leaq 0x15827(%rip), %rax     # 0x1e752
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbb98
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe91e
movl $0x1, (%rax)
cmpb $0x0, 0x44(%rsp)
je 0x9013
leaq 0x157e8(%rip), %rax     # 0x1e757
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbb98
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe91e
movl $0x1, (%rax)
leaq 0x157b9(%rip), %rax     # 0x1e761
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbb98
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe91e
movl $0x1, (%rax)
leaq 0x15788(%rip), %rax     # 0x1e769
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xbb98
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
sarq $0x5, %rsi
decq %rsi
leaq 0x88(%rsp), %rdi
callq 0xe91e
movl $0x1, (%rax)
movq (%rbx), %r13
movq 0x8(%rbx), %rax
movq %rax, 0x78(%rsp)
cmpq %rax, %r13
je 0x944a
leaq 0x58(%rsp), %r14
leaq 0x20(%rsp), %r12
movq %rsp, %rbp
leaq 0x48(%rsp), %r15
movq (%r13), %rbx
leaq 0x88(%rsp), %rdi
callq 0xb024
movq 0x48(%rbx), %rcx
subq 0x40(%rbx), %rcx
sarq $0x5, %rcx
movq %rcx, 0x20(%rsp)
movq %rax, %rdi
movq %r12, %rsi
callq 0xb07a
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb13c
addq $0x20, %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb13c
movq %rax, %rbx
movq %r13, %rdi
callq 0xb2ac
movq %rbx, %rdi
leaq 0x156df(%rip), %rsi     # 0x1e775
callq 0xb202
movq %rax, 0x70(%rsp)
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq 0x8(%r13), %rbx
movq %r13, 0x68(%rsp)
movq 0x10(%r13), %r13
cmpq %r13, %rbx
je 0x9158
cmpq $0x0, 0x8(%rsp)
je 0x90e4
movq %rbp, %rdi
leaq 0x158de(%rip), %rsi     # 0x1e9bd
callq 0x6630
movq %r14, 0x48(%rsp)
movb $0x66, 0x4(%r14)
movl $0x302e3525, (%r14)     # imm = 0x302E3525
movq $0x5, 0x50(%rsp)
movb $0x0, 0x5d(%rsp)
movsd (%rbx), %xmm0
mulsd 0x14f51(%rip), %xmm0    # 0x1e060
movq %r12, %rdi
movq %r15, %rsi
callq 0x140bd
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 0x9140
callq 0x6320
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x914f
callq 0x6320
addq $0x48, %rbx
jmp 0x90c4
movq 0x70(%rsp), %rdi
movq %rbp, %rsi
callq 0xb13c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
movq 0x68(%rsp), %r13
je 0x917d
callq 0x6320
cmpb $0x0, 0x44(%rsp)
je 0x943b
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq 0x8(%r13), %rbx
movq 0x10(%r13), %r13
cmpq %r13, %rbx
je 0x9234
cmpq $0x0, 0x8(%rsp)
je 0x91c7
movq %rbp, %rdi
leaq 0x157fb(%rip), %rsi     # 0x1e9bd
callq 0x6630
movq %r14, 0x48(%rsp)
movb $0x66, 0x4(%r14)
movl $0x322e3425, (%r14)     # imm = 0x322E3425
movq $0x5, 0x50(%rsp)
movb $0x0, 0x5d(%rsp)
movsd 0x38(%rbx), %xmm0
movq %r12, %rdi
movq %r15, %rsi
callq 0x140bd
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 0x921c
callq 0x6320
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x922b
callq 0x6320
addq $0x48, %rbx
jmp 0x91a7
movq 0x70(%rsp), %rdi
movq %rbp, %rsi
callq 0xb13c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
movq 0x68(%rsp), %r13
je 0x9259
callq 0x6320
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq 0x8(%r13), %rbx
movq 0x10(%r13), %r13
cmpq %r13, %rbx
je 0x9345
cmpq $0x0, 0x8(%rsp)
je 0x9298
movq %rbp, %rdi
leaq 0x1572a(%rip), %rsi     # 0x1e9bd
callq 0x6630
movq %r14, 0x48(%rsp)
movl $0x66302e25, 0x58(%rsp) # imm = 0x66302E25
movq $0x4, 0x50(%rsp)
movb $0x0, 0x5c(%rsp)
movsd 0x38(%rbx), %xmm0
movsd %xmm0, 0x80(%rsp)
callq 0xbdfc
movsd 0x80(%rsp), %xmm2
divsd 0x14d91(%rip), %xmm2    # 0x1e068
movq %rax, %xmm1
punpckldq 0x14d4c(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x14d54(%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 0x140bd
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 0x932d
callq 0x6320
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x933c
callq 0x6320
addq $0x48, %rbx
jmp 0x9278
movq 0x70(%rsp), %rdi
movq %rbp, %rsi
callq 0xb13c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
movq 0x68(%rsp), %r13
je 0x936a
callq 0x6320
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq 0x8(%r13), %rbx
movq 0x10(%r13), %r13
cmpq %r13, %rbx
je 0x9416
cmpq $0x0, 0x8(%rsp)
je 0x93a9
movq %rbp, %rdi
leaq 0x15619(%rip), %rsi     # 0x1e9bd
callq 0x6630
movq %r14, 0x48(%rsp)
movb $0x66, 0x4(%r14)
movl $0x322e3425, (%r14)     # imm = 0x322E3425
movq $0x5, 0x50(%rsp)
movb $0x0, 0x5d(%rsp)
movsd 0x40(%rbx), %xmm0
movq %r12, %rdi
movq %r15, %rsi
callq 0x140bd
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 0x93fe
callq 0x6320
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x940d
callq 0x6320
addq $0x48, %rbx
jmp 0x9389
movq 0x70(%rsp), %rdi
movq %rbp, %rsi
callq 0xb13c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
movq 0x68(%rsp), %r13
je 0x943b
callq 0x6320
addq $0x20, %r13
cmpq 0x78(%rsp), %r13
jne 0x903a
leaq 0x20(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0xb784
leaq 0x30(%rsp), %rbx
movq -0x10(%rbx), %rdi
callq 0x6500
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x9478
callq 0x6320
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x948e
callq 0x6320
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x94a0
callq 0x6320
leaq 0x88(%rsp), %rdi
callq 0xe6ee
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x94e3
jmp 0x94e3
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
jne 0x9538
jmp 0x953d
jmp 0x94e3
jmp 0x94f8
jmp 0x94f8
jmp 0x94f8
jmp 0x94e3
jmp 0x94f8
jmp 0x94e3
movq %rax, %rbx
jmp 0x953d
jmp 0x94f8
jmp 0x94f8
jmp 0x94f8
jmp 0x94ff
jmp 0x9504
jmp 0x9504
jmp 0x94ff
jmp 0x9504
movq %rax, %rbx
jmp 0x952a
jmp 0x94ff
movq %rax, %rbx
jmp 0x951b
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x951b
callq 0x6320
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x952a
callq 0x6320
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x953d
callq 0x6320
leaq 0x88(%rsp), %rdi
callq 0xb9ba
movq %rbx, %rdi
callq 0x65f0