// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/tests/testSerialize.cpp
// Function: testStringDistributedArrays()
void testStringDistributedArrays() {
    Sys* system = new Sys();
    NetworkIP network;
    KVStore* kvs1 = new KVStore(1, 0, &network);
    StringDistributedArray* sda = new StringDistributedArray(kvs1);
    StringArray* sa = genStringArray();
    for(int i = 0; i < 10; i++) {
        sda->pushBack(sa->get(i));
    }
    char* serialized = sda->serialize();
    StringDistributedArray* sda2 = new StringDistributedArray(serialized, kvs1);
    String* s = new String(serialized);
    String* s2 = new String(sda2->serialize());
    system->t_true(s2->equals(s));
    for(int i = 0; i < 10; i++) {
        system->t_true(sda->get(i)->equals(sa->get(i)));
    }
    system->OK("Passed StringDistributedArray");
    delete sa;
    delete [] system;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl $0x1, %edi
callq 0x7200
movq %rax, -0x30(%rbp)
xorl %eax, %eax
movq %rax, -0x90(%rbp)
leaq 0x22250(%rip), %rcx     # 0x2b580
movq %rcx, -0x98(%rbp)
movq $0x1, -0x80(%rbp)
movq %rax, -0x78(%rbp)
movq %rax, -0x58(%rbp)
movl $0x118, %edi            # imm = 0x118
callq 0x7200
movq %rax, %r12
leaq -0x98(%rbp), %rcx
movl $0x1, %esi
movq %rax, %rdi
xorl %edx, %edx
callq 0xacb6
movl $0x70, %edi
callq 0x7200
movq %rax, %r14
movq %rax, %rdi
movq %r12, %rsi
callq 0xf000
callq 0x765b
movq %rax, %r15
xorl %ebx, %ebx
cmpq %rbx, 0x18(%r15)
jbe 0x9530
movq 0x10(%r15), %rax
movq (%rax,%rbx,8), %rsi
movq %r14, %rdi
callq 0xf10c
incq %rbx
cmpq $0xa, %rbx
jne 0x938c
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
movq %rax, %r13
movl $0x70, %edi
callq 0x7200
movq %rax, %rbx
movq %rax, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0xf178
movq %rbx, -0x40(%rbp)
movl $0x20, %edi
callq 0x7200
movq %rax, %r12
movq %r13, %rdi
callq 0x70f0
movq %r13, -0x38(%rbp)
movq %rax, %r13
movq $0x0, 0x8(%r12)
leaq 0x220aa(%rip), %rax     # 0x2b4b0
movq %rax, (%r12)
movq %r13, 0x10(%r12)
leaq 0x1(%r13), %rdi
movq %rdi, -0x50(%rbp)
callq 0x7030
movq %rax, %rbx
movq %r12, -0x48(%rbp)
movq %rax, 0x18(%r12)
movq %rax, %rdi
movq -0x38(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x7180
movb $0x0, (%rbx,%r13)
movl $0x20, %edi
callq 0x7200
movq %rax, %rbx
movq -0x40(%rbp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movq %rax, %rdi
movq %rax, -0x40(%rbp)
callq 0x70f0
movq %rax, %r12
movq $0x0, 0x8(%rbx)
leaq 0x2203e(%rip), %rax     # 0x2b4b0
movq %rax, (%rbx)
movq %r12, 0x10(%rbx)
leaq 0x1(%r12), %rdi
movq %rdi, -0x38(%rbp)
callq 0x7030
movq -0x40(%rbp), %rsi
movq %rax, %r13
movq %rax, 0x18(%rbx)
movq %rax, %rdi
movq -0x38(%rbp), %rdx
callq 0x7180
movb $0x0, (%r13,%r12)
movq %rbx, %rdi
movq -0x48(%rbp), %rsi
callq 0x11406
testb %al, %al
je 0x9569
xorl %ebx, %ebx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xf6b6
cmpq %rbx, 0x18(%r15)
jbe 0x9530
movq 0x10(%r15), %rcx
movq (%rcx,%rbx,8), %rsi
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
testb %al, %al
je 0x954f
incq %rbx
cmpq $0xa, %rbx
jne 0x94ba
leaq 0x16ed3(%rip), %rsi     # 0x203c3
movq -0x30(%rbp), %rdi
callq 0x12738
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
movq -0x30(%rbp), %rdi
callq 0x7270
leaq 0x2206e(%rip), %rax     # 0x2b580
movq %rax, -0x98(%rbp)
movl -0x70(%rbp), %edi
callq 0x7370
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x171bd(%rip), %rdi     # 0x206f4
leaq 0x171ca(%rip), %rsi     # 0x20708
leaq 0x173d8(%rip), %rcx     # 0x2091d
movl $0x2a4, %edx            # imm = 0x2A4
callq 0x7130
leaq 0x1716e(%rip), %rsi     # 0x206c4
movq -0x30(%rbp), %rdi
callq 0x12738
movl $0x1, %edi
callq 0x7260
leaq 0x17154(%rip), %rsi     # 0x206c4
movq -0x30(%rbp), %rdi
callq 0x12738
jmp 0x955f
jmp 0x95d1
jmp 0x9593
jmp 0x95b0
jmp 0x959d
jmp 0x95b0
jmp 0x95b0
jmp 0x95b0
movq %rax, %r15
movq %r14, %rdi
jmp 0x95a3
jmp 0x95b0
movq %rax, %r15
movq %r12, %rdi
jmp 0x95a3
jmp 0x95b0
movq %rax, %r15
movq %rbx, %rdi
callq 0x71d0
jmp 0x95b3
jmp 0x95b0
jmp 0x95b0
jmp 0x95b0
movq %rax, %r15
leaq 0x21fc6(%rip), %rax     # 0x2b580
movq %rax, -0x98(%rbp)
movl -0x70(%rbp), %edi
callq 0x7370
movq %r15, %rdi
callq 0x7350
movq %rax, %rdi
callq 0x11518