// File: yasz24[P]eau2/tests/testSerialize.cpp
// Function: testStringArraySerialization()
void testStringArraySerialization() {
    Sys* tester = new Sys();
    Deserializable* ds = new Deserializable();
    StringArray* is = new StringArray();
    is->pushBack(new String("taco"));
    is->pushBack(new String("dorito"));
    is->pushBack(new String("nacho"));
    is->pushBack(new String("enchilada"));
    char* string_is_serialized = is->serialize();
    StringArray* is_two = dynamic_cast<StringArray*>(ds->deserialize(string_is_serialized));
    tester->t_true(strcmp(string_is_serialized, is_two->serialize()) == 0);
    delete is;
    tester->OK("Passed String Array 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 0x7b46
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 0xcc20
jmp 0x7b77
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 0x27560(%rip), %rsi     # 0x2f102
callq 0xcce0
jmp 0x7ba9
movq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rdi
callq 0xccb0
movq -0x28(%rbp), %rax
movq %rax, -0x68(%rbp)
movl $0x20, %edi
callq 0x7250
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x60(%rbp)
leaq 0x2757a(%rip), %rsi     # 0x2f153
callq 0xcce0
jmp 0x7be0
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdi
callq 0xccb0
movq -0x28(%rbp), %rax
movq %rax, -0x78(%rbp)
movl $0x20, %edi
callq 0x7250
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x70(%rbp)
leaq 0x2754a(%rip), %rsi     # 0x2f15a
callq 0xcce0
jmp 0x7c17
movq -0x70(%rbp), %rsi
movq -0x78(%rbp), %rdi
callq 0xccb0
movq -0x28(%rbp), %rax
movq %rax, -0x88(%rbp)
movl $0x20, %edi
callq 0x7250
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x80(%rbp)
leaq 0x27516(%rip), %rsi     # 0x2f160
callq 0xcce0
jmp 0x7c51
movq -0x80(%rbp), %rsi
movq -0x88(%rbp), %rdi
callq 0xccb0
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 0x7d53
movq -0x90(%rbp), %rdi
leaq 0x3546d(%rip), %rsi     # 0x3d108
leaq 0x3547e(%rip), %rdx     # 0x3d120
xorl %eax, %eax
movl %eax, %ecx
callq 0x7290
movq %rax, -0x98(%rbp)
jmp 0x7d5e
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0x7e21
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0x7e21
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0x7e21
movq -0x60(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0x7e21
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0x7e21
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0x7e21
xorl %eax, %eax
movq %rax, -0x98(%rbp)
jmp 0x7d5e
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 0x7dce
movq -0xa0(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x8(%rbp), %rdi
leaq 0x27391(%rip), %rsi     # 0x2f16a
callq 0xcd70
movq -0x8(%rbp), %rax
movq %rax, -0xb8(%rbp)
cmpq $0x0, %rax
je 0x7dfb
movq -0xb8(%rbp), %rdi
callq 0x7220
movq -0x20(%rbp), %rax
movq %rax, -0xc0(%rbp)
cmpq $0x0, %rax
je 0x7e18
movq -0xc0(%rbp), %rdi
callq 0x72b0
addq $0xc0, %rsp
popq %rbp
retq
movq -0x10(%rbp), %rdi
callq 0x7370
nopw (%rax,%rax)