// File: /workspace/github_cpp_makefile_star2_O3/cmaureir[P]strip-packing/scattersearch.cpp
// Function: print_strip(solution)
void print_strip(solution sol){

    const string colors[] = {
            "\e[0;34m",// BLUE
            "\e[0;32m",// GREEN
            "\e[0;36m",// CYAN
            "\e[0;31m",// RED
            "\e[0;35m",// PURPLE
            "\e[0;33m",// BROWN
            "\e[0;37m",// LIGHT GRAY
            "\e[1;33m",// DARK GRAY
            "\e[1;34m",// LIGHT BLUE
            "\e[1;32m",// LIGHT GREEN
            "\e[1;36m",// CYANCLARO
            "\e[1;31m",// LIGHT RED
            "\e[1;35m",// LIGHT PURPLE
            "\e[1;33m",// YELLOW
            "\e[0;37m" // WHITE
    };

    vector<int> tmp = sol.items;
    int h = sol.height;

    for (int j = h-1; j >= 0; j--)
    {
        for (int i = 0; i < strip_width; i++)
        {

            if ( sol.strip[i][j] != 0)
            {
                for (int k = 0; k < (int)tmp.size(); k++)
                {
                    if(tmp[k] == sol.strip[i][j])
                    {
                        cout << colors[k%14] << sol.strip[i][j] << "\t";
                    }
                }
            }
            else
            {
                 cout << colors[14] << "#" << "\t";
            }
        }
        cout << endl;
    }
    cout << colors[14] << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %r14
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6b7c(%rip), %rsi      # 0xd34f
leaq 0x6b7c(%rip), %rdx      # 0xd356
leaq 0x20(%rsp), %rdi
callq 0x90f8
leaq 0x40(%rsp), %r15
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6b5e(%rip), %rsi      # 0xd357
leaq 0x6b5e(%rip), %rdx      # 0xd35e
movq %r15, %rdi
callq 0x90f8
leaq 0x60(%rsp), %r15
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6b42(%rip), %rsi      # 0xd35f
leaq 0x6b42(%rip), %rdx      # 0xd366
movq %r15, %rdi
callq 0x90f8
leaq 0x80(%rsp), %r15
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6b20(%rip), %rsi      # 0xd367
leaq 0x6b20(%rip), %rdx      # 0xd36e
movq %r15, %rdi
callq 0x90f8
leaq 0xa0(%rsp), %r15
leaq 0xb0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6afe(%rip), %rsi      # 0xd36f
leaq 0x6afe(%rip), %rdx      # 0xd376
movq %r15, %rdi
callq 0x90f8
leaq 0xc0(%rsp), %r15
leaq 0xd0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6adc(%rip), %rsi      # 0xd377
leaq 0x6adc(%rip), %rdx      # 0xd37e
movq %r15, %rdi
callq 0x90f8
leaq 0xe0(%rsp), %r15
leaq 0xf0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6aba(%rip), %rsi      # 0xd37f
leaq 0x6aba(%rip), %rdx      # 0xd386
movq %r15, %rdi
callq 0x90f8
leaq 0x100(%rsp), %r15
leaq 0x110(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6a98(%rip), %rsi      # 0xd387
leaq 0x6a98(%rip), %rdx      # 0xd38e
movq %r15, %rdi
callq 0x90f8
leaq 0x120(%rsp), %r15
leaq 0x130(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6a76(%rip), %rsi      # 0xd38f
leaq 0x6a76(%rip), %rdx      # 0xd396
movq %r15, %rdi
callq 0x90f8
leaq 0x140(%rsp), %r15
leaq 0x150(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6a54(%rip), %rsi      # 0xd397
leaq 0x6a54(%rip), %rdx      # 0xd39e
movq %r15, %rdi
callq 0x90f8
leaq 0x160(%rsp), %r15
leaq 0x170(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6a32(%rip), %rsi      # 0xd39f
leaq 0x6a32(%rip), %rdx      # 0xd3a6
movq %r15, %rdi
callq 0x90f8
leaq 0x180(%rsp), %r15
leaq 0x190(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6a10(%rip), %rsi      # 0xd3a7
leaq 0x6a10(%rip), %rdx      # 0xd3ae
movq %r15, %rdi
callq 0x90f8
leaq 0x1a0(%rsp), %r15
leaq 0x1b0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x69ee(%rip), %rsi      # 0xd3af
leaq 0x69ee(%rip), %rdx      # 0xd3b6
movq %r15, %rdi
callq 0x90f8
leaq 0x1c0(%rsp), %r15
leaq 0x1d0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x699c(%rip), %rsi      # 0xd387
leaq 0x699c(%rip), %rdx      # 0xd38e
movq %r15, %rdi
callq 0x90f8
leaq 0x1e0(%rsp), %r15
leaq 0x1f0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x696a(%rip), %rsi      # 0xd37f
leaq 0x696a(%rip), %rdx      # 0xd386
movq %r15, %rdi
callq 0x90f8
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x4fa6
movl 0x4c(%r14), %r12d
leaq 0x1f0(%rsp), %rbx
testl %r12d, %r12d
jle 0x6bcd
decq %r12
cmpl $0x0, 0xb920(%rip)      # 0x12370
jle 0x6b8e
xorl %r15d, %r15d
movq %r14, %rbx
movq 0x58(%r14), %rax
movq (%rax,%r15,8), %rax
cmpl $0x0, (%rax,%r12,4)
je 0x6b31
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rsi
movq %rsi, %rax
subq %rcx, %rax
shrq $0x2, %rax
testl %eax, %eax
jle 0x6b78
leaq 0x20(%rsp), %rbp
leaq 0x28(%rsp), %r13
xorl %r14d, %r14d
movq %r14, %rax
shrq %rax
movabsq $0x4924924924924925, %rdx # imm = 0x4924924924924925
mulq %rdx
movl (%rcx,%r14,4), %eax
movq 0x58(%rbx), %rdi
movq (%rdi,%r15,8), %rdi
cmpl (%rdi,%r12,4), %eax
jne 0x6b0f
shrq %rdx
imulq $-0x1c0, %rdx, %rax     # imm = 0xFE40
movq (%rbp,%rax), %rsi
movq (%r13,%rax), %rdx
movq 0xb500(%rip), %rdi      # 0x11fd8
callq 0x42e0
movq 0x58(%rbx), %rcx
movq (%rcx,%r15,8), %rcx
movl (%rcx,%r12,4), %esi
movq %rax, %rdi
callq 0x4420
movl $0x1, %edx
movq %rax, %rdi
leaq 0x68c4(%rip), %rsi      # 0xd3c4
callq 0x42e0
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rsi
incq %r14
movq %rsi, %rax
subq %rcx, %rax
shrq $0x2, %rax
cltq
addq $0x20, %r13
addq $0x20, %rbp
cmpq %rax, %r14
jl 0x6a98
jmp 0x6b78
movq 0x1e0(%rsp), %rsi
movq 0x1e8(%rsp), %rdx
movq 0xb490(%rip), %rdi      # 0x11fd8
callq 0x42e0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x6858(%rip), %rsi      # 0xd3b7
callq 0x42e0
movl $0x1, %edx
movq %rbp, %rdi
leaq 0x6851(%rip), %rsi      # 0xd3c4
callq 0x42e0
incq %r15
movslq 0xb7ee(%rip), %rax      # 0x12370
cmpq %rax, %r15
movq %rbx, %r14
jl 0x6a59
movq 0xb443(%rip), %rcx      # 0x11fd8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
leaq 0x1f0(%rsp), %rbx
callq 0x4260
movsbl %al, %esi
movq 0xb41d(%rip), %rdi      # 0x11fd8
callq 0x4040
movq %rax, %rdi
callq 0x4180
jmp 0x6a3d
movq 0x1e0(%rsp), %rsi
movq 0x1e8(%rsp), %rdx
movq 0xb3f4(%rip), %rdi      # 0x11fd8
callq 0x42e0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4260
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4180
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6c2a
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4290
movq $-0x1e0, %r14           # imm = 0xFE20
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x6c45
movq (%rbx), %rsi
incq %rsi
callq 0x4290
addq $-0x20, %rbx
addq $0x20, %r14
jne 0x6c31
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x6cd2
jmp 0x6c80
jmp 0x6c80
jmp 0x6c80
jmp 0x6c80
jmp 0x6c80
jmp 0x6c80
jmp 0x6c80
jmp 0x6c80
jmp 0x6c80
jmp 0x6c80
jmp 0x6c80
jmp 0x6c80
jmp 0x6c80
movq %rax, %r14
addq $-0x10, %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x6c9b
movq (%r15), %rsi
incq %rsi
callq 0x4290
leaq -0x20(%r15), %rax
addq $-0x10, %r15
leaq 0x20(%rsp), %rcx
cmpq %rcx, %r15
movq %rax, %r15
jne 0x6c87
jmp 0x6d05
jmp 0x6cb8
jmp 0x6cb8
jmp 0x6cb8
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6cd2
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4290
xorl %r15d, %r15d
movq 0x1e0(%rsp,%r15), %rdi
leaq 0x1f0(%rsp), %rax
addq %r15, %rax
cmpq %rdi, %rax
je 0x6cf8
movq (%rax), %rsi
incq %rsi
callq 0x4290
addq $-0x20, %r15
cmpq $-0x1e0, %r15           # imm = 0xFE20
jne 0x6cd5
movq %r14, %rdi
callq 0x4450