// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/tests/testSerialize.cpp
// Function: testDistributedDataframe()
void testDistributedDataframe() {
    Sys* system = new Sys();
    Schema* sch = new Schema();
    NetworkIP network;
    KVStore* kvs1 = new KVStore(1, 0, &network);
    DistributedIntColumn* ic = new DistributedIntColumn(kvs1);
    for (int i = 0; i < 50; i++) {
        sch->add_row(nullptr);
        ic->push_back(i);
    }

    DistributedDoubleColumn* dc = new DistributedDoubleColumn(kvs1);
    for (double i = 0; i < 50; i++) {
        dc->push_back(i);
    }
    DistributedDataFrame* dd = new DistributedDataFrame(*sch, kvs1);
    dd->add_column(ic, nullptr);
    dd->add_column(dc, nullptr);

    char* serialized = dd->serialize();
    //std::cout << serialized << "\n";   
    DistributedDataFrame* dd2 = new  DistributedDataFrame(serialized, kvs1);
    String* s = new String(serialized);
    //std::cout << dd2->serialize() << "\n";
    String* s2 = new String(dd2->serialize());
    system->t_true(s2->equals(s));

    system->OK("Passed DistributedDataFrame");
    delete [] system;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl $0x1, %edi
callq 0x7200
movq %rax, -0x30(%rbp)
movl $0x50, %edi
callq 0x7200
movq %rax, %r15
movq %rax, %rdi
callq 0x10962
xorl %eax, %eax
movq %rax, -0x80(%rbp)
leaq 0x20f1d(%rip), %rcx     # 0x2b548
movq %rcx, -0x88(%rbp)
movq $0x1, -0x70(%rbp)
movq %rax, -0x68(%rbp)
movq %rax, -0x48(%rbp)
movl $0x118, %edi            # imm = 0x118
callq 0x7200
movq %rax, %r14
leaq -0x88(%rbp), %rcx
movl $0x1, %esi
movq %rax, %rdi
xorl %edx, %edx
callq 0xad26
movl $0x20, %edi
callq 0x7200
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0xffec
xorl %ebx, %ebx
incq 0x28(%r15)
movq (%r12), %rax
movq %r12, %rdi
movl %ebx, %esi
callq *0x98(%rax)
incl %ebx
cmpl $0x32, %ebx
jne 0xa67f
movl $0x20, %edi
callq 0x7200
movq %rax, %r13
movq %rax, %rdi
movq %r14, %rsi
callq 0x100da
xorl %ebx, %ebx
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
movq (%r13), %rax
movq %r13, %rdi
callq *0xa0(%rax)
incl %ebx
cmpl $0x32, %ebx
jne 0xa6b3
movl $0x28, %edi
callq 0x7200
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x10a22
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x10bba
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x10bba
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
movq %rax, %r12
movl $0x28, %edi
callq 0x7200
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x10d4a
movq %rbx, -0x40(%rbp)
movl $0x20, %edi
callq 0x7200
movq %rax, %r14
movq %r12, %rdi
callq 0x70f0
movq %rax, %rbx
movq $0x0, 0x8(%r14)
leaq 0x20d23(%rip), %rax     # 0x2b478
movq %rax, (%r14)
movq %rbx, 0x10(%r14)
leaq 0x1(%rbx), %r13
movq %r13, %rdi
callq 0x7030
movq %rax, %r15
movq %r14, -0x38(%rbp)
movq %rax, 0x18(%r14)
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x7180
movb $0x0, (%r15,%rbx)
movl $0x20, %edi
callq 0x7200
movq %rax, %r12
movq -0x40(%rbp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movq %rax, %rbx
movq %rax, %rdi
callq 0x70f0
movq %rax, %r15
movq $0x0, 0x8(%r12)
leaq 0x20cbd(%rip), %rax     # 0x2b478
movq %rax, (%r12)
movq %r15, 0x10(%r12)
leaq 0x1(%r15), %r13
movq %r13, %rdi
callq 0x7030
movq %rax, %r14
movq %rax, 0x18(%r12)
movq %rax, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x7180
movb $0x0, (%r14,%r15)
movq %r12, %rdi
movq -0x38(%rbp), %rsi
callq 0x1149c
testb %al, %al
je 0xa839
leaq 0x15cbd(%rip), %rsi     # 0x204bf
movq -0x30(%rbp), %rdi
callq 0x127ec
movq -0x30(%rbp), %rdi
callq 0x7270
leaq 0x20d2d(%rip), %rax     # 0x2b548
movq %rax, -0x88(%rbp)
movl -0x60(%rbp), %edi
callq 0x7370
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x15e9e(%rip), %rsi     # 0x206de
movq -0x30(%rbp), %rdi
callq 0x127ec
movl $0x1, %edi
callq 0x7260
jmp 0xa8c7
jmp 0xa877
jmp 0xa8a4
jmp 0xa85f
jmp 0xa8a4
jmp 0xa8a4
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
jmp 0xa897
movq %rax, -0x30(%rbp)
movq %r13, %rdi
jmp 0xa897
jmp 0xa8a4
jmp 0xa890
jmp 0xa8a4
movq %rax, -0x30(%rbp)
movq %r14, %rdi
jmp 0xa897
jmp 0xa8a4
movq %rax, -0x30(%rbp)
movq %r15, %rdi
callq 0x71d0
jmp 0xa8be
movq %rax, -0x30(%rbp)
movq %r12, %rdi
callq 0x71d0
jmp 0xa8a8
jmp 0xa8a4
jmp 0xa8a4
jmp 0xa8a4
movq %rax, -0x30(%rbp)
leaq 0x20c99(%rip), %rax     # 0x2b548
movq %rax, -0x88(%rbp)
movl -0x60(%rbp), %edi
callq 0x7370
movq -0x30(%rbp), %rdi
callq 0x7350
movq %rax, %rdi
callq 0x115b8