LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/henrixh[P]shittydsa/examples/../src/primesieve.h
// Function: primesieve::primesieve(unsigned long)
primesieve(ul size) {
    p.flip();
    p[0] = false;
    ul increment = 3;

    ul limit = (ul)sqrt((double)size);
    while(increment < limit) {
      for(ul i = increment*increment; i < size; i += increment*2) {
        p[i/2] = false;
      }

      do {
        increment += 2;
      } while(increment < limit && !p[increment/2]);
    }
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1e848, %edx          # imm = 0x1E848
xorl %esi, %esi
callq 0x1030
movq %r14, %rdi
callq 0x131c
andb $-0x2, (%r14)
movq %rbx, %xmm0
punpckldq 0xdc9(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0xdd1(%rip), %xmm0      # 0x2020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
sqrtsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0xdbd(%rip), %xmm0      # 0x2030
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rcx, %rax
pushq $0x3
popq %rsi
pushq $-0x2
popq %rdx
cmpq %rax, %rsi
jae 0x12e7
movq %rsi, %rdi
imulq %rsi, %rdi
leaq (%rsi,%rsi), %r8
cmpq %rbx, %rdi
jae 0x12b3
movq %rdi, %r9
shrq $0x7, %r9
movl %edi, %ecx
shrb %cl
movq %rdx, %r10
rolq %cl, %r10
andq %r10, (%r14,%r9,8)
addq %r8, %rdi
jmp 0x1294
addq $0x2, %rsi
movq %rsi, %rcx
cmpq %rax, %rcx
jae 0x12e2
movl %ecx, %edi
leaq 0x2(%rcx), %r8
movq %rcx, %rsi
shrq $0x7, %rcx
movq (%r14,%rcx,8), %rcx
shrb %dil
movzbl %dil, %edi
btq %rdi, %rcx
movq %r8, %rcx
jae 0x12ba
jmp 0x1284
movq %rcx, %rsi
jmp 0x1284
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/statgen[P]statgen/lib/tclap-1.2.0/examples/test16.cpp
// Function: void TCLAP::SetString<std::vector<double, std::allocator<double>>>(std::vector<double, std::allocator<double>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void SetString< std::vector<double> >(std::vector<double> &v,
                                          const std::string &s)
    {
        std::istringstream iss(s);
        while (iss) {
            double tmp;
            iss >> tmp;
            v.push_back(tmp);
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rdi, %rbx
leaq 0x10(%rsp), %r14
pushq $0x8
popq %rdx
movq %r14, %rdi
callq 0x32a0
leaq 0x8(%rsp), %r15
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x30(%rsp,%rax)
jne 0x34b8
movq %r14, %rdi
movq %r15, %rsi
callq 0x3120
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4470
jmp 0x3490
leaq 0x10(%rsp), %rdi
callq 0x30c0
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x32c0
// File: /workspace/github_cpp_makefile_star2_O2/syzcch[P]FEC_C_version/fec_star.cpp
// Function: main
int main()
{

    printf("starting");

    const int NUM = 9;
    int *err = new int[NUM];
//    star *starItem = new star();
    star *starItem = new star(6,257,1024);

    starItem->setData();
    starItem->encoding();
    starItem->outputData();

    // 1 means fault data
    for(int i=0; i<NUM; i++)
    {
        err[i] = 0;
    }

//    err[0]=1;
//   err[1]=1;
    err[2]=1;
//    err[3]=1;

    starItem->setErrData(err);
    starItem->decoding();
    starItem->outputOrigin();

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x2d6a(%rip), %rdi      # 0x4014
xorl %eax, %eax
callq 0x1040
pushq $0x24
popq %rdi
callq 0x1030
movq %rax, %r14
pushq $0x38
popq %rdi
callq 0x10b0
movq %rax, %rbx
pushq $0x6
popq %rsi
movq %rax, %rdi
movl $0x101, %edx            # imm = 0x101
movl $0x400, %ecx            # imm = 0x400
callq 0x134c
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x30(%rax)
xorl %eax, %eax
cmpq $0x9, %rax
je 0x1309
andl $0x0, (%r14,%rax,4)
incq %rax
jmp 0x12f9
movl $0x1, 0x8(%r14)
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *(%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x20(%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
pushq $0x38
popq %rsi
movq %rbx, %rdi
callq 0x10c0
movq %r14, %rdi
callq 0x1140
nop
// File: /workspace/github_cpp_makefile_star2_O2/syzcch[P]FEC_C_version/./fec_star.h
// Function: star::star(int, int, int)
star(int disk, int prime, int dataLength )
    {
        p = prime;
        data_disk_nbr = disk;
        stripe_unit_size = dataLength;
        check_data_size = stripe_unit_size * sizeof(char) / sizeof(int);
        block_nbr = p - 1;
        block_size = check_data_size / block_nbr;
        allNum = data_disk_nbr + TOLERENCE;

        check_data = (int **)malloc(sizeof(int *) * (allNum));
        for(int i = 0; i < allNum; i++)
        {
            check_data[i] = (int *) malloc(sizeof(int )*check_data_size);
            memset(check_data[i],0,stripe_unit_size);
        }

        restarts = new int[allNum];
        for(int i = 0; i < allNum; i++)
        {
            restarts[i] = 0;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %eax
movl %edx, %ecx
movq %rdi, %rbx
leaq 0x49fc(%rip), %rdx      # 0x5d60
movq %rdx, (%rdi)
movl %ecx, 0x10(%rdi)
movl %esi, 0x28(%rdi)
movl %eax, 0x30(%rdi)
sarl $0x2, %eax
movl %eax, 0x8(%rdi)
decl %ecx
movl %ecx, 0x14(%rdi)
cltd
idivl %ecx
movl %eax, 0xc(%rdi)
leal 0x3(%rsi), %r15d
movl %r15d, 0x2c(%rdi)
movslq %esi, %rax
leaq 0x18(,%rax,8), %rdi
callq 0x10f0
movq %rax, 0x18(%rbx)
xorl %r14d, %r14d
movslq %r15d, %r15
cmpq %r15, %r14
jge 0x13d9
movslq 0x8(%rbx), %rdi
shlq $0x2, %rdi
callq 0x10f0
movq 0x18(%rbx), %rcx
movq %rax, (%rcx,%r14,8)
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
movslq 0x30(%rbx), %rdx
xorl %esi, %esi
callq 0x1060
incq %r14
movl 0x2c(%rbx), %r15d
jmp 0x13a0
leaq (,%r15,4), %rax
xorl %r14d, %r14d
testl %r15d, %r15d
pushq $-0x1
popq %rdi
cmovnsq %rax, %rdi
cmovlel %r14d, %r15d
callq 0x1030
movq %rax, 0x20(%rbx)
cmpq %r14, %r15
je 0x140a
andl $0x0, (%rax,%r14,4)
incq %r14
jmp 0x13fb
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/syzcch[P]FEC_C_version/./fec_star.h
// Function: star::encoding()
void encoding()
    {
        if( check_data_size % block_nbr != 0)
        {
            printf(" Cannot  striping. wrong DATA_LENGTH!\n");
            exit(1);
        }

        STAR_encoding_row  ();
        STAR_encoding_diag1();
        STAR_encoding_diag2();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl 0x8(%rdi), %eax
cltd
idivl 0x14(%rdi)
testl %edx, %edx
jne 0x14bb
movq %rdi, %rbx
callq 0x25de
movq %rbx, %rdi
callq 0x2618
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2786
leaq 0x2bc8(%rip), %rdi      # 0x408a
callq 0x1120
pushq $0x1
popq %rdi
callq 0x10e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/syzcch[P]FEC_C_version/./fec_star.h
// Function: star::outputOrigin()
void outputOrigin()
    {

        printf("After decoding:");
        for(int i=0; i < data_disk_nbr; i++)
        {
            printf("data:%d:  ",i);
            for(int j = 0; j < check_data_size; j++)
            {
                printf("%d ",check_data[i][j]);
            }
            printf("\n");
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1c34(%rip), %rdi      # 0x404c
xorl %eax, %eax
callq 0x1040
leaq 0x1c41(%rip), %r15      # 0x4067
pushq $0xa
popq %r12
xorl %r13d, %r13d
movslq 0x28(%rbx), %rax
cmpq %rax, %r13
jge 0x247b
leaq 0x1c1f(%rip), %rdi      # 0x405c
movl %r13d, %esi
xorl %eax, %eax
callq 0x1040
xorl %r14d, %r14d
movslq 0x8(%rbx), %rax
cmpq %rax, %r14
jge 0x246e
movq 0x18(%rbx), %rax
movq (%rax,%r13,8), %rax
movl (%rax,%r14,4), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x1040
incq %r14
jmp 0x244a
movl %r12d, %edi
callq 0x1100
incq %r13
jmp 0x242d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/syzcch[P]FEC_C_version/./fec_star.h
// Function: star::outputData()
void outputData()
    {

        printf("The res:");
        for(int i = 0; i < allNum; i++)
        {
            for(int j = 0; j < check_data_size; j++)
            {
                printf("%d ",check_data[i][j]);
            }

            printf("\n");
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1bc9(%rip), %rdi      # 0x406b
xorl %eax, %eax
callq 0x1040
leaq 0x1bb7(%rip), %r14      # 0x4067
pushq $0xa
popq %r15
xorl %r12d, %r12d
movslq 0x2c(%rbx), %rax
cmpq %rax, %r12
jge 0x24f4
xorl %r13d, %r13d
movslq 0x8(%rbx), %rax
cmpq %rax, %r13
jge 0x24e7
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rax
movl (%rax,%r13,4), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
incq %r13
jmp 0x24c3
movl %r15d, %edi
callq 0x1100
incq %r12
jmp 0x24b7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/syzcch[P]FEC_C_version/./fec_star.h
// Function: star::STAR_encoding_row()
void STAR_encoding_row()
    {
        int i,j;
        for( i = 0; i < check_data_size; i++)
        {
            for( j = 0; j < data_disk_nbr; j++)
            {
                check_data[data_disk_nbr][i] ^= check_data[j][i] ;
            }

        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movslq 0x8(%rdi), %rcx
cmpq %rcx, %rax
jge 0x2616
movq 0x18(%rdi), %rcx
xorl %edx, %edx
movslq 0x28(%rdi), %rsi
cmpq %rsi, %rdx
jge 0x2611
movq (%rcx,%rdx,8), %r8
movl (%r8,%rax,4), %r8d
movq (%rcx,%rsi,8), %rsi
xorl %r8d, (%rsi,%rax,4)
incq %rdx
jmp 0x25f3
incq %rax
jmp 0x25e4
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/syzcch[P]FEC_C_version/./fec_star.h
// Function: star::STAR_encoding_diag2()
void STAR_encoding_diag2()
    {
        int i,j,stripe,k;
        int *tmp;
        tmp = (int*)malloc(sizeof(int) * (p * block_size));
        memset(tmp, 0, p*block_size*sizeof(int));

        for(stripe = 0; stripe < block_nbr+1; stripe++)
        {
            for(i = 0; i < data_disk_nbr; i++)
            {
                for(j = 0; j<block_size; j++)
                {
                    k = (stripe + i + p) % p;
                    if( k < block_nbr)
                        tmp[stripe * block_size + j] ^= check_data[i][ k * block_size + j];
                }
            }
        }
        for( i = 0; i< block_nbr; i++)
        {
            for( j = 0; j< block_size; j++)
            {
                tmp[ i * block_size + j] ^= tmp[block_nbr * block_size + j];
            }
        }

        memmove( check_data[data_disk_nbr + 2], tmp, check_data_size * sizeof(int));

        free(tmp);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl 0x10(%rdi), %r12d
movslq 0xc(%rdi), %r15
movl %r15d, %eax
imull %r12d, %eax
movslq %eax, %rsi
shlq $0x2, %rsi
pushq $0x1
popq %rdi
callq 0x1070
movq %rax, %r14
movslq 0x14(%rbx), %rdi
movslq 0x28(%rbx), %rdx
movq %rbx, -0x48(%rbp)
movq 0x18(%rbx), %r8
xorl %r11d, %r11d
testl %r15d, %r15d
movl $0x0, %r9d
cmovgl %r15d, %r9d
testl %edx, %edx
movl $0x0, %r13d
movq %rdx, -0x38(%rbp)
cmovgl %edx, %r13d
leaq (,%r15,4), %rcx
movq %rcx, -0x30(%rbp)
movq %rax, -0x40(%rbp)
cmpq %rdi, %r11
jg 0x284a
leal (%r12,%r11), %esi
xorl %ebx, %ebx
cmpq %r13, %rbx
je 0x2841
leal (%rsi,%rbx), %ecx
xorl %r10d, %r10d
cmpq %r10, %r9
je 0x283c
movl %ecx, %eax
cltd
idivl %r12d
cmpl %edi, %edx
jge 0x2837
imull %r15d, %edx
movslq %edx, %rax
shlq $0x2, %rax
addq (%r8,%rbx,8), %rax
movl (%rax,%r10,4), %eax
xorl %eax, (%r14,%r10,4)
incq %r10
jmp 0x2811
incq %rbx
jmp 0x2806
incq %r11
addq -0x30(%rbp), %r14
jmp 0x27fb
imull %edi, %r15d
movslq %r15d, %rcx
xorl %eax, %eax
testl %edi, %edi
cmovlel %eax, %edi
movq -0x40(%rbp), %rbx
leaq (%rbx,%rcx,4), %rcx
movq %rbx, %rdx
cmpq %rdi, %rax
je 0x2885
xorl %esi, %esi
cmpq %rsi, %r9
je 0x287c
movl (%rcx,%rsi,4), %r10d
xorl %r10d, (%rdx,%rsi,4)
incq %rsi
jmp 0x286a
incq %rax
addq -0x30(%rbp), %rdx
jmp 0x2863
movq -0x38(%rbp), %rax
movq 0x10(%r8,%rax,8), %rdi
movq -0x48(%rbp), %rax
movslq 0x8(%rax), %rdx
shlq $0x2, %rdx
movq %rbx, %rsi
callq 0x1090
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10d0
// File: /workspace/github_cpp_makefile_star2_O2/carellano8[P]Proyecto-Redes-I-2017/main.cpp
// Function: main
int main(int argc, char **argv)
{

    int r;
    ////////////////////////////////////////////////////////
    do{
        cout<<"Ingrese ( 1 ) Para emisor o ( 0 ) Para receptor:"<<endl<<"-->";
        cin>>r;
        if(!(r==0 || r==1)){
            cout<<"Ingrese una opcion valida"<<endl;
        }
    }while(!(r==0 || r==1) );
    ////////////////////////////////////////////////////////

    ////////////////////////////////////////////////////////
    if(r){
        do{
            cout<<"Ingrese ( 1 ) Para CRC16 o ( 0 ) Para Hamming:"<<endl<<"-->";
            cin>>r;
            if(!(r==0 || r==1)){
                cout<<"Ingrese una opcion valida"<<endl;
            }
        }while(!(r==0 || r==1) );
        emisor(r);

    }
    else{
        do{
            cout<<"Ingrese ( 1 ) Para CRC16 o ( 0 ) Para Hamming:"<<endl<<"-->";
            cin>>r;
            if(!(r==0 || r==1)){
                cout<<"Ingrese una opcion valida"<<endl;
            }
        }while(!(r==0 || r==1) );
        receptor(r);
    }
    ////////////////////////////////////////////////////////
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x6b6f(%rip), %rbx      # 0x8fd0
leaq 0x3bcd(%rip), %r15      # 0x6035
movq 0x6b71(%rip), %r12      # 0x8fe0
leaq -0x2c(%rbp), %r13
leaq 0x3bbf(%rip), %r14      # 0x6039
movq %rbx, %rdi
leaq 0x3b80(%rip), %rsi      # 0x6004
callq 0x2150
movq %rax, %rdi
callq 0x20b0
movq %rax, %rdi
movq %r15, %rsi
callq 0x2150
movq %r12, %rdi
movq %r13, %rsi
callq 0x20e0
movl -0x2c(%rbp), %eax
cmpl $0x2, %eax
jb 0x24ca
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2150
movq %rax, %rdi
callq 0x20b0
movl -0x2c(%rbp), %eax
cmpl $0x1, %eax
ja 0x247a
movq 0x6aff(%rip), %rbx      # 0x8fd0
leaq 0x3b5d(%rip), %r15      # 0x6035
movq 0x6b01(%rip), %r12      # 0x8fe0
leaq -0x2c(%rbp), %r13
leaq 0x3b4f(%rip), %r14      # 0x6039
testl %eax, %eax
je 0x2560
movq %rbx, %rdi
leaq 0x3b5b(%rip), %rsi      # 0x6053
callq 0x2150
movq %rax, %rdi
callq 0x20b0
movq %rax, %rdi
movq %r15, %rsi
callq 0x2150
movq %r12, %rdi
movq %r13, %rsi
callq 0x20e0
movl -0x2c(%rbp), %edi
cmpl $0x2, %edi
jb 0x253e
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2150
movq %rax, %rdi
callq 0x20b0
movl -0x2c(%rbp), %edi
cmpl $0x1, %edi
ja 0x24ee
callq 0x25ab
jmp 0x259a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2150
movq %rax, %rdi
callq 0x20b0
movl -0x2c(%rbp), %edi
cmpl $0x1, %edi
jbe 0x2595
movq %rbx, %rdi
leaq 0x3ae9(%rip), %rsi      # 0x6053
callq 0x2150
movq %rax, %rdi
callq 0x20b0
movq %rax, %rdi
movq %r15, %rsi
callq 0x2150
movq %r12, %rdi
movq %r13, %rsi
callq 0x20e0
movl -0x2c(%rbp), %edi
cmpl $0x2, %edi
jae 0x2545
callq 0x2794
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/carellano8[P]Proyecto-Redes-I-2017/crc16.cpp
// Function: crc16::msjTobin(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
binario crc16::msjTobin(string mensaje){
            binario bin="";
            size_t i;
            for (i = 0; i < mensaje.size(); i++)
            {
                //cout<<bitset<8>(mensaje.c_str()[i]).to_string()<<endl;
                bin+=bitset<8>(mensaje[i]).to_string();
            }


            return bin;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x302b(%rip), %rsi      # 0x6159
leaq -0x50(%rbp), %r15
movq %r15, %rdx
callq 0x2c1a
xorl %r13d, %r13d
leaq -0x30(%rbp), %r12
cmpq 0x8(%r14), %r13
jae 0x3176
movq (%r14), %rax
movzbl (%rax,%r13), %eax
movq %rax, -0x30(%rbp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x3f6c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2290
movq %r15, %rdi
callq 0x20a0
incq %r13
jmp 0x3141
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0x20a0
jmp 0x3199
movq %rax, %r14
movq %rbx, %rdi
callq 0x20a0
movq %r14, %rdi
callq 0x2230
nop
// File: /workspace/github_cpp_makefile_star2_O2/carellano8[P]Proyecto-Redes-I-2017/crc16.cpp
// Function: crc16::relleno_Bit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
binario crc16::relleno_Bit(binario bin_in){
            int contador=0;
            size_t i;
            binario bin_out="";
            for (i = 0; i < bin_in.size(); i++){
                if(bin_in[i]=='1'){
                    contador++;
                    }else{
                        contador=0;
                        }
                    bin_out+=bin_in[i];
                    if(contador==5){
                        bin_out+="0";
                        contador=0;
                    }
            }
            return bin_out;

        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x2bda(%rip), %rsi      # 0x6159
leaq -0x29(%rbp), %rdx
callq 0x2c1a
xorl %r15d, %r15d
xorl %r13d, %r13d
cmpq 0x8(%r14), %r13
jae 0x35d4
movq (%r14), %rax
movb (%rax,%r13), %r12b
movsbl %r12b, %esi
movq %rbx, %rdi
callq 0x2110
incl %r15d
cmpb $0x31, %r12b
movl $0x0, %eax
cmovnel %eax, %r15d
cmpl $0x5, %r15d
jne 0x35cf
xorl %r15d, %r15d
movq %rbx, %rdi
leaq 0x2b7d(%rip), %rsi      # 0x6147
callq 0x2260
incq %r13
jmp 0x358e
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x20a0
movq %r14, %rdi
callq 0x2230
nop
// File: /workspace/github_cpp_makefile_star2_O2/carellano8[P]Proyecto-Redes-I-2017/crc16.cpp
// Function: crc16::BitStringToInt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int crc16::BitStringToInt(string bin){
	size_t i,n=bin.size(),acum=0;
	for (i = 0; i < n; ++i)
	{
		if(bin[i]=='1'){
			acum+=pow(2,n-(i+1)) ;
		}
	}
	return acum;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %r15
decq %r15
xorl %r12d, %r12d
xorl %r14d, %r14d
cmpq $-0x1, %r15
je 0x3d3a
movq (%rbx), %rax
cmpb $0x31, (%rax,%r12)
jne 0x3d2f
movq %r15, %xmm1
movq 0x2446(%rip), %xmm0     # 0x6110
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0x244a(%rip), %xmm0     # 0x6120
subpd %xmm0, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
callq 0x2140
movq %r14, %xmm1
punpckldq 0x2418(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2420(%rip), %xmm1     # 0x6120
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
addsd %xmm0, %xmm2
cvttsd2si %xmm2, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x240c(%rip), %xmm2     # 0x6130
cvttsd2si %xmm2, %r14
andq %rcx, %r14
orq %rax, %r14
incq %r12
decq %r15
jmp 0x3ca9
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/carellano8[P]Proyecto-Redes-I-2017/hamming.cpp
// Function: hamming::potencia2(int)
bool hamming::potencia2(int n){
    int i=0;bool r=false;int p;
    p=pow(2,i);

    while(!r&&p<=n){
        if(n==p){r=true;}
        i++;p=pow(2,i);
        }
    return r;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movsd 0xf5e(%rip), %xmm0      # 0x6178
pushq $0x1
popq %r15
xorl %r14d, %r14d
testb $0x1, %r14b
jne 0x5242
cvttsd2si %xmm0, %eax
cmpl %ebx, %eax
jg 0x5242
sete %r14b
cvtsi2sd %r15d, %xmm0
callq 0x2140
incl %r15d
jmp 0x5221
andb $0x1, %r14b
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/BPtree.h
// Function: BPtree::search_leaf(int)
Btreenode
BPtree::search_leaf(int primary_key)
{
    Btreenode n(true);
    int q, curr_node = root_num;
    read_node(curr_node, n);

    //Traversing the Tree from root till leaf
    while (!n.isleaf())
    {
        q = n.num_pointers();
        if (primary_key <= n.get_key(1))
        {
            curr_node = n.get_pointer(1);
        }
        else if (primary_key > n.get_key(q - 1))
        {
            curr_node = n.get_pointer(q);
        }
        else
        {
            curr_node = n.get_pointer(n.get_next_key(primary_key) + 1);
        }
        read_node(curr_node, n);
    }

    return n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movb $0x1, (%rdi)
orl $-0x1, 0x38(%rdi)
movl 0x4(%rsi), %esi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x4086
leaq 0x8(%rbx), %r15
movabsq $-0x100000000, %r12     # imm = 0xFFFFFFFF00000000
cmpb $0x0, (%rbx)
jne 0x2538
movq 0x8(%rbx), %rax
movq 0x20(%rbx), %rdx
cmpl %ebp, (%rdx)
jge 0x2529
movq 0x10(%rbx), %rcx
subq %rax, %rcx
shlq $0x1e, %rcx
leaq (%rcx,%r12), %rsi
sarq $0x20, %rsi
cmpl %ebp, -0x4(%rdx,%rsi,4)
jge 0x2516
sarq $0x20, %rcx
leaq (%rax,%rcx,4), %rax
addq $-0x4, %rax
jmp 0x2529
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4118
cltq
shlq $0x2, %rax
addq (%r15), %rax
movl (%rax), %esi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x4086
jmp 0x24de
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2546
movq %rax, %r14
movq %rbx, %rdi
callq 0x4142
movq %r14, %rdi
callq 0x2320
nop
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/BPtree.h
// Function: BPtree::get_record(int)
int
BPtree::get_record(int primary_key)
{
	clock_t start=clock();
    Btreenode n = search_leaf(primary_key);
    int pos = n.get_next_key(primary_key) + 1;
    clock_t stop=clock();
    double elapsed=(double)(stop-start)*1000.0/CLOCKS_PER_SEC;
    printf("\nTime elapsed for search is %f ms",elapsed);
    if (pos <= n.num_keys() && n.get_key(pos) == primary_key)
    {
        return n.get_pointer(pos);
    }
    else
    {
        return BPTREE_SEARCH_NOT_FOUND;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %esi, %ebx
movq %rdi, %r15
callq 0x2110
movq %rax, %r14
movq %rsp, %r12
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x249c
movq %r12, %rdi
movl %ebx, %esi
callq 0x4118
movl %eax, %ebp
callq 0x2110
subq %r14, %rax
cvtsi2sd %rax, %xmm0
mulsd 0x3a64(%rip), %xmm0     # 0x6008
divsd 0x3a64(%rip), %xmm0     # 0x6010
leaq 0x3a85(%rip), %rdi      # 0x6038
movb $0x1, %al
callq 0x2030
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
pushq $-0x1
popq %r14
cmpl %ecx, %ebp
jge 0x25e8
movslq %ebp, %rcx
cmpl %ebx, (%rax,%rcx,4)
jne 0x25e8
incq %rcx
movq 0x8(%rsp), %rax
movl -0x4(%rax,%rcx,4), %r14d
movq %rsp, %rdi
callq 0x4142
movl %r14d, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4142
movq %rbx, %rdi
callq 0x2320
nop
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/file_handler.h
// Function: open_file(char*, char*)
FILE *open_file(char t_name[] ,char perm[]){

    FILE *fp;
    struct stat st = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
    char *name = (char *)malloc(sizeof(char) * (2 * MAX_NAME + 15));
       strcpy(name, "./table/");

    if (stat(name, &st) == -1)
        mkdir(name, 0775);

    strcat(name, t_name);
    strcat(name, "/");

    if (stat(name, &st) == -1)
        mkdir(name, 0775);
    strcat(name, "met");
    fp = fopen(name, perm);
    if (!fp){
        printf("\nError in opening file\n");
    }
    free(name);
    return fp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x8(%rsp), %r12
movl $0x90, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x20e0
pushq $0x73
popq %rdi
callq 0x2240
movq %rax, %rbx
movabsq $0x2f656c6261742f2e, %rax # imm = 0x2F656C6261742F2E
movq %rax, (%rbx)
movb $0x0, 0x8(%rbx)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2160
cmpl $-0x1, %eax
jne 0x2c6b
movq %rbx, %rdi
movl $0x1fd, %esi            # imm = 0x1FD
callq 0x20c0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2330
movq %rbx, %rdi
callq 0x20a0
movw $0x2f, (%rbx,%rax)
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2160
cmpl $-0x1, %eax
jne 0x2ca3
movq %rbx, %rdi
movl $0x1fd, %esi            # imm = 0x1FD
callq 0x20c0
movq %rbx, %rdi
callq 0x20a0
movl $0x74656d, (%rbx,%rax)  # imm = 0x74656D
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21f0
movq %rax, %r14
testq %rax, %rax
jne 0x2cd1
leaq 0x3cc4(%rip), %rdi      # 0x6990
callq 0x22c0
movq %rbx, %rdi
callq 0x2200
movq %r14, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/file_handler.h
// Function: store_meta_data(table*)
int store_meta_data(struct table *t_ptr)
{
    FILE *fp = open_file(t_ptr->name, const_cast<char*>("w"));
    fwrite(t_ptr, sizeof(struct table), 1, fp);
    fclose(fp);
    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x3e4, %rdi            # imm = 0x3E4
leaq 0x3363(%rip), %rsi      # 0x6063
callq 0x2c0a
movq %rax, %r14
pushq $0x1
popq %rdx
movl $0x420, %esi            # imm = 0x420
movq %rbx, %rdi
movq %rax, %rcx
callq 0x2360
movq %r14, %rdi
callq 0x2190
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/create.h
// Function: record_size(table*)
int record_size(table *temp){
	int size=0;
	temp->prefix[0]=0;
	for(int i=0;i<temp->count;i++){
		switch(temp->col[i].type){
		case INT:
			temp->prefix[i+1]=sizeof(int)+temp->prefix[i];
			size+=sizeof(int);
			break;
		case VARCHAR:
			temp->prefix[i+1]=sizeof(char)*(MAX_VARCHAR +1) +temp->prefix[i];
			size+=sizeof(char)*(MAX_VARCHAR +1);
			break;
		}
	}
	return size;
}

// Assembly:
andl $0x0, (%rdi)
leaq 0x90(%rdi), %rcx
xorl %edx, %edx
xorl %eax, %eax
movslq 0x3e0(%rdi), %rsi
imulq $0x1c, %rdx, %r8
addq %rcx, %r8
cmpq %rsi, %rdx
jge 0x2d8a
movl (%r8), %r9d
cmpl $0x1, %r9d
je 0x2d66
cmpl $0x2, %r9d
je 0x2d78
incq %rdx
addq $0x1c, %r8
jmp 0x2d49
movl (%rdi,%rdx,4), %esi
addl $0x4, %esi
movl %esi, 0x4(%rdi,%rdx,4)
incq %rdx
addl $0x4, %eax
jmp 0x2d3b
movl (%rdi,%rdx,4), %esi
addl $0x33, %esi
movl %esi, 0x4(%rdi,%rdx,4)
incq %rdx
addl $0x33, %eax
jmp 0x2d3b
retq
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/insert.h
// Function: search_table(char*)
int search_table(char tab_name[]){
	
	//check if new table already exists in table list or not 
		//use grep to search table_name string inside table_list
		// -F -> --fixed-strings ;intepret pattern as a list of fixed strings
		// -x -> --line-regexp ;select only those matches that exactly match the whole line
		// -q -> quite, --silent ;write anything to standard output, exit immediately with zero status if any match is found
		char str[MAX_NAME+1];
		strcpy(str,"grep -Fxq");
		strcat(str,tab_name);
		strcat(str," ./table/table_list");
		int x = system(str);
		if(x==0)return 1;
		else return 0;
	return 0;
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rsi
movabsq $0x78462d2070657267, %rax # imm = 0x78462D2070657267
movq %rsp, %rbx
movq %rax, (%rbx)
movw $0x71, 0x8(%rbx)
movq %rbx, %rdi
callq 0x2330
movq %rbx, %rdi
callq 0x20a0
movups 0x3288(%rip), %xmm0     # 0x641a
movups %xmm0, (%rsp,%rax)
movl $0x747369, 0x10(%rsp,%rax) # imm = 0x747369
movq %rbx, %rdi
callq 0x2130
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, %eax
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/display.h
// Function: show_tables()
void show_tables(){
	char *name;
	printf("\n\nLIST OF TABLES\n\n");
	printf("---------------------------\n");
	int tabcount=0;
	name=(char*)malloc(sizeof(char)*MAX_NAME);
	FILE *fp=fopen("./table/table_list","r+");
	while(fscanf(fp,"%s",name)!=EOF){
		tabcount++;
		cout<<name<<"\n";
	}
	if(tabcount==0) printf("Database empty!!!\n");
	printf("---------------------------\n");
	free(name);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x3236(%rip), %rdi      # 0x6b47
callq 0x22c0
leaq 0x327f(%rip), %rdi      # 0x6b9c
callq 0x22c0
pushq $0x32
popq %rdi
callq 0x2240
movq %rax, %rbx
leaq 0x2ae7(%rip), %rdi      # 0x641b
leaq 0x279d(%rip), %rsi      # 0x60d8
callq 0x21f0
movq %rax, %r14
leaq 0x2a8d(%rip), %r15      # 0x63d7
movq 0x667f(%rip), %r12      # 0x9fd0
leaq 0x29ca(%rip), %r13      # 0x6322
xorl %ebp, %ebp
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2350
cmpl $-0x1, %eax
je 0x3989
movq %r12, %rdi
movq %rbx, %rsi
callq 0x2180
movq %rax, %rdi
movq %r13, %rsi
callq 0x2180
decl %ebp
jmp 0x395a
testl %ebp, %ebp
jne 0x3999
leaq 0x31c5(%rip), %rdi      # 0x6b59
callq 0x22c0
leaq 0x31fc(%rip), %rdi      # 0x6b9c
callq 0x22c0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2200
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/drop.h
// Function: drop()
void drop(){
	char *tab;
	char *temp;
	char *temp1;
	temp1=(char*)malloc(sizeof(char)*MAX_NAME);
	temp=(char*)malloc(sizeof(char)*MAX_NAME);
	tab=(char*)malloc(sizeof(char)*MAX_NAME);
	cout<<"\nenter table name to delete: ";
	cin>>tab;
	strcpy(temp1,tab);
	int check=search_table(tab);
	if(check==0) printf("\n%s doesn't exist\n\n",tab);
	else if(check==1){
		sprintf(temp, "rm -R ./table/%s", tab);
		system(temp);
		//copy all the table names to new temp excluding given table to delete;
		sprintf(temp, "grep -v \"%s\" ./table/table_list > ./table/temp ; mv ./table/temp ./table/table_list", tab);
        system(temp);
        printf("\n%s deleted\n\n",temp1);
		printf("-------------------------------");
	}
	else{
		printf("\nerror\nexiting...\n\n");
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
pushq $0x32
popq %r15
movq %r15, %rdi
callq 0x2240
movq %rax, %rbx
movq %r15, %rdi
callq 0x2240
movq %rax, %r14
movq %r15, %rdi
callq 0x2240
movq %rax, %r15
movq 0x614b(%rip), %rdi      # 0x9fd0
leaq 0x250b(%rip), %rsi      # 0x6397
callq 0x2180
movq 0x6148(%rip), %rdi      # 0x9fe0
movq %r15, %rsi
callq 0x459a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2170
movq %r15, %rdi
callq 0x315d
testl %eax, %eax
je 0x3f13
leaq 0x250b(%rip), %rsi      # 0x63c9
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2040
movq %r14, %rdi
callq 0x2130
leaq 0x2500(%rip), %rsi      # 0x63da
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2040
movq %r14, %rdi
callq 0x2130
leaq 0x2538(%rip), %rdi      # 0x642e
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2030
leaq 0x2c91(%rip), %rdi      # 0x6b98
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x2030
leaq 0x249b(%rip), %rdi      # 0x63b5
movq %r15, %rsi
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x2030
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/src/main.cpp
// Function: start_system()
void start_system(){
	system("clear");
	printf("\n\t\t\tWELCOME\n\n");
	printf("\t\tWelcome to myDB monitor \n\n");
	//cout<<"\t\tType h for help and q for quit\n\n";
	input();
}

// Assembly:
pushq %rax
leaq 0x2825(%rip), %rdi      # 0x687d
callq 0x2130
leaq 0x2c3b(%rip), %rdi      # 0x6c9f
callq 0x22c0
leaq 0x2c3c(%rip), %rdi      # 0x6cac
callq 0x22c0
popq %rax
jmp 0x3fe1
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/BPtree.h
// Function: BPtree::read_node(int, Btreenode&)
void read_node(int filenum, Btreenode & n)
    {
        char *str;
        str = (char *) malloc(sizeof(char) * BPTREE_MAX_FILE_PATH_SIZE);
        sprintf(str, "table/%s/tree/tree%d.dat", tablename, filenum);
        std::ifstream in_file(str, std::ifstream::in | std::ifstream::binary);
        free(str);
        in_file >> n;
        in_file.close();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x2240
movq %rax, %r15
addq $0x8, %r14
leaq 0x27d0(%rip), %rsi      # 0x6883
movq %rax, %rdi
movq %r14, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x2040
movq %rsp, %r14
pushq $0xc
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2340
movq %r15, %rdi
callq 0x2200
movq %r14, %rdi
movq %rbx, %rsi
callq 0x47a8
movq %rsp, %rdi
callq 0x2050
movq %rsp, %rdi
callq 0x2060
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2320
nop
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/BPtree.h
// Function: Btreenode::insert_key(int, int)
void insert_key(int key, int point)
    {
        int pos = get_next_key(key);
        keys.insert(keys.begin() + pos, key);
        if (leaf)
            pointers.insert(pointers.begin() + pos, point);
        else
            pointers.insert(pointers.begin() + pos + 1, point);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
leaq 0xc(%rsp), %r15
movl %esi, (%r15)
movl %edx, 0x8(%rsp)
callq 0x4118
leaq 0x20(%r14), %rdi
movslq %eax, %rbx
shlq $0x2, %rbx
movq 0x20(%r14), %rsi
addq %rbx, %rsi
movq %r15, %rdx
callq 0x4af8
leaq 0x8(%r14), %rdi
addq 0x8(%r14), %rbx
cmpb $0x1, (%r14)
je 0x41e5
addq $0x4, %rbx
leaq 0x8(%rsp), %rdx
movq %rbx, %rsi
callq 0x4af8
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/BPtree.h
// Function: BPtree::write_node(int, Btreenode)
void write_node(int filenum, Btreenode n)
    {
        char *str;
          str = (char *) malloc(sizeof(char) * BPTREE_MAX_FILE_PATH_SIZE);
          sprintf(str, "table/%s/tree/tree%d.dat", tablename,filenum);
          std::ofstream out_file(str, std::ofstream::binary |  std::ofstream::out | std::ofstream::trunc);
          free(str);
          out_file << n;
          out_file.close();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x2240
movq %rax, %r15
addq $0x8, %r14
leaq 0x265a(%rip), %rsi      # 0x6883
movq %rax, %rdi
movq %r14, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x2040
leaq 0x8(%rsp), %r14
pushq $0x34
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x21c0
movq %r15, %rdi
callq 0x2200
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4c64
leaq 0x8(%rsp), %rdi
callq 0x2260
leaq 0x8(%rsp), %rdi
callq 0x2290
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2290
movq %rbx, %rdi
callq 0x2320
nop
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/BPtree.h
// Function: BPtree::update_meta_data()
void update_meta_data()
    {
        char *str;
        str = (char *) malloc(sizeof(char) * BPTREE_MAX_FILE_PATH_SIZE);
        sprintf(str, "table/%s/tree/meta_tree.dat", tablename);
        std::ofstream out_file(str, std::ofstream::out | std::ofstream::trunc
                                        | std::ofstream::binary );
        out_file << files_till_now << " " << root_num;
        out_file.close();
        free(str);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rdi, %r14
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x2240
movq %rax, %rbx
leaq 0x8(%r14), %rdx
leaq 0x25c7(%rip), %rsi      # 0x68d0
movq %rax, %rdi
xorl %eax, %eax
callq 0x2040
movq %rsp, %r15
pushq $0x34
popq %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x21c0
movl (%r14), %esi
movq %r15, %rdi
callq 0x2310
leaq 0x27ad(%rip), %rsi      # 0x6ae3
movq %rax, %rdi
callq 0x2180
movl 0x4(%r14), %esi
movq %rax, %rdi
callq 0x2310
movq %rsp, %rdi
callq 0x2260
movq %rbx, %rdi
callq 0x2200
movq %rsp, %rdi
callq 0x2290
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2290
movq %rbx, %rdi
callq 0x2320
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/BPtree.h
// Function: Btreenode::operator=(Btreenode const&)
Btreenode & operator=(const Btreenode & n)
    {
        if (this != &n)
        {
            leaf = n.leaf;
            keys.assign(n.keys.begin(), n.keys.end());
            pointers.assign(n.pointers.begin(), n.pointers.end());
        }
        return *this;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq %rsi, %rdi
je 0x43b7
movq %rsi, %r14
movb (%rsi), %al
movb %al, (%rbx)
leaq 0x20(%rbx), %rdi
movq 0x20(%rsi), %rsi
movq 0x28(%r14), %rdx
callq 0x4dce
leaq 0x8(%rbx), %rdi
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
callq 0x4dce
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/BPtree.h
// Function: Btreenode::copy_first(Btreenode&, int)
void copy_first(Btreenode & node, int n)
    {
        keys.clear();
        pointers.clear();
        for (int i = 1; i < n; i++)
        {
            keys.push_back(node.get_key(i));
            pointers.push_back(node.get_pointer(i));
        }
        pointers.push_back(node.get_pointer(n));
        if (leaf)
        {
            keys.push_back(node.get_key(n));
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq 0x20(%rdi), %rax
cmpq %rax, 0x28(%rdi)
je 0x43e1
movq %rax, 0x28(%rdi)
movq 0x8(%rdi), %rax
cmpq %rax, 0x10(%rdi)
je 0x43ef
movq %rax, 0x10(%rdi)
leaq 0x20(%rdi), %r15
movq %rdi, 0x10(%rsp)
leaq 0x8(%rdi), %r12
movslq %edx, %rbp
pushq $0x1
popq %r14
leaq 0xc(%rsp), %r13
cmpq %rbp, %r14
jge 0x4442
movq 0x20(%rbx), %rax
movl -0x4(%rax,%r14,4), %eax
movl %eax, 0xc(%rsp)
movq %r15, %rdi
movq %r13, %rsi
callq 0x4f04
movq 0x8(%rbx), %rax
movl -0x4(%rax,%r14,4), %eax
movl %eax, 0xc(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x4f04
incq %r14
jmp 0x4408
movq 0x8(%rbx), %rax
movl -0x4(%rax,%rbp,4), %eax
leaq 0xc(%rsp), %rsi
movl %eax, (%rsi)
movq %r12, %rdi
callq 0x4f04
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
je 0x447a
movq 0x20(%rbx), %rax
movl -0x4(%rax,%rbp,4), %eax
leaq 0xc(%rsp), %rsi
movl %eax, (%rsi)
movq %r15, %rdi
callq 0x4f04
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/BPtree.h
// Function: Btreenode::copy_last(Btreenode&, int)
void copy_last(Btreenode & node, int n)
    {
        keys.clear();
        pointers.clear();
        int lim = node.num_pointers();
        for (int i = n + 1; i <= lim; i++)
        {
            pointers.push_back(node.get_pointer(i));
        }
        lim = node.num_keys();
        for (int i = n + 1; i <= lim; i++)
        {
            keys.push_back(node.get_key(i));
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r15
movq 0x20(%rdi), %rax
cmpq %rax, 0x28(%rdi)
je 0x44ac
movq %rax, 0x28(%r15)
movq 0x8(%r15), %rax
cmpq %rax, 0x10(%r15)
je 0x44ba
movq %rax, 0x10(%r15)
leaq 0x20(%r15), %rax
movq %rax, 0x10(%rsp)
addq $0x8, %r15
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
incl %edx
movslq %edx, %r14
shrq $0x2, %rax
movslq %eax, %rbp
leaq 0xc(%rsp), %r12
movq %r14, %r13
cmpq %rbp, %r13
jg 0x4505
movq 0x8(%rbx), %rax
movl -0x4(%rax,%r13,4), %eax
movl %eax, 0xc(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x4f04
incq %r13
jmp 0x44e3
movq 0x28(%rbx), %rax
subq 0x20(%rbx), %rax
shrq $0x2, %rax
movslq %eax, %r12
leaq 0x8(%rsp), %r15
movq 0x10(%rsp), %r13
cmpq %r12, %r14
jg 0x4540
movq 0x20(%rbx), %rax
movl -0x4(%rax,%r14,4), %eax
movl %eax, 0x8(%rsp)
movq %r13, %rdi
movq %r15, %rsi
callq 0x4f04
incq %r14
jmp 0x451e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/BPtree.h
// Function: operator>>(std::basic_ifstream<char, std::char_traits<char>>&, Btreenode&)
std::ifstream & operator>>(std::ifstream & is, Btreenode & en)
    {
        int ts;
        is >> en.leaf;
        is >> ts;
        en.keys.resize(ts);
        for (int i = 0; i < ts; i++)
        {
            is >> en.keys[i];
        }
        is >> ts;
        en.pointers.resize(ts);
        for (int i = 0; i < ts; i++)
        {
            is >> en.pointers[i];
        }
        is >> en.next_node;
        return is;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x2140
leaq 0xc(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2100
leaq 0x20(%r14), %r15
movslq (%r12), %rsi
movq %r15, %rdi
callq 0x487a
xorl %r12d, %r12d
xorl %r13d, %r13d
movslq 0xc(%rsp), %rax
cmpq %rax, %r13
jge 0x4807
movq (%r15), %rsi
addq %r12, %rsi
movq %rbx, %rdi
callq 0x2100
incq %r13
addq $0x4, %r12
jmp 0x47e6
leaq 0xc(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2100
leaq 0x8(%r14), %r15
movslq (%r12), %rsi
movq %r15, %rdi
callq 0x487a
xorl %r12d, %r12d
xorl %r13d, %r13d
movslq 0xc(%rsp), %rax
cmpq %rax, %r13
jge 0x484e
movq (%r15), %rsi
addq %r12, %rsi
movq %rbx, %rdi
callq 0x2100
incq %r13
addq $0x4, %r12
jmp 0x482d
addq $0x38, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2100
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/pawan231[P]MiniDataBase/include/BPtree.h
// Function: operator<<(std::basic_ofstream<char, std::char_traits<char>>&, Btreenode const&)
std::ofstream & operator<<(std::ofstream & os, const Btreenode & en)
    {
        os << en.leaf << " ";
        os << (int) en.keys.size() << " ";
        for (unsigned int i = 0; i < en.keys.size(); i++)
        {
            os << en.keys[i] << " ";
        }
        os << (int) en.pointers.size() << " ";
        for (unsigned int i = 0; i < en.pointers.size(); i++)
        {
            os << en.pointers[i] << " ";
        }
        os << en.next_node;
        return os;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movzbl (%rsi), %esi
callq 0x22f0
leaq 0x1e62(%rip), %r15      # 0x6ae3
movq %rax, %rdi
movq %r15, %rsi
callq 0x2180
movq 0x28(%r14), %rsi
subq 0x20(%r14), %rsi
shrq $0x2, %rsi
movq %rbx, %rdi
callq 0x2310
movq %rax, %rdi
movq %r15, %rsi
callq 0x2180
xorl %eax, %eax
movl %eax, %r12d
movq 0x20(%r14), %rax
movq 0x28(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r12, %rcx
jbe 0x4ce2
movl (%rax,%r12,4), %esi
movq %rbx, %rdi
callq 0x2310
movq %rax, %rdi
movq %r15, %rsi
callq 0x2180
leal 0x1(%r12), %eax
jmp 0x4cad
movq 0x10(%r14), %rsi
subq 0x8(%r14), %rsi
shrq $0x2, %rsi
movq %rbx, %rdi
callq 0x2310
leaq 0x1de6(%rip), %r15      # 0x6ae3
movq %rax, %rdi
movq %r15, %rsi
callq 0x2180
xorl %eax, %eax
movl %eax, %r12d
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r12, %rcx
jbe 0x4d3f
movl (%rax,%r12,4), %esi
movq %rbx, %rdi
callq 0x2310
movq %rax, %rdi
movq %r15, %rsi
callq 0x2180
leal 0x1(%r12), %eax
jmp 0x4d0a
movl 0x38(%r14), %esi
movq %rbx, %rdi
callq 0x2310
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/ocornoc[P]crolol/tests/basic_arith.cpp
// Function: main
int main()
{
	bool success = true;
	
	success &= add_test();
	success &= sub_test();
	success &= mul_test();
	success &= div_test();
	success &= pow_test();
	success &= mod_test();
	
	return success ? EXIT_SUCCESS : EXIT_FAILURE;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
callq 0x5c64
movl %eax, %ebx
callq 0x5e34
movl %eax, %ebp
andb %bl, %bpl
callq 0x6004
movl %eax, %ebx
callq 0x61d4
movl %eax, %r14d
andb %bl, %r14b
andb %bpl, %r14b
callq 0x63a4
movl %eax, %ebx
callq 0x6574
andb %bl, %al
andb %r14b, %al
xorb $0x1, %al
movzbl %al, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/ocornoc[P]crolol/src/num.cpp
// Function: crolol::num::operator+=(crolol::num)
num& num::operator+=(num rhs)
{
	// If the sign of lhs and rhs aren't the same, we can always add.
	// Same if either args are 0.
	if ((bi < 0) != (rhs.bi < 0) || bi == 0 || rhs.bi == 0)
		bi += rhs.bi;
	else if (bi < 0) {
		if (num_min - bi > rhs.bi)
			bi = num_min;
		else bi += rhs.bi;
	} else {
		if (num_max - bi < rhs.bi)
			bi = num_max;
		else bi += rhs.bi;
	}
	
	return *this;
}

// Assembly:
movq %rdi, %rax
movq (%rdi), %rcx
movq %rcx, %rdx
xorq %rsi, %rdx
js 0x6a14
testq %rcx, %rcx
setne %dl
testq %rsi, %rsi
setne %dil
testb %dl, %dil
jne 0x6a19
addq %rsi, %rcx
jmp 0x6a4e
leaq (%rcx,%rsi), %rdx
movabsq $0x7fffffffffffffff, %rdi # imm = 0x7FFFFFFFFFFFFFFF
testq %rcx, %rcx
js 0x6a3b
movq %rdi, %r8
subq %rcx, %r8
cmpq %rsi, %r8
cmovlq %rdi, %rdx
jmp 0x6a4b
incq %rdi
movq %rdi, %r8
subq %rcx, %r8
cmpq %rsi, %r8
cmovgq %rdi, %rdx
movq %rdx, %rcx
movq %rcx, (%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O2/ocornoc[P]crolol/src/num.cpp
// Function: crolol::num::operator-=(crolol::num)
num& num::operator-=(num rhs)
{
	// If sgn(lhs) == sgn(rhs) or rhs or lhs == 0, we can subtract.
	// EXCEPT if rhs == num_min, as that would allow 0-(-2^63)=2^63.
	if (((bi < 0) == (rhs.bi < 0)) ||
		((rhs.bi == 0 || bi == 0) && rhs.bi != num_min))
		bi -= rhs.bi;
	else if (rhs.bi == num_min) *this += num::max();
	else *this += -rhs.bi;
	
	return *this;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rcx
movq %rcx, %rax
xorq %rsi, %rax
setns %al
testq %rsi, %rsi
sete %dl
orb %al, %dl
jne 0x6a81
testq %rcx, %rcx
setne %dl
movq %rsi, %rax
negq %rax
seto %dil
orb %dl, %dil
jne 0x6a89
subq %rsi, %rcx
movq %rcx, (%rbx)
jmp 0x6aae
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
cmpq %rcx, %rsi
jne 0x6aa3
decq %rcx
movq %rbx, %rdi
movq %rcx, %rsi
jmp 0x6aa9
movq %rbx, %rdi
movq %rax, %rsi
callq 0x69f4
movq %rbx, %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/ocornoc[P]crolol/src/num.cpp
// Function: crolol::num::operator*=(crolol::num)
num& num::operator*=(num rhs)
{
	const backend::saferet result = backend::multiply(bi, rhs.bi);
	
	switch (result.flow) {
		case backend::badarg: throw std::invalid_argument("Bad mult");
		case backend::underflow: *this = num::min(); return *this;
		case backend::overflow: *this = num::max(); return *this;
		default: *this = result.val; return *this;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
movq (%rdi), %rdi
callq 0x6f48
cmpl $0x1, %edx
je 0x6ae1
cmpl $0x2, %edx
je 0x6ae4
cmpl $0x3, %edx
je 0x6af2
movq %rax, %r14
jmp 0x6ae4
incq %r14
movq %r14, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x10
popq %rdi
callq 0x4180
movq %rax, %rbx
leaq 0xe660(%rip), %rsi      # 0x15164
movq %rax, %rdi
callq 0x4570
movq 0x1d4bd(%rip), %rsi     # 0x23fd0
movq 0x1d4a6(%rip), %rdx     # 0x23fc0
movq %rbx, %rdi
callq 0x4510
movq %rax, %r14
movq %rbx, %rdi
callq 0x4280
movq %r14, %rdi
callq 0x4540
nop