// File: yasz24[P]eau2/tests/testSerialize.cpp
// Function: testFloatDistributedArrays()
void testFloatDistributedArrays() {
    Sys* system = new Sys();
    NetworkIP network;
    KVStore* kvs1 = new KVStore(1, 0, &network);
    FloatDistributedArray* fda = new FloatDistributedArray(kvs1);
    for(int i = 0; i < 40; i++) {
        fda->pushBack(i);
    }
    char* serialized = fda->serialize();   
    FloatDistributedArray* fda2 = new FloatDistributedArray(serialized, kvs1);
    String* s = new String(serialized);
    char* serial = fda2->serialize();
    String* s2 = new String(fda2->serialize());
    system->t_true(s2->equals(s));
    for(int i = 0; i < 10; i++) {
        system->t_true(fda->get(i) == i);
    }
    system->OK("Passed FloatDistributedArray");
    delete [] system;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movl $0x1, %edi
callq 0x7250
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xb0(%rbp)
callq 0xcd20
jmp 0xa7d9
movq -0xb0(%rbp), %rax
movq %rax, -0x8(%rbp)
leaq -0x60(%rbp), %rdi
callq 0xc820
movl $0x118, %edi            # imm = 0x118
callq 0x7250
movq %rax, -0xb8(%rbp)
jmp 0xa800
movq -0xb8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movl $0x1, %esi
leaq -0x60(%rbp), %rcx
callq 0xc870
jmp 0xa81b
movq -0xb8(%rbp), %rax
movq %rax, -0x68(%rbp)
movl $0x70, %edi
callq 0x7250
movq %rax, -0xc0(%rbp)
jmp 0xa839
movq -0xc0(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x12f70
jmp 0xa84b
movq -0xc0(%rbp), %rax
movq %rax, -0x70(%rbp)
movl $0x0, -0x74(%rbp)
cmpl $0x28, -0x74(%rbp)
jge 0xa8ec
movq -0x70(%rbp), %rdi
cvtsi2ssl -0x74(%rbp), %xmm0
callq 0x130b0
jmp 0xa877
jmp 0xa879
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0xa85d
movq -0xb0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0xab42
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0xab39
movq -0xb8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0xab39
movq -0xc0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0xab39
movq -0x70(%rbp), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movq %rax, -0xc8(%rbp)
jmp 0xa902
movq -0xc8(%rbp), %rax
movq %rax, -0x80(%rbp)
movl $0x70, %edi
callq 0x7250
movq %rax, -0xd0(%rbp)
jmp 0xa920
movq -0xd0(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x13130
jmp 0xa936
movq -0xd0(%rbp), %rax
movq %rax, -0x88(%rbp)
movl $0x20, %edi
callq 0x7250
movq %rax, -0xd8(%rbp)
jmp 0xa957
movq -0xd8(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0xcce0
jmp 0xa969
movq -0xd8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movq %rax, -0xe0(%rbp)
jmp 0xa990
movq -0xe0(%rbp), %rax
movq %rax, -0x98(%rbp)
movl $0x20, %edi
callq 0x7250
movq %rax, -0xe8(%rbp)
jmp 0xa9b1
movq -0x88(%rbp), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movq %rax, -0xf0(%rbp)
jmp 0xa9ca
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdi
callq 0xcce0
jmp 0xa9df
movq -0xe8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0xa0(%rbp), %rdi
movq -0x90(%rbp), %rsi
movq (%rdi), %rax
movq 0x18(%rax), %rax
callq *%rax
movb %al, -0xf1(%rbp)
jmp 0xaa17
movq -0x100(%rbp), %rdi
movb -0xf1(%rbp), %al
movzbl %al, %esi
andl $0x1, %esi
callq 0xcd30
jmp 0xaa31
movl $0x0, -0xa4(%rbp)
cmpl $0xa, -0xa4(%rbp)
jge 0xaaf8
movq -0x8(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x70(%rbp), %rdi
movslq -0xa4(%rbp), %rsi
callq 0x13840
movss %xmm0, -0x104(%rbp)
jmp 0xaa6d
movq -0x110(%rbp), %rdi
movss -0x104(%rbp), %xmm0
cvtsi2ssl -0xa4(%rbp), %xmm1
cmpeqss %xmm1, %xmm0
movd %xmm0, %esi
andl $0x1, %esi
callq 0xcd30
jmp 0xaa97
jmp 0xaa99
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0xaa3b
movq -0xd0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0xab39
movq -0xd8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0xab39
movq -0xe8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
callq 0x7220
jmp 0xab39
movq -0x8(%rbp), %rdi
leaq 0x24968(%rip), %rsi     # 0x2f46b
callq 0xcd70
jmp 0xab0a
movq -0x8(%rbp), %rax
movq %rax, -0x118(%rbp)
cmpq $0x0, %rax
je 0xab27
movq -0x118(%rbp), %rdi
callq 0x72b0
leaq -0x60(%rbp), %rdi
callq 0xcbe0
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
leaq -0x60(%rbp), %rdi
callq 0xcbe0
movq -0x10(%rbp), %rdi
callq 0x7370
nopl (%rax,%rax)