// File: /workspace/github_cpp_makefile_star2_O3/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 0x108d6
xorl %eax, %eax
movq %rax, -0x80(%rbp)
leaq 0x20fc2(%rip), %rcx     # 0x2b580
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 0xacb6
movl $0x20, %edi
callq 0x7200
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0xff5e
xorl %ebx, %ebx
incq 0x28(%r15)
movq (%r12), %rax
movq %r12, %rdi
movl %ebx, %esi
callq *0x98(%rax)
incl %ebx
cmpl $0x32, %ebx
jne 0xa612
movl $0x20, %edi
callq 0x7200
movq %rax, %r13
movq %rax, %rdi
movq %r14, %rsi
callq 0x1004c
xorl %ebx, %ebx
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
movq (%r13), %rax
movq %r13, %rdi
callq *0xa0(%rax)
incl %ebx
cmpl $0x32, %ebx
jne 0xa646
movl $0x28, %edi
callq 0x7200
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x10996
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x10b2c
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x10b2c
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 0x10cbc
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 0x20dc8(%rip), %rax     # 0x2b4b0
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 0x20d62(%rip), %rax     # 0x2b4b0
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 0x11406
testb %al, %al
je 0xa7cc
leaq 0x15d10(%rip), %rsi     # 0x204a5
movq -0x30(%rbp), %rdi
callq 0x12738
movq -0x30(%rbp), %rdi
callq 0x7270
leaq 0x20dd2(%rip), %rax     # 0x2b580
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 0x15ef1(%rip), %rsi     # 0x206c4
movq -0x30(%rbp), %rdi
callq 0x12738
movl $0x1, %edi
callq 0x7260
jmp 0xa85a
jmp 0xa80a
jmp 0xa837
jmp 0xa7f2
jmp 0xa837
jmp 0xa837
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
jmp 0xa82a
movq %rax, -0x30(%rbp)
movq %r13, %rdi
jmp 0xa82a
jmp 0xa837
jmp 0xa823
jmp 0xa837
movq %rax, -0x30(%rbp)
movq %r14, %rdi
jmp 0xa82a
jmp 0xa837
movq %rax, -0x30(%rbp)
movq %r15, %rdi
callq 0x71d0
jmp 0xa851
movq %rax, -0x30(%rbp)
movq %r12, %rdi
callq 0x71d0
jmp 0xa83b
jmp 0xa837
jmp 0xa837
jmp 0xa837
movq %rax, -0x30(%rbp)
leaq 0x20d3e(%rip), %rax     # 0x2b580
movq %rax, -0x88(%rbp)
movl -0x60(%rbp), %edi
callq 0x7370
movq -0x30(%rbp), %rdi
callq 0x7350
movq %rax, %rdi
callq 0x11518