// File: /workspace/github_cpp_makefile_star2_O1/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 0x221ab(%rip), %rcx     # 0x2b548
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 0xad26
movl $0x70, %edi
callq 0x7200
movq %rax, %r14
movq %rax, %rdi
movq %r12, %rsi
callq 0xf0aa
callq 0x766b
movq %rax, %r15
xorl %ebx, %ebx
cmpq %rbx, 0x18(%r15)
jbe 0x959d
movq 0x10(%r15), %rax
movq (%rax,%rbx,8), %rsi
movq %r14, %rdi
callq 0xf1b6
incq %rbx
cmpq $0xa, %rbx
jne 0x93f9
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 0xf202
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 0x22005(%rip), %rax     # 0x2b478
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 0x21f99(%rip), %rax     # 0x2b478
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 0x1149c
testb %al, %al
je 0x95d6
xorl %ebx, %ebx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xf758
cmpq %rbx, 0x18(%r15)
jbe 0x959d
movq 0x10(%r15), %rcx
movq (%rcx,%rbx,8), %rsi
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
testb %al, %al
je 0x95bc
incq %rbx
cmpq $0xa, %rbx
jne 0x9527
leaq 0x16e80(%rip), %rsi     # 0x203dd
movq -0x30(%rbp), %rdi
callq 0x127ec
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
movq -0x30(%rbp), %rdi
callq 0x7270
leaq 0x21fc9(%rip), %rax     # 0x2b548
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 0x1716a(%rip), %rdi     # 0x2070e
leaq 0x17177(%rip), %rsi     # 0x20722
leaq 0x17385(%rip), %rcx     # 0x20937
movl $0x2a4, %edx            # imm = 0x2A4
callq 0x7130
leaq 0x1711b(%rip), %rsi     # 0x206de
movq -0x30(%rbp), %rdi
callq 0x127ec
movl $0x1, %edi
callq 0x7260
leaq 0x17101(%rip), %rsi     # 0x206de
movq -0x30(%rbp), %rdi
callq 0x127ec
jmp 0x95cc
jmp 0x963e
jmp 0x9600
jmp 0x961d
jmp 0x960a
jmp 0x961d
jmp 0x961d
jmp 0x961d
movq %rax, %r15
movq %r14, %rdi
jmp 0x9610
jmp 0x961d
movq %rax, %r15
movq %r12, %rdi
jmp 0x9610
jmp 0x961d
movq %rax, %r15
movq %rbx, %rdi
callq 0x71d0
jmp 0x9620
jmp 0x961d
jmp 0x961d
jmp 0x961d
movq %rax, %r15
leaq 0x21f21(%rip), %rax     # 0x2b548
movq %rax, -0x98(%rbp)
movl -0x70(%rbp), %edi
callq 0x7370
movq %r15, %rdi
callq 0x7350
movq %rax, %rdi
callq 0x115b8