// File: yasz24[P]eau2/tests/testSerialize.cpp
// Function: testStringColumnSerialization()
void testStringColumnSerialization() {
    Sys* tester = new Sys();
    Deserializable* ds = new Deserializable();
    StringColumn* sc = new StringColumn();
    sc->push_back(new String("taco"));
    sc->push_back(new String("dorito"));
    sc->push_back(new String("nacho"));
    sc->push_back(new String("enchilada"));
    char* string_is_serialized = sc->serialize();
    StringColumn* is_two = dynamic_cast<StringColumn*>(ds->deserialize(string_is_serialized));
    tester->t_true(strcmp(string_is_serialized, is_two->serialize()) == 0);
    delete sc;
    tester->OK("Passed String Column Serialization Tests");
    delete tester;
    delete [] ds;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movl $0x1, %edi
callq 0x7250
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x40(%rbp)
callq 0xcd20
jmp 0x7e56
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movl $0x1, %edi
callq 0x7250
movq %rax, -0x20(%rbp)
movl $0x28, %edi
callq 0x7250
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x48(%rbp)
callq 0xcda0
jmp 0x7e87
movq -0x48(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x58(%rbp)
movl $0x20, %edi
callq 0x7250
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x50(%rbp)
leaq 0x27250(%rip), %rsi     # 0x2f102
callq 0xcce0
jmp 0x7eb9
movq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rdi
movq (%rdi), %rax
movq 0xb8(%rax), %rax
callq *%rax
movq -0x28(%rbp), %rax
movq %rax, -0x68(%rbp)
movl $0x20, %edi
callq 0x7250
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x60(%rbp)
leaq 0x27263(%rip), %rsi     # 0x2f153
callq 0xcce0
jmp 0x7ef7
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdi
movq (%rdi), %rax
movq 0xb8(%rax), %rax
callq *%rax
movq -0x28(%rbp), %rax
movq %rax, -0x78(%rbp)
movl $0x20, %edi
callq 0x7250
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x70(%rbp)
leaq 0x2722c(%rip), %rsi     # 0x2f15a
callq 0xcce0
jmp 0x7f35
movq -0x70(%rbp), %rsi
movq -0x78(%rbp), %rdi
movq (%rdi), %rax
movq 0xb8(%rax), %rax
callq *%rax
movq -0x28(%rbp), %rax
movq %rax, -0x88(%rbp)
movl $0x20, %edi
callq 0x7250
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x80(%rbp)
leaq 0x271f1(%rip), %rsi     # 0x2f160
callq 0xcce0
jmp 0x7f76
movq -0x80(%rbp), %rsi
movq -0x88(%rbp), %rdi
movq (%rdi), %rax
callq *0xb8(%rax)
movq -0x28(%rbp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x29f70
movq %rax, -0x90(%rbp)
cmpq $0x0, %rax
je 0x807c
movq -0x90(%rbp), %rdi
leaq 0x35144(%rip), %rsi     # 0x3d108
leaq 0x35185(%rip), %rdx     # 0x3d150
xorl %eax, %eax
movl %eax, %ecx
callq 0x7290
movq %rax, -0x98(%rbp)
jmp 0x8087
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0x814a
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0x814a
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0x814a
movq -0x60(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0x814a
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0x814a
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0x814a
xorl %eax, %eax
movq %rax, -0x98(%rbp)
jmp 0x8087
movq -0x98(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x38(%rbp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movq -0xb0(%rbp), %rdi
movq %rax, %rsi
callq 0x72d0
movq -0xa8(%rbp), %rdi
cmpl $0x0, %eax
sete %al
movzbl %al, %esi
andl $0x1, %esi
callq 0xcd30
movq -0x28(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpq $0x0, %rax
je 0x80f7
movq -0xa0(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x8(%rbp), %rdi
leaq 0x27090(%rip), %rsi     # 0x2f192
callq 0xcd70
movq -0x8(%rbp), %rax
movq %rax, -0xb8(%rbp)
cmpq $0x0, %rax
je 0x8124
movq -0xb8(%rbp), %rdi
callq 0x7220
movq -0x20(%rbp), %rax
movq %rax, -0xc0(%rbp)
cmpq $0x0, %rax
je 0x8141
movq -0xc0(%rbp), %rdi
callq 0x72b0
addq $0xc0, %rsp
popq %rbp
retq
movq -0x10(%rbp), %rdi
callq 0x7370
nopw %cs:(%rax,%rax)