// File: /workspace/github_cpp_makefile_star2_O2/lemire[P]runningmaxmin/unit.cpp
// Function: unit()
void unit() {
    uint size = 20;
    std::vector<floattype> data(size);
    for (uint k = 0; k < size; ++k)
        data[k] = size - k;
    test(data, 6);
    test(data, 2);
    test(data, 3);
    test(data, 4);
    test(data, 5);
    for (uint k = 0; k < size; ++k)
        data[k] = k;
    test(data, 2);
    test(data, 3);
    test(data, 4);
    test(data, 5);
    for (uint j = 0; j < 1000; ++j) {
        for (uint k = 0; k < size; ++k)
            data[k] = rand();
        test(data, 2);
        test(data, 3);
        test(data, 4);
        test(data, 5);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
leaq 0x8(%rsp), %r14
pushq $0x14
popq %rbx
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4392
movq (%r14), %rax
movq %rbx, %rcx
subq $0x1, %rcx
jb 0x28ee
vcvtsi2sd %ebx, %xmm1, %xmm0
vmovsd %xmm0, (%rax)
addq $0x8, %rax
movq %rcx, %rbx
jmp 0x28d7
leaq 0xe0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x43e6
leaq 0xe0(%rsp), %rdi
pushq $0x6
popq %rsi
callq 0x235b
leaq 0xe0(%rsp), %rdi
callq 0x60f0
leaq 0xc8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x43e6
leaq 0xc8(%rsp), %rdi
pushq $0x2
popq %rsi
callq 0x235b
leaq 0xc8(%rsp), %rdi
callq 0x60f0
leaq 0xb0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x43e6
leaq 0xb0(%rsp), %rdi
pushq $0x3
popq %rsi
callq 0x235b
leaq 0xb0(%rsp), %rdi
callq 0x60f0
leaq 0x98(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x43e6
leaq 0x98(%rsp), %rdi
pushq $0x4
popq %rsi
callq 0x235b
leaq 0x98(%rsp), %rdi
callq 0x60f0
leaq 0x80(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x43e6
leaq 0x80(%rsp), %rdi
pushq $0x5
popq %rsi
callq 0x235b
leaq 0x80(%rsp), %rdi
callq 0x60f0
xorl %eax, %eax
movq 0x8(%rsp), %rcx
cmpq $0x14, %rax
je 0x29f4
vcvtsi2sd %eax, %xmm1, %xmm0
vmovsd %xmm0, (%rcx,%rax,8)
incq %rax
jmp 0x29e0
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x43e6
leaq 0x68(%rsp), %rdi
pushq $0x2
popq %rsi
callq 0x235b
leaq 0x68(%rsp), %rdi
callq 0x60f0
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x43e6
leaq 0x50(%rsp), %rdi
pushq $0x3
popq %rsi
callq 0x235b
leaq 0x50(%rsp), %rdi
callq 0x60f0
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x43e6
leaq 0x38(%rsp), %rdi
pushq $0x4
popq %rsi
callq 0x235b
leaq 0x38(%rsp), %rdi
callq 0x60f0
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x43e6
leaq 0x20(%rsp), %rdi
pushq $0x5
popq %rsi
callq 0x235b
leaq 0x20(%rsp), %rdi
callq 0x60f0
xorl %ebp, %ebp
leaq 0x140(%rsp), %rbx
leaq 0x8(%rsp), %r14
leaq 0x128(%rsp), %r13
leaq 0x110(%rsp), %r12
cmpl $0x3e8, %ebp            # imm = 0x3E8
je 0x2b6f
movq %rbx, %r15
xorl %ebx, %ebx
cmpq $0x14, %rbx
je 0x2ada
callq 0x2030
vcvtsi2sd %eax, %xmm1, %xmm0
movq 0x8(%rsp), %rax
vmovsd %xmm0, (%rax,%rbx,8)
incq %rbx
jmp 0x2abc
movq %r15, %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0x43e6
movq %rbx, %rdi
pushq $0x2
popq %rsi
callq 0x235b
movq %rbx, %rdi
callq 0x60f0
movq %r13, %rdi
movq %r14, %rsi
callq 0x43e6
movq %r13, %r15
movq %r13, %rdi
pushq $0x3
popq %rsi
callq 0x235b
movq %r15, %rdi
callq 0x60f0
movq %r12, %rdi
movq %r14, %rsi
callq 0x43e6
movq %r12, %r15
movq %r12, %rdi
pushq $0x4
popq %rsi
callq 0x235b
movq %r15, %rdi
callq 0x60f0
leaq 0xf8(%rsp), %rdi
movq %r14, %rsi
callq 0x43e6
leaq 0xf8(%rsp), %r15
movq %r15, %rdi
pushq $0x5
popq %rsi
callq 0x235b
movq %r15, %rdi
callq 0x60f0
incl %ebp
jmp 0x2aab
leaq 0x8(%rsp), %rdi
callq 0x60f0
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
jmp 0x2c2e
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x2c2e
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
jmp 0x2c2e
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x2c2e
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
jmp 0x2c2e
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0x2c2e
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
jmp 0x2c2e
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
jmp 0x2c2e
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
jmp 0x2c2e
jmp 0x2c35
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
jmp 0x2c2e
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
jmp 0x2c2e
movq %rax, %rbx
leaq 0x128(%rsp), %rdi
jmp 0x2c2e
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x60f0
jmp 0x2c38
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x60f0
movq %rbx, %rdi
callq 0x2160