// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6b1a(%rip), %rsi      # 0xd30f
leaq 0x6b1a(%rip), %rdx      # 0xd316
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x8fa8
leaq 0x40(%rsp), %r15
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6af9(%rip), %rsi      # 0xd317
leaq 0x6af9(%rip), %rdx      # 0xd31e
movq %r15, %rdi
callq 0x8fa8
leaq 0x60(%rsp), %r15
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6add(%rip), %rsi      # 0xd31f
leaq 0x6add(%rip), %rdx      # 0xd326
movq %r15, %rdi
callq 0x8fa8
leaq 0x80(%rsp), %r15
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6abb(%rip), %rsi      # 0xd327
leaq 0x6abb(%rip), %rdx      # 0xd32e
movq %r15, %rdi
callq 0x8fa8
leaq 0xa0(%rsp), %r15
leaq 0xb0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6a99(%rip), %rsi      # 0xd32f
leaq 0x6a99(%rip), %rdx      # 0xd336
movq %r15, %rdi
callq 0x8fa8
leaq 0xc0(%rsp), %r15
leaq 0xd0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6a77(%rip), %rsi      # 0xd337
leaq 0x6a77(%rip), %rdx      # 0xd33e
movq %r15, %rdi
callq 0x8fa8
leaq 0xe0(%rsp), %r15
leaq 0xf0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6a55(%rip), %rsi      # 0xd33f
leaq 0x6a55(%rip), %rdx      # 0xd346
movq %r15, %rdi
callq 0x8fa8
leaq 0x100(%rsp), %r15
leaq 0x110(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6a33(%rip), %rsi      # 0xd347
leaq 0x6a33(%rip), %rdx      # 0xd34e
movq %r15, %rdi
callq 0x8fa8
leaq 0x120(%rsp), %r15
leaq 0x130(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6a11(%rip), %rsi      # 0xd34f
leaq 0x6a11(%rip), %rdx      # 0xd356
movq %r15, %rdi
callq 0x8fa8
leaq 0x140(%rsp), %r15
leaq 0x150(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x69ef(%rip), %rsi      # 0xd357
leaq 0x69ef(%rip), %rdx      # 0xd35e
movq %r15, %rdi
callq 0x8fa8
leaq 0x160(%rsp), %r15
leaq 0x170(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x69cd(%rip), %rsi      # 0xd35f
leaq 0x69cd(%rip), %rdx      # 0xd366
movq %r15, %rdi
callq 0x8fa8
leaq 0x180(%rsp), %r15
leaq 0x190(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x69ab(%rip), %rsi      # 0xd367
leaq 0x69ab(%rip), %rdx      # 0xd36e
movq %r15, %rdi
callq 0x8fa8
leaq 0x1a0(%rsp), %r15
leaq 0x1b0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6989(%rip), %rsi      # 0xd36f
leaq 0x6989(%rip), %rdx      # 0xd376
movq %r15, %rdi
callq 0x8fa8
leaq 0x1c0(%rsp), %r15
leaq 0x1d0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6937(%rip), %rsi      # 0xd347
leaq 0x6937(%rip), %rdx      # 0xd34e
movq %r15, %rdi
callq 0x8fa8
leaq 0x1e0(%rsp), %r15
leaq 0x1f0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6905(%rip), %rsi      # 0xd33f
leaq 0x6905(%rip), %rdx      # 0xd346
movq %r15, %rdi
callq 0x8fa8
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x4fc2
movl 0x4c(%rbx), %r15d
leaq 0x1f0(%rsp), %r14
testl %r15d, %r15d
jle 0x6bec
cmpl $0x0, 0xb8fe(%rip)      # 0x12370
jle 0x6baa
xorl %r14d, %r14d
movq %rbx, %rbp
movq 0x58(%rbx), %rax
movq (%rax,%r14,8), %rax
cmpl $0x0, -0x4(%rax,%r15,4)
je 0x6b4d
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
subq %rcx, %rax
shrq $0x2, %rax
testl %eax, %eax
jle 0x6b94
leaq 0x20(%rsp), %r13
leaq 0x28(%rsp), %r12
xorl %ebx, %ebx
movq %rbx, %rax
shrq %rax
movabsq $0x4924924924924925, %rdx # imm = 0x4924924924924925
mulq %rdx
movl (%rcx,%rbx,4), %eax
movq 0x58(%rbp), %rcx
movq (%rcx,%r14,8), %rcx
cmpl -0x4(%rcx,%r15,4), %eax
jne 0x6b24
shrq %rdx
imulq $-0x1c0, %rdx, %rax     # imm = 0xFE40
movq (%r13,%rax), %rsi
movq (%r12,%rax), %rdx
movq 0xb4e2(%rip), %rdi      # 0x11fd8
callq 0x42e0
movq 0x58(%rbp), %rcx
movq (%rcx,%r14,8), %rcx
movl -0x4(%rcx,%r15,4), %esi
movq %rax, %rdi
callq 0x4420
movl $0x1, %edx
movq %rax, %rdi
leaq 0x6865(%rip), %rsi      # 0xd384
callq 0x42e0
incq %rbx
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
subq %rcx, %rax
shrq $0x2, %rax
cltq
addq $0x20, %r12
addq $0x20, %r13
cmpq %rax, %rbx
jl 0x6ab7
jmp 0x6b94
movq 0x1e0(%rsp), %rsi
movq 0x1e8(%rsp), %rdx
movq 0xb474(%rip), %rdi      # 0x11fd8
callq 0x42e0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x67fc(%rip), %rsi      # 0xd377
callq 0x42e0
movl $0x1, %edx
movq %r13, %rdi
leaq 0x67f5(%rip), %rsi      # 0xd384
callq 0x42e0
incq %r14
movslq 0xb7d2(%rip), %rax      # 0x12370
cmpq %rax, %r14
movq %rbp, %rbx
jl 0x6a7b
movq 0xb427(%rip), %rcx      # 0x11fd8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
leaq 0x1f0(%rsp), %r14
callq 0x4260
movsbl %al, %esi
movq 0xb401(%rip), %rdi      # 0x11fd8
callq 0x4040
decq %r15
movq %rax, %rdi
callq 0x4180
jmp 0x6a62
movq 0x1e0(%rsp), %rsi
movq 0x1e8(%rsp), %rdx
movq 0xb3d5(%rip), %rdi      # 0x11fd8
callq 0x42e0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4180
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6c49
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4290
movq $-0x1e0, %rbx           # imm = 0xFE20
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x6c64
movq (%r14), %rsi
incq %rsi
callq 0x4290
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x6c50
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x6d02
jmp 0x6c9f
jmp 0x6c9f
jmp 0x6c9f
jmp 0x6c9f
jmp 0x6c9f
jmp 0x6c9f
jmp 0x6c9f
jmp 0x6c9f
jmp 0x6c9f
jmp 0x6c9f
jmp 0x6c9f
jmp 0x6c9f
jmp 0x6c9f
movq %rax, %rbx
cmpq %r15, %r14
je 0x6d35
addq $-0x10, %r15
leaq 0x20(%rsp), %r14
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x6cc8
movq (%r15), %rsi
incq %rsi
callq 0x4290
leaq -0x20(%r15), %rax
addq $-0x10, %r15
cmpq %r14, %r15
movq %rax, %r15
jne 0x6cb4
jmp 0x6d35
movq %rax, %rbx
movq %r14, %r15
jmp 0x6ca2
jmp 0x6ce8
jmp 0x6ce8
jmp 0x6ce8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6d02
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4290
xorl %r14d, %r14d
movq 0x1e0(%rsp,%r14), %rdi
leaq 0x1f0(%rsp), %rax
addq %r14, %rax
cmpq %rdi, %rax
je 0x6d28
movq (%rax), %rsi
incq %rsi
callq 0x4290
addq $-0x20, %r14
cmpq $-0x1e0, %r14           # imm = 0xFE20
jne 0x6d05
movq %rbx, %rdi
callq 0x4450