// File: DRSY[P]MyRBTree/main.cpp
// Function: RBTree::display(unsigned long)
void display(size_t width) {
        update_depth();
        size_t whole_width = (this->depth-1)*2*width+1;
        std::queue<NodePtr_t> q;
        q.push(this->root);
        size_t level = 0;
        while(!q.empty()) {
            level++;
            size_t num = q.size();
            for(size_t i=0;i<(this->depth-level);++i)
                for(size_t j=0;j<width;++j)
                    std::cout<<" ";
            size_t space;
            if(level>1)
                space = (whole_width-num-width*2*(this->depth-level))/(num-1);
            else
                space = 0;
            while(num--) {
                auto ptr = q.front();
                q.pop();
                if(ptr)
                    if(ptr->color==Color::red)
                        std::cout<<"\e[0;31m"<<ptr->value<<"\e[0m";
                    else
                        std::cout<<ptr->value;
                else
                    std::cout<<" ";
                for(size_t j=0;j<space;++j)
                    std::cout<<" ";
                if(level<this->depth) {
                   if(ptr) {
                        q.push(ptr->left);
                        q.push(ptr->right);
                    }else {
                        q.push(NULL);
                        q.push(NULL);
                    }
                }
            }
            std::cout<<"\n";
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x3830
movq -0xc8(%rbp), %rax
movl 0x8(%rax), %ecx
movl %ecx, %eax
leal -0x2(%rax,%rax), %eax
cltq
movq -0x10(%rbp), %rcx
imulq %rcx, %rax
incq %rax
movq %rax, -0x18(%rbp)
leaq -0x68(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x3870
movq -0xd0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
callq 0x38a0
jmp 0x25c9
movq $0x0, -0x80(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x38d0
movb %al, -0xd1(%rbp)
jmp 0x25e2
movb -0xd1(%rbp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x25f3
jmp 0x28e5
movq -0x80(%rbp), %rax
incq %rax
movq %rax, -0x80(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x38f0
movq %rax, -0xe0(%rbp)
jmp 0x2610
movq -0xe0(%rbp), %rax
movq %rax, -0x88(%rbp)
movq $0x0, -0x90(%rbp)
movq -0xc8(%rbp), %rcx
movq -0x90(%rbp), %rax
movslq 0x8(%rcx), %rcx
subq -0x80(%rbp), %rcx
cmpq %rcx, %rax
jae 0x26ba
movq $0x0, -0x98(%rbp)
movq -0x98(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x26a1
movq 0x696d(%rip), %rdi      # 0x8fd0
leaq 0x39f5(%rip), %rsi      # 0x605f
callq 0x2160
jmp 0x2671
jmp 0x2673
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0x264f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x3980
jmp 0x28f7
jmp 0x26a3
movq -0x90(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x90(%rbp)
jmp 0x2629
cmpq $0x1, -0x80(%rbp)
jbe 0x2702
movq -0xc8(%rbp), %rdx
movq -0x18(%rbp), %rax
subq -0x88(%rbp), %rax
movq -0x10(%rbp), %rcx
shlq %rcx
movslq 0x8(%rdx), %rdx
subq -0x80(%rbp), %rdx
imulq %rdx, %rcx
subq %rcx, %rax
movq -0x88(%rbp), %rcx
subq $0x1, %rcx
xorl %edx, %edx
divq %rcx
movq %rax, -0xa0(%rbp)
jmp 0x270d
movq $0x0, -0xa0(%rbp)
jmp 0x270f
movq -0x88(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x88(%rbp)
cmpq $0x0, %rax
je 0x28cb
leaq -0x68(%rbp), %rdi
callq 0x3910
movq %rax, -0xe8(%rbp)
jmp 0x2740
movq -0xe8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xa8(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x3930
jmp 0x275c
cmpq $0x0, -0xa8(%rbp)
je 0x27df
movq -0xa8(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jne 0x27c4
movq 0x6856(%rip), %rdi      # 0x8fd0
leaq 0x3883(%rip), %rsi      # 0x6004
callq 0x2160
movq %rax, -0xf0(%rbp)
jmp 0x278f
movq -0xf0(%rbp), %rdi
movq -0xa8(%rbp), %rax
movl (%rax), %esi
callq 0x2230
movq %rax, -0xf8(%rbp)
jmp 0x27ad
movq -0xf8(%rbp), %rdi
leaq 0x3875(%rip), %rsi      # 0x6030
callq 0x2160
jmp 0x27c2
jmp 0x27dd
movq -0xa8(%rbp), %rax
movl (%rax), %esi
movq 0x67fc(%rip), %rdi      # 0x8fd0
callq 0x2230
jmp 0x27db
jmp 0x27dd
jmp 0x27f6
movq 0x67ea(%rip), %rdi      # 0x8fd0
leaq 0x3872(%rip), %rsi      # 0x605f
callq 0x2160
jmp 0x27f4
jmp 0x27f6
movq $0x0, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
cmpq -0xa0(%rbp), %rax
jae 0x283c
movq 0x67b8(%rip), %rdi      # 0x8fd0
leaq 0x3840(%rip), %rsi      # 0x605f
callq 0x2160
jmp 0x2826
jmp 0x2828
movq -0xb0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xb0(%rbp)
jmp 0x2801
movq -0xc8(%rbp), %rcx
movq -0x80(%rbp), %rax
movslq 0x8(%rcx), %rcx
cmpq %rcx, %rax
jae 0x28c6
cmpq $0x0, -0xa8(%rbp)
je 0x2888
movq -0xa8(%rbp), %rsi
addq $0x10, %rsi
leaq -0x68(%rbp), %rdi
callq 0x38a0
jmp 0x2870
movq -0xa8(%rbp), %rsi
addq $0x18, %rsi
leaq -0x68(%rbp), %rdi
callq 0x38a0
jmp 0x2886
jmp 0x28c4
movq $0x0, -0xb8(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x3950
jmp 0x28a5
movq $0x0, -0xc0(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x3950
jmp 0x28c2
jmp 0x28c4
jmp 0x28c6
jmp 0x270f
movq 0x66fe(%rip), %rdi      # 0x8fd0
leaq 0x37db(%rip), %rsi      # 0x60b4
callq 0x2160
jmp 0x28e0
jmp 0x25d1
leaq -0x68(%rbp), %rdi
callq 0x3980
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x2240