// File: /workspace/github_cpp_makefile_star2_O2/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 $0x58, %rsp
pushq $0x1
popq %rdi
callq 0x7220
movq %rax, -0x38(%rbp)
pushq $0x50
popq %rdi
callq 0x7220
movq %rax, %r15
movq %rax, %rdi
callq 0xd662
andq $0x0, -0x78(%rbp)
leaq 0x1ccd6(%rip), %rax     # 0x26558
movq %rax, -0x80(%rbp)
movq $0x1, -0x68(%rbp)
andq $0x0, -0x60(%rbp)
andq $0x0, -0x40(%rbp)
movl $0x118, %edi            # imm = 0x118
callq 0x7220
movq %rax, %r14
pushq $0x1
popq %rsi
leaq -0x80(%rbp), %rcx
movq %rax, %rdi
xorl %edx, %edx
callq 0x9dd4
pushq $0x20
popq %rdi
callq 0x7220
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0xceb0
xorl %ebx, %ebx
cmpl $0x32, %ebx
je 0x98ea
incq 0x28(%r15)
movq (%r12), %rax
movq %r12, %rdi
movl %ebx, %esi
callq *0x98(%rax)
incl %ebx
jmp 0x98ce
pushq $0x20
popq %rdi
callq 0x7220
movq %rax, %r13
movq %rax, %rdi
movq %r14, %rsi
callq 0xcf96
xorpd %xmm0, %xmm0
movsd 0x1073c(%rip), %xmm1    # 0x1a048
ucomisd %xmm0, %xmm1
jbe 0x9933
movq (%r13), %rax
movq %r13, %rdi
movsd %xmm0, -0x30(%rbp)
callq *0xa0(%rax)
movsd -0x30(%rbp), %xmm0
addsd 0x1071f(%rip), %xmm0    # 0x1a050
jmp 0x9904
pushq $0x28
popq %rdi
callq 0x7220
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0xd718
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xd864
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xd864
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
movq %rax, %rbx
pushq $0x28
popq %rdi
callq 0x7220
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0xd9f4
pushq $0x20
popq %rdi
callq 0x7220
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0xa064
pushq $0x20
popq %rdi
callq 0x7220
movq %rax, %rbx
movq (%r15), %rax
movq %r15, %rdi
callq *0x38(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa064
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *0x18(%rax)
testb %al, %al
jne 0x99d9
movq -0x38(%rbp), %rdi
callq 0xf396
leaq 0x10b0f(%rip), %rsi     # 0x1a4ef
movq -0x38(%rbp), %rdi
callq 0xf3ae
movq -0x38(%rbp), %rdi
callq 0x7280
leaq -0x80(%rbp), %rdi
callq 0xa00a
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9a33
jmp 0x9a60
movq %rax, -0x30(%rbp)
movq %r15, %rdi
jmp 0x9a53
jmp 0x9a60
jmp 0x9a60
jmp 0x9a4c
movq %rax, -0x30(%rbp)
movq %r13, %rdi
jmp 0x9a53
jmp 0x9a60
movq %rax, -0x30(%rbp)
movq %r12, %rdi
jmp 0x9a53
jmp 0x9a60
movq %rax, -0x30(%rbp)
movq %r14, %rdi
jmp 0x9a53
jmp 0x9a60
movq %rax, -0x30(%rbp)
movq %r15, %rdi
callq 0x71f0
jmp 0x9a6d
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
callq 0x71f0
jmp 0x9a64
jmp 0x9a60
jmp 0x9a60
jmp 0x9a60
movq %rax, -0x30(%rbp)
leaq -0x80(%rbp), %rdi
callq 0xa00a
movq -0x30(%rbp), %rdi
callq 0x7330