LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/MITRECND[P]snugglefish/src/file.cpp
// Function: snugglefish::file::write(unsigned char*, unsigned long)
bool file::write(uint8_t * data, size_t length){
    if (this->readonly){
        throw runtime_error("Write command on read-only file");
    }

    if((this->bufferused + (length)) > this->buffersize) {
        this->flush();

        if (length < this->buffersize){
            memcpy(this->buffer, data, length);
            this->bufferused = length;
        }else{  
            //Data being passed in is larger than buffer, write out directly
            //Seek to the end of the file first
            lseek(this->fd, 0, SEEK_END);
            this->real_write(this->fd, data, length);
        }
    }else{ // just buffer it up
        memcpy(this->buffer + this->bufferused, data, length);
        this->bufferused += length;
    }

    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpb $0x1, 0x8(%rdi)
je 0x99d0
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x30(%rdi), %rdi
leaq (%rdi,%rdx), %rax
cmpq 0x28(%r14), %rax
jbe 0x998c
movq %r14, %rdi
callq 0x9832
cmpq %rbx, 0x28(%r14)
jbe 0x99a1
movq 0x20(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x5220
movq %rbx, 0x30(%r14)
jmp 0x99c3
addq 0x20(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x5220
addq %rbx, 0x30(%r14)
jmp 0x99c3
movl 0xc(%r14), %edi
xorl %esi, %esi
movl $0x2, %edx
callq 0x5540
movl 0xc(%r14), %esi
movq %r14, %rdi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x987c
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x5110
movq %rax, %rbx
leaq 0x1e53(%rip), %rsi      # 0xb837
movq %rax, %rdi
callq 0x50d0
movq 0x55fd(%rip), %rsi      # 0xeff0
movq 0x55ae(%rip), %rdx      # 0xefa8
movq %rbx, %rdi
callq 0x54b0
movq %rax, %r14
movq %rbx, %rdi
callq 0x51d0
movq %r14, %rdi
callq 0x54e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/MITRECND[P]snugglefish/src/file.cpp
// Function: snugglefish::file::write_at(int, unsigned char*, unsigned long)
bool file::write_at(int32_t location, uint8_t * data, size_t length){
    if (this->readonly){
        throw runtime_error("Write command on reaodnly file");
    }

    //Flush before writing at locations
    flush();
    lseek(this->fd, location, SEEK_SET);
    this->real_write(this->fd, data, length * sizeof(uint8_t));

    return true;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpb $0x1, 0x8(%rdi)
je 0x9a63
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %r12d
movq %rdi, %r15
callq 0x9832
movl 0xc(%r15), %edi
movslq %r12d, %rsi
xorl %edx, %edx
callq 0x5540
movl 0xc(%r15), %esi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x987c
movb $0x1, %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x5110
movq %rax, %rbx
leaq 0x1de0(%rip), %rsi      # 0xb857
movq %rax, %rdi
callq 0x50d0
movq 0x556a(%rip), %rsi      # 0xeff0
movq 0x551b(%rip), %rdx      # 0xefa8
movq %rbx, %rdi
callq 0x54b0
movq %rax, %r14
movq %rbx, %rdi
callq 0x51d0
movq %r14, %rdi
callq 0x54e0
// File: /workspace/github_cpp_makefile_star2_O1/MITRECND[P]snugglefish/src/indexSet.cpp
// Function: snugglefish::indexSet::~indexSet()
indexSet::~indexSet(){
    if (this->indexFile){
        this->indexFile->close();
        delete this->indexFile;
    }

    if (this->nGramFile){
        this->nGramFile->close();
        delete this->nGramFile;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x9b90
callq 0x9398
movq (%rbx), %r14
testq %r14, %r14
je 0x9b90
movq %r14, %rdi
callq 0x9344
movl $0x40, %esi
movq %r14, %rdi
callq 0x5290
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x9bbc
callq 0x9398
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x9bbc
movq %r14, %rdi
callq 0x9344
movl $0x40, %esi
movq %r14, %rdi
callq 0x5290
movq 0x28(%rbx), %rdi
addq $0x38, %rbx
cmpq %rbx, %rdi
je 0x9bd8
movq (%rbx), %rsi
incq %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x5290
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rdi
callq 0x7002
nop
// File: /workspace/github_cpp_makefile_star2_O1/MITRECND[P]snugglefish/src/indexSet.cpp
// Function: snugglefish::indexSet::close()
void indexSet::close(){
    if (this->indexFile){
        this->indexFile->close();
        delete this->indexFile;
        this->indexFile = NULL;
    }
    if (this->nGramFile){
        this->nGramFile->close();
        delete this->nGramFile;
        this->nGramFile = NULL;
    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x9c21
callq 0x9398
movq (%rbx), %r14
testq %r14, %r14
je 0x9c1a
movq %r14, %rdi
callq 0x9344
movl $0x40, %esi
movq %r14, %rdi
callq 0x5290
movq $0x0, (%rbx)
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x9c55
callq 0x9398
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x9c4d
movq %r14, %rdi
callq 0x9344
movl $0x40, %esi
movq %r14, %rdi
callq 0x5290
movq $0x0, 0x8(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/MITRECND[P]snugglefish/src/indexSet.cpp
// Function: snugglefish::indexSet::addNGrams(unsigned int, std::__cxx11::list<unsigned int, std::allocator<unsigned int>>*)
void indexSet::addNGrams(uint32_t ngram, list<ngram_t_fidtype>* files){
    if (!writable || !nGramFile){
        //TODO
    }

    uint32_t size = files->size();
    uint64_t off =  offset;
    uint32_t difference = sizeof(ngram_t_fidtype) * size;

    if (!size){
        off = 0;
    }

    //Pre-emptively add the index information, i.e, offset, numFiles
    addIndexData(off, size);

    while(size > 0){
        nGramFile->write((uint8_t*) (&(files->front())), sizeof(ngram_t_fidtype));
        files->pop_front();
        size--;
    } 

    offset =  offset + difference;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rdi, %rbx
movq 0x10(%rdx), %r14
testl %r14d, %r14d
je 0xa185
movq 0x60(%rbx), %rsi
jmp 0xa187
xorl %esi, %esi
movq %rbx, %rdi
movl %r14d, %edx
callq 0xa11c
testl %r14d, %r14d
je 0xa1d0
movl %r14d, %r13d
movq 0x8(%rbx), %rdi
movq (%r15), %rsi
addq $0x10, %rsi
movl $0x4, %edx
callq 0x9942
movq (%r15), %r12
decq 0x10(%r15)
movq %r12, %rdi
callq 0x5450
movl $0x18, %esi
movq %r12, %rdi
callq 0x5290
decl %r13d
jne 0xa19a
shll $0x2, %r14d
addq %r14, 0x60(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/MITRECND[P]snugglefish/src/indexSet.cpp
// Function: snugglefish::indexSet::getNGrams(unsigned long, unsigned long*)
ngram_t_fidtype* indexSet::getNGrams(uint64_t ngram, size_t* count){
    index_entry* index_table = (index_entry*) (indexEntries + (ngram * (INDEX_ENTRY_SIZE)));
    *count = index_table->num_files;
    ngram_t_fidtype* ptr = (ngram_t_fidtype*) (nGramMap + index_table->offset);

    return ptr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x20(%rdi), %rcx
leaq (%rsi,%rsi,2), %rsi
movl 0x8(%rcx,%rsi,4), %eax
movq %rax, (%rdx)
movq 0x18(%rdi), %rax
addq (%rcx,%rsi,4), %rax
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/MITRECND[P]snugglefish/src/smFile.cpp
// Function: snugglefish::smFile::create(unsigned short)
void smFile::create(ngram_t_fnlength maxfnLength){
    if (this->exists()){
        cerr << "Unable to create file: " << this->filename << " -- Already Exists" << endl;
        throw runtime_error("Creating File");
    }

    //Create the File
    file::create();
    
    this->endian_check = ENDIAN_CHECK;
    this->version = VERSION;
    this->maxFileNameLength = maxfnLength;
    
    ngram_t_indexcount four_byte_zero = this->numIndexFiles = 0;
    ngram_t_fidtype eight_byte_zero = this->numFiles = 0;

    //Write standard header
    write((uint8_t*) (&(this->endian_check)), ENDIAN_CHECK_FIELD);
    write((uint8_t*) (&(this->version)), VERSION_FIELD);
    write((uint8_t*) (&(this->ngramLength)), NGRAM_SIZE_FIELD);
    write((uint8_t*) (&(this->maxFileNameLength)), MAX_FILENAME_LENGTH_FIELD);
    write((uint8_t*) &four_byte_zero, NUM_INDEX_FILES_FIELD);
    write((uint8_t*) &eight_byte_zero, NUM_FILES_FIELD);

    fileBuffer = (char*) malloc((maxFileNameLength + 1)* sizeof(char));

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
callq 0x9af0
testb %al, %al
jne 0xa3ad
movq %rbx, %rdi
movl $0x1ed, %esi            # imm = 0x1ED
callq 0x94a6
leaq 0x40(%rbx), %rsi
movl $0x1234567, 0x40(%rbx)  # imm = 0x1234567
leaq 0x44(%rbx), %r13
movb $0x1, 0x44(%rbx)
leaq 0x46(%rbx), %r12
movw %r14w, 0x46(%rbx)
xorl %eax, %eax
movl %eax, 0x48(%rbx)
leaq -0x30(%rbp), %r15
movl %eax, (%r15)
movl %eax, 0x4c(%rbx)
leaq -0x2c(%rbp), %r14
movl %eax, (%r14)
movl $0x4, %edx
movq %rbx, %rdi
callq 0x9942
movl $0x1, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x9942
leaq 0x45(%rbx), %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x9942
movl $0x2, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x9942
movl $0x4, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x9942
movl $0x4, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9942
movzwl 0x46(%rbx), %edi
incq %rdi
callq 0x5360
movq %rax, 0x50(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4c34(%rip), %r14      # 0xefe8
leaq 0x1532(%rip), %rsi      # 0xb8ed
movl $0x17, %edx
movq %r14, %rdi
callq 0x52c0
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x5270
movq %rax, %rbx
leaq 0x1528(%rip), %rsi      # 0xb905
movl $0x12, %edx
movq %rax, %rdi
callq 0x52c0
movq %rbx, %rdi
callq 0x5100
movl $0x10, %edi
callq 0x5110
movq %rax, %rbx
leaq 0x1372(%rip), %rsi      # 0xb778
movq %rax, %rdi
callq 0x50d0
movq 0x4bdb(%rip), %rsi      # 0xeff0
movq 0x4b8c(%rip), %rdx      # 0xefa8
movq %rbx, %rdi
callq 0x54b0
movq %rax, %r14
movq %rbx, %rdi
callq 0x51d0
movq %r14, %rdi
callq 0x54e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/MITRECND[P]snugglefish/src/smFile.cpp
// Function: snugglefish::smFile::open(char)
void smFile::open(char readwrite){
    file::open(readwrite);

    ngram_t_size ngramL;

    read((uint8_t*) (&(this->endian_check)), ENDIAN_CHECK_FIELD);

    if (this->endian_check != ENDIAN_CHECK){
       throw runtime_error("Endian Mismatch"); 
    }

    read((uint8_t*) (&(this->version)), VERSION_FIELD);
    read((uint8_t*) (&ngramL), NGRAM_SIZE_FIELD);

    if (this->ngramLength != ngramL){
       throw runtime_error("N Gram Length Mismatch"); 
    }  

    read((uint8_t*) (&(this->maxFileNameLength)), MAX_FILENAME_LENGTH_FIELD);
    read((uint8_t*) (&(this->numIndexFiles)), NUM_INDEX_FILES_FIELD);
    read((uint8_t*) (&(this->numFiles)), NUM_FILES_FIELD);

    fileBuffer = (char*) malloc((maxFileNameLength + 1)* sizeof(char));

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x958e
leaq 0x40(%rbx), %rsi
movl $0x4, %edx
movq %rbx, %rdi
callq 0x9aa8
cmpl $0x1234567, 0x40(%rbx)  # imm = 0x1234567
jne 0xa4de
leaq 0x44(%rbx), %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x9aa8
leaq -0x11(%rbp), %r14
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9aa8
movb 0x45(%rbx), %al
cmpb (%r14), %al
jne 0xa4fc
leaq 0x46(%rbx), %rsi
movl $0x2, %edx
movq %rbx, %rdi
callq 0x9aa8
leaq 0x48(%rbx), %rsi
movl $0x4, %edx
movq %rbx, %rdi
callq 0x9aa8
leaq 0x4c(%rbx), %rsi
movl $0x4, %edx
movq %rbx, %rdi
callq 0x9aa8
movzwl 0x46(%rbx), %edi
incq %rdi
callq 0x5360
movq %rax, 0x50(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0x5110
movq %rax, %rbx
leaq 0x1426(%rip), %rsi      # 0xb918
movq %rax, %rdi
callq 0x50d0
jmp 0xa518
movl $0x10, %edi
callq 0x5110
movq %rax, %rbx
leaq 0x1418(%rip), %rsi      # 0xb928
movq %rax, %rdi
callq 0x50d0
movq 0x4ad1(%rip), %rsi      # 0xeff0
movq 0x4a82(%rip), %rdx      # 0xefa8
movq %rbx, %rdi
callq 0x54b0
jmp 0xa530
movq %rax, %r14
movq %rbx, %rdi
callq 0x51d0
movq %r14, %rdi
callq 0x54e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/MITRECND[P]snugglefish/src/smFile.cpp
// Function: snugglefish::smFile::addFileId(char const*)
void smFile::addFileId(const char * fileName){
    strncpy(fileBuffer, fileName, maxFileNameLength);
    write((uint8_t*) fileBuffer, maxFileNameLength * sizeof(char));

    numFiles++;
    //Writing of the numFiles to the file is delayed until a flush
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x50(%rdi), %rdi
movzwl 0x46(%rbx), %edx
callq 0x5120
movq 0x50(%rbx), %rsi
movzwl 0x46(%rbx), %edx
movq %rbx, %rdi
callq 0x9942
incl 0x4c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH17_SpecializedLibraryFacilities/examples/manips11.cc
// Function: main
int main()
{
	double pi = 3.14;
	cout << pi << " " 
#ifdef HEX_MANIPS
	     << hexfloat << pi    // no workaround for this missing manipulator
#endif
	     << defaultfloat << " " << pi << endl;
	
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x2dee(%rip), %rdi      # 0x3fd8
movsd 0xe16(%rip), %xmm0      # 0x2008
callq 0x1090
movq %rax, %rbx
leaq 0xe0f(%rip), %r14       # 0x2010
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1070
movq (%rbx), %rax
movq -0x18(%rax), %rax
andl $0xfffffefb, 0x18(%rbx,%rax) # imm = 0xFFFFFEFB
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1070
movq %rbx, %rdi
movsd 0xdcd(%rip), %xmm0      # 0x2008
callq 0x1090
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/emilisb[P]OOP-4/src/main.cpp
// Function: main
int main(int argc, const char * argv[]) {
    for (size_t i = 10000; i <= 100000000; i *= 10) {
        benchmarkInsert(i);
        benchmarkResize(i);
    }

    vector<TestObject> numbers;
    
    TestObject object("hello");
    for (int i = 0; i < 10; i++) {
        numbers.push_back(object);
    }
    
    numbers.erase(numbers.begin(), numbers.begin() + 1);
    
    for (int i = 0; i < numbers.size(); i++) {
        std::cout << numbers.at(i)._value << std::endl;
    }

    std::cout << numbers.size() << std::endl;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movl $0x2710, %ebx           # imm = 0x2710
movq %rbx, %rdi
callq 0x230c
movq %rbx, %rdi
callq 0x25a0
leaq (%rbx,%rbx), %rax
leaq (%rax,%rax,4), %rax
cmpq $0x989681, %rbx         # imm = 0x989681
movq %rax, %rbx
jb 0x2831
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
xorl %edi, %edi
callq 0x2130
movq %rax, 0x10(%rsp)
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x183f(%rip), %rsi      # 0x40b7
leaq 0x183d(%rip), %rdx      # 0x40bc
leaq 0x20(%rsp), %rdi
callq 0x2f60
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x2a14
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x28af
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2140
movl $0xa, %ebp
movq %rsp, %rbx
leaq 0x40(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2aa0
decl %ebp
jne 0x28bc
movq %rsp, %rdi
movq 0x10(%rdi), %rsi
leaq 0x20(%rsi), %rdx
callq 0x2af2
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x2940
xorl %ebx, %ebx
movq %rsp, %r14
movq 0x36d8(%rip), %r15      # 0x5fc8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2b86
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x2150
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
incq %rbx
movq (%rsp), %rsi
cmpq %rbx, %rsi
ja 0x28f0
movq 0x3681(%rip), %rdi      # 0x5fc8
callq 0x20b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x40(%rsp), %rdi
callq 0x2be8
movq %rsp, %rdi
callq 0x2c64
xorl %eax, %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x29c9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2140
jmp 0x29c9
movq %rax, %rbx
jmp 0x29c9
jmp 0x29bc
jmp 0x29bc
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x2be8
movq %rsp, %rdi
callq 0x2c64
movq %rbx, %rdi
callq 0x21a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/emilisb[P]OOP-4/src/vector.h
// Function: vector<TestObject, std::allocator<TestObject>>::push_back(TestObject const&)
void push_back(const T& item) {
        if (size() == capacity()) {
            reallocate(capacity() + 1);
        }
        _allocator.construct(end(), item);
        ++_size;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rsi
cmpq %rsi, (%rdi)
jne 0x2abe
incq %rsi
movq %rbx, %rdi
callq 0x2ff0
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
shlq $0x5, %rax
leaq (%rcx,%rax), %rdi
addq %rcx, %rax
addq $0x10, %rax
movq %rax, -0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
callq 0x2cc2
incq (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/emilisb[P]OOP-4/src/vector.h
// Function: vector<TestObject, std::allocator<TestObject>>::erase(TestObject const*, TestObject const*)
iterator erase(const_iterator first, const_iterator last) {
        const difference_type startIndex = first - begin();
        const difference_type endIndex = last - begin();
        
        for (difference_type i = 0; i < endIndex - startIndex; i++) {
            _allocator.destroy(&_data[startIndex + i]);
            _allocator.construct(&_data[startIndex + i], _data[endIndex + i]);
        }
        
        _size -= endIndex - startIndex;
        iterator it = &_data[startIndex];
        
        return it;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdi), %rax
subq %rax, %rbx
movq %rbx, %r12
sarq $0x5, %r12
subq %rax, %r15
movq %r15, %r13
sarq $0x5, %r13
subq %r12, %r13
jle 0x2b6c
shlq $0x5, %r12
addq $0x8, %r15
movq %r13, %rbp
movq 0x10(%r14), %rdi
addq %r12, %rdi
callq 0x2be8
movq 0x10(%r14), %rax
leaq (%rax,%r12), %rdi
leaq (%rax,%r12), %rcx
addq $0x10, %rcx
movq %rcx, -0x10(%rcx)
movq -0x8(%rax,%r15), %rsi
movq (%rax,%r15), %rdx
addq %rsi, %rdx
callq 0x2cc2
addq $0x20, %r12
addq $0x20, %r15
decq %rbp
jne 0x2b2e
subq %r13, (%r14)
addq 0x10(%r14), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/emilisb[P]OOP-4/src/vector.h
// Function: vector<TestObject, std::allocator<TestObject>>::~vector()
~vector() {
        // Make sure our data is not nullptr (used in unit tests to prevent double deconstruction)
        if (_data != nullptr) {
            for (size_type i = 0; i < size(); i++) {
                _allocator.destroy(&_data[i]);
            }
            _allocator.deallocate(_data, capacity());
            _data = nullptr;
        }
    }

// Assembly:
cmpq $0x0, 0x10(%rdi)
je 0x2cb5
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x2c97
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x10(%rbx), %rdi
addq %r14, %rdi
callq 0x2be8
incq %r15
addq $0x20, %r14
cmpq (%rbx), %r15
jb 0x2c7f
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdi
shlq $0x5, %rsi
callq 0x2140
movq $0x0, 0x10(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/emilisb[P]OOP-4/src/vector.h
// Function: vector<TestObject, std::allocator<TestObject>>::reallocate(unsigned long)
void reallocate(size_type minSize) {
        const size_type newCapacity = calculateGrowth(minSize);

        T* newData = _allocator.allocate(newCapacity);
        for (size_type i = 0; i < _size; i++) {
            _allocator.construct(&newData[i], std::move(_data[i]));
            _allocator.destroy(&_data[i]);
        }
        _allocator.deallocate(_data, capacity());

        _data = newData;
        _capacity = newCapacity;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
movq %rax, %rcx
shrq %rcx
addq %rax, %rcx
jb 0x305d
movq %rax, %xmm0
punpckldq 0x1005(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x100d(%rip), %xmm0     # 0x4030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x1009(%rip), %xmm1     # 0x4040
cvttsd2si %xmm1, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0xffd(%rip), %xmm1      # 0x4048
cvttsd2si %xmm1, %rdx
andq %rcx, %rdx
orq %rax, %rdx
cmpq %rbx, %rdx
cmovaq %rdx, %rbx
leaq 0x18(%r14), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x2f44
movq %rax, %r15
cmpq $0x0, (%r14)
je 0x30b7
xorl %r12d, %r12d
xorl %r13d, %r13d
leaq (%r15,%r12), %rdi
movq 0x10(%r14), %rax
leaq (%r15,%r12), %rcx
addq $0x10, %rcx
movq %rcx, (%r15,%r12)
movq (%rax,%r12), %rsi
movq 0x8(%rax,%r12), %rdx
addq %rsi, %rdx
callq 0x2cc2
movq 0x10(%r14), %rdi
addq %r12, %rdi
callq 0x2be8
incq %r13
addq $0x20, %r12
cmpq (%r14), %r13
jb 0x307a
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdi
shlq $0x5, %rsi
callq 0x2140
movq %r15, 0x10(%r14)
movq %rbx, 0x8(%r14)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/support.cpp
// Function: Support::estimate() const
double Support::estimate() const
{
    if ( pmin < Ratio / n ) // const
    {
        double result = 0.0;
        for ( const auto & pair : fin )
                result += getCoeff(pair.first) * pair.second;
        return result;
    }
    else
        return estimate_plug();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movsd 0x18(%rdi), %xmm0
cvtsi2sdl 0x20(%rdi), %xmm1
divsd %xmm1, %xmm0
ucomisd 0x8(%rdi), %xmm0
movq 0x28(%rdi), %r14
movq 0x30(%rdi), %r15
jbe 0x24bd
cmpq %r15, %r14
je 0x24de
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
movl (%r14), %esi
movq %rbx, %rdi
callq 0x24ec
xorps %xmm1, %xmm1
cvtsi2sdl 0x4(%r14), %xmm1
mulsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
addq $0x8, %r14
cmpq %r15, %r14
jne 0x247e
jmp 0x24e2
cmpq %r15, %r14
je 0x24de
xorpd %xmm0, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x4(%r14), %xmm1
addsd %xmm1, %xmm0
addq $0x8, %r14
cmpq %r15, %r14
jne 0x24c6
jmp 0x24e2
xorpd %xmm0, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/support.cpp
// Function: Support::getCoeff(int) const
double Support::getCoeff( int N ) const
{
    if ( N == 0 ) return 0;
    if ( N > L ) return 1;

    double A = ( Ratio + n*pmin ) / ( Ratio - n*pmin );
    ChebMore cheb(L, 1, -A); // polynomial of cos L arccos(t-A)
    std::vector<double> a = cheb.expand(); // Expand: cos L arccos(x-A)=sum_i a[i]*x^i
    double amp = cheb.evaluate(0); // cos L arccos(-A)

    double result = -a[N]/amp;
    double s = 2 / ( Ratio - n * pmin );
    for ( int i = 1; i <= N; ++i )
        result *= i * s;

    return (1+result);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
testl %esi, %esi
je 0x2512
movl %esi, %ebx
movq %rdi, %r14
movl 0x10(%rdi), %eax
cmpl %esi, %eax
jge 0x251b
movsd 0x1afb(%rip), %xmm4     # 0x4008
jmp 0x260d
xorpd %xmm4, %xmm4
jmp 0x260d
cvtsi2sdl 0x20(%r14), %xmm0
movsd 0x18(%r14), %xmm1
mulsd 0x8(%r14), %xmm0
movapd %xmm0, %xmm2
addsd %xmm1, %xmm2
subsd %xmm0, %xmm1
xorpd 0x1aef(%rip), %xmm2     # 0x4030
divsd %xmm1, %xmm2
leaq 0x484c(%rip), %rcx      # 0x6d98
leaq 0x30(%rsp), %r15
movq %rcx, (%r15)
movl %eax, 0x8(%r15)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x10(%r15)
movsd %xmm2, 0x18(%r15)
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x3548
xorpd %xmm0, %xmm0
movq %r15, %rdi
callq 0x3698
movslq %ebx, %rax
movq 0x8(%rsp), %rdi
movsd (%rdi,%rax,8), %xmm4
xorpd 0x1a96(%rip), %xmm4     # 0x4030
divsd %xmm0, %xmm4
testl %ebx, %ebx
jle 0x25e7
xorps %xmm0, %xmm0
cvtsi2sdl 0x20(%r14), %xmm0
movsd 0x18(%r14), %xmm1
mulsd 0x8(%r14), %xmm0
subsd %xmm0, %xmm1
movsd 0x1a4d(%rip), %xmm0     # 0x4010
divsd %xmm1, %xmm0
movsd 0x1a39(%rip), %xmm1     # 0x4008
movapd %xmm1, %xmm2
movapd %xmm0, %xmm3
mulsd %xmm2, %xmm3
mulsd %xmm3, %xmm4
addsd %xmm1, %xmm2
decl %ebx
jne 0x25d3
testq %rdi, %rdi
je 0x2605
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
movapd %xmm4, 0x20(%rsp)
callq 0x2190
movapd 0x20(%rsp), %xmm4
addsd 0x19fb(%rip), %xmm4     # 0x4008
movapd %xmm4, %xmm0
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2635
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2190
movq %rbx, %rdi
callq 0x2260
nop
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/support.cpp
// Function: Support::estimate_CL1() const
double Support::estimate_CL1() const // for small coefficient of variation
{
    double N1 = estimate_TG();
    double C = coverage_TG();

    double sum = 0.0;
    for ( const auto & pair : fin )
        sum += pair.first*( pair.first-1 )*pair.second;
    double gamma_sq = std::max( 1.0*estimate_TG()*sum/n/(n-1) - 1 , 0.0 );
    return N1 + n*(1-C)/C*gamma_sq;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x26a4
movq 0x28(%rbx), %rax
movq 0x30(%rbx), %rcx
xorpd %xmm2, %xmm2
xorpd %xmm3, %xmm3
cmpq %rcx, %rax
je 0x2866
movq %rax, %rsi
leaq 0x8(%rsi), %rdx
cmpl $0x1, (%rsi)
jne 0x285c
xorps %xmm3, %xmm3
cvtsi2sdl 0x4(%rsi), %xmm3
je 0x2866
movq %rdx, %rsi
cmpq %rcx, %rdx
jne 0x284b
movl 0x20(%rbx), %ecx
movq 0x30(%rbx), %rdx
cmpq %rdx, %rax
je 0x2896
xorpd %xmm2, %xmm2
movl (%rax), %esi
leal -0x1(%rsi), %edi
imull %esi, %edi
imull 0x4(%rax), %edi
xorps %xmm1, %xmm1
cvtsi2sd %edi, %xmm1
addsd %xmm1, %xmm2
addq $0x8, %rax
cmpq %rdx, %rax
jne 0x2876
cvtsi2sd %ecx, %xmm4
divsd %xmm4, %xmm3
movsd 0x1762(%rip), %xmm1     # 0x4008
movapd %xmm1, %xmm5
subsd %xmm3, %xmm5
mulsd %xmm0, %xmm2
decl %ecx
xorps %xmm3, %xmm3
cvtsi2sd %ecx, %xmm3
divsd %xmm4, %xmm2
divsd %xmm3, %xmm2
addsd 0x174d(%rip), %xmm2     # 0x4018
xorpd %xmm3, %xmm3
maxsd %xmm2, %xmm3
subsd %xmm5, %xmm1
mulsd %xmm4, %xmm1
divsd %xmm5, %xmm1
mulsd %xmm3, %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/support.cpp
// Function: Support::estimate_CL2() const
double Support::estimate_CL2() const // for large coefficient of variation
{
    double N1 = estimate_TG();
    double C = coverage_TG();
    
    double sum = 0.0;
    for ( const auto & pair : fin )
        sum += pair.first*( pair.first-1 )*pair.second;
    double gamma_sq = std::max( 1.0*estimate_TG()*sum/n/(n-1) - 1 , 0.0 );
    double gamma_sq2 = std::max( gamma_sq*( 1 + n*(1-C)*sum/n/(n-1)/C ), 0.0 );
	
    return N1 + n*(1-C)/C*gamma_sq2;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x26a4
movq 0x28(%rbx), %rax
movq 0x30(%rbx), %rcx
xorpd %xmm2, %xmm2
xorpd %xmm1, %xmm1
cmpq %rcx, %rax
je 0x292a
movq %rax, %rsi
leaq 0x8(%rsi), %rdx
cmpl $0x1, (%rsi)
jne 0x2920
xorps %xmm1, %xmm1
cvtsi2sdl 0x4(%rsi), %xmm1
je 0x292a
movq %rdx, %rsi
cmpq %rcx, %rdx
jne 0x290f
movl 0x20(%rbx), %ecx
movq 0x30(%rbx), %rdx
cmpq %rdx, %rax
je 0x295a
xorpd %xmm2, %xmm2
movl (%rax), %esi
leal -0x1(%rsi), %edi
imull %esi, %edi
imull 0x4(%rax), %edi
xorps %xmm3, %xmm3
cvtsi2sd %edi, %xmm3
addsd %xmm3, %xmm2
addq $0x8, %rax
cmpq %rdx, %rax
jne 0x293a
cvtsi2sd %ecx, %xmm4
divsd %xmm4, %xmm1
movsd 0x169e(%rip), %xmm5     # 0x4008
movapd %xmm5, %xmm3
subsd %xmm1, %xmm3
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
divsd %xmm4, %xmm1
decl %ecx
cvtsi2sd %ecx, %xmm6
divsd %xmm6, %xmm1
addsd 0x1688(%rip), %xmm1     # 0x4018
xorpd %xmm7, %xmm7
xorpd %xmm8, %xmm8
maxsd %xmm1, %xmm8
movapd %xmm5, %xmm1
subsd %xmm3, %xmm1
mulsd %xmm4, %xmm1
mulsd %xmm1, %xmm2
divsd %xmm4, %xmm2
divsd %xmm6, %xmm2
divsd %xmm3, %xmm2
addsd %xmm5, %xmm2
mulsd %xmm8, %xmm2
maxsd %xmm2, %xmm7
divsd %xmm3, %xmm1
mulsd %xmm7, %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/support.cpp
// Function: Support::setFin(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Support::setFin(const std::string filename) 
{
    fin.clear();
    n = 0;
    std::ifstream infile;
    infile.open( filename.c_str() );
    int freq, cnt;
    while ( (infile>>freq).good() )
    {
        infile >> cnt;
        fin.push_back( std::make_pair( freq, cnt ) );
        n += (freq * cnt);
    }
    infile.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rsi, %r14
movq %rdi, %rbx
movq 0x28(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0x2a81
movq %rax, 0x30(%rbx)
movl $0x0, 0x20(%rbx)
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x21b0
movq (%r14), %rsi
movq %r15, %rdi
movl $0x8, %edx
callq 0x20e0
leaq 0x28(%rbx), %r14
leaq 0x10(%rsp), %r15
leaq 0x4(%rsp), %r12
movq %rsp, %r13
leaq 0x8(%rsp), %rbp
movq %r15, %rdi
movq %r12, %rsi
callq 0x20d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
cmpl $0x0, 0x20(%rax,%rcx)
jne 0x2b0a
movq %r15, %rdi
movq %r13, %rsi
callq 0x20d0
movl 0x4(%rsp), %eax
movl (%rsp), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
movq %rcx, 0x8(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x2f82
movl (%rsp), %eax
imull 0x4(%rsp), %eax
addl %eax, 0x20(%rbx)
jmp 0x2abb
leaq 0x10(%rsp), %rdi
callq 0x2050
leaq 0x10(%rsp), %rdi
callq 0x2060
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2b36
jmp 0x2b36
jmp 0x2b36
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2260
nop
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/support.cpp
// Function: Support::setFin(std::vector<int, std::allocator<int>> const&, std::vector<int, std::allocator<int>> const&)
void Support::setFin(const std::vector<int> &freq_in, const std::vector<int> &cnt_in)
{
    fin.clear();
    n = 0;
    for ( unsigned i = 0; i < freq_in.size(); i++)
    {
        int freq = freq_in[i], cnt = cnt_in[i];
        fin.push_back( std::make_pair( freq, cnt ) );
        n += (freq * cnt);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movq 0x28(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0x2b71
movq %rax, 0x30(%r15)
movl $0x0, 0x20(%r15)
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x2bda
leaq 0x28(%r15), %rcx
movq %rcx, 0x8(%rsp)
movl $0x1, %ebp
xorl %ecx, %ecx
movl (%rax,%rcx,4), %r13d
movq (%r12), %rax
movl (%rax,%rcx,4), %ebx
movq %rbx, %rax
shlq $0x20, %rax
orq %r13, %rax
movq %rax, 0x10(%rsp)
movq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2f82
imull %r13d, %ebx
addl %ebx, 0x20(%r15)
movl %ebp, %ecx
movq (%r14), %rax
movq 0x8(%r14), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x2b92
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/support.cpp
// Function: Support::setHist(std::vector<unsigned int, std::allocator<unsigned int>> const&)
void Support::setHist( const std::vector<unsigned> &hist )
{
    fin.clear();
    n = 0;
    
    std::map<int, int> fin_map;
    for ( const auto & freq : hist )
    {
        auto iter = fin_map.find( freq );
        if ( iter == fin_map.end() )
            fin_map.insert( std::make_pair( freq,1 ) );
        else
            ++(iter->second);
    }
    
    for ( auto it = fin_map.begin(); it != fin_map.end(); ++it )
    {
        int freq = it->first, cnt = it->second;
        fin.push_back( std::make_pair( freq, cnt ) );
        n += (freq * cnt);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x28(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0x2c09
movq %rax, 0x30(%rbx)
xorl %eax, %eax
movl %eax, 0x20(%rbx)
leaq 0x10(%rsp), %r13
movl %eax, (%r13)
movq %rax, 0x8(%r13)
movq %r13, 0x10(%r13)
movq %r13, 0x18(%r13)
movq %rax, 0x20(%r13)
movq (%rsi), %r12
movq 0x8(%rsi), %rbp
cmpq %rbp, %r12
je 0x2ca3
leaq 0x8(%rsp), %r14
movq %rsp, %r15
movl (%r12), %eax
movq 0x18(%rsp), %rdx
movq %r13, %rcx
testq %rdx, %rdx
je 0x2c66
movq %r13, %rcx
xorl %esi, %esi
cmpl %eax, 0x20(%rdx)
setl %sil
cmovgeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x2c4f
movq %r13, %rdx
cmpq %r13, %rcx
je 0x2c78
cmpl 0x20(%rcx), %eax
cmovlq %r13, %rcx
movq %rcx, %rdx
cmpq %r13, %rdx
je 0x2c82
incl 0x24(%rdx)
jmp 0x2c9a
movl (%r12), %eax
btsq $0x20, %rax
movq %rax, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x30f8
addq $0x4, %r12
cmpq %rbp, %r12
jne 0x2c3b
movq 0x20(%rsp), %r14
cmpq %r13, %r14
je 0x2cf0
leaq 0x28(%rbx), %r15
movq %rbx, %r12
movl 0x20(%r14), %ebp
movl 0x24(%r14), %ebx
movq %rbx, %rax
shlq $0x20, %rax
orq %rbp, %rax
movq %rax, (%rsp)
movq %r15, %rdi
movq %rsp, %rsi
callq 0x2f82
imull %ebp, %ebx
addl %ebx, 0x20(%r12)
movq %r12, %rbx
movq %r14, %rdi
callq 0x20f0
movq %rax, %r14
cmpq %r13, %rax
jne 0x2cb1
leaq 0x8(%rsp), %rdi
callq 0x2f32
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d0b
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2f32
movq %rbx, %rdi
callq 0x2260
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/support.cpp
// Function: Support::setHist(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Support::setHist(const std::string filename) 
{
    fin.clear();
    n = 0;
    std::map<int, int> fin_map;
    
    std::ifstream infile;
    infile.open( filename.c_str() );
    int freq;
    while ( (infile>>freq).good() )
    {
        if ( freq == 0)
            continue;

        auto iter = fin_map.find( freq );
        if ( iter == fin_map.end() )
            fin_map.insert( std::make_pair( freq,1 ) );
        else
            ++(iter->second);
    }
    infile.close();

    for ( auto it = fin_map.begin(); it != fin_map.end(); ++it )
    {
        int freq = it->first, cnt = it->second;
        fin.push_back( std::make_pair( freq, cnt ) );
        n += (freq * cnt);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rsi, %r14
movq %rdi, %rbx
movq 0x28(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0x2d45
movq %rax, 0x30(%rbx)
xorl %eax, %eax
movl %eax, 0x20(%rbx)
leaq 0x28(%rsp), %r13
movl %eax, (%r13)
movq %rax, 0x8(%r13)
movq %r13, 0x10(%r13)
movq %r13, 0x18(%r13)
movq %rax, 0x20(%r13)
leaq 0x50(%rsp), %rdi
callq 0x21b0
movq (%r14), %rsi
leaq 0x50(%rsp), %rdi
movl $0x8, %edx
callq 0x20e0
leaq 0x28(%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0x50(%rsp), %r15
leaq 0x14(%rsp), %r12
leaq 0x20(%rsp), %r14
leaq 0x8(%rsp), %rbp
movq %r15, %rdi
movq %r12, %rsi
callq 0x20d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
cmpl $0x0, 0x20(%rax,%rcx)
jne 0x2e18
movl 0x14(%rsp), %eax
testq %rax, %rax
je 0x2d9c
movq 0x30(%rsp), %rdx
movq %r13, %rcx
testq %rdx, %rdx
je 0x2de5
movq %r13, %rcx
xorl %esi, %esi
cmpl %eax, 0x20(%rdx)
setl %sil
cmovgeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x2dce
movq %r13, %rdx
cmpq %r13, %rcx
je 0x2df7
cmpl 0x20(%rcx), %eax
cmovlq %r13, %rcx
movq %rcx, %rdx
cmpq %r13, %rdx
je 0x2e01
incl 0x24(%rdx)
jmp 0x2d9c
btsq $0x20, %rax
movq %rax, 0x8(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x323e
jmp 0x2d9c
leaq 0x50(%rsp), %rdi
callq 0x2050
movq 0x38(%rsp), %r15
cmpq %r13, %r15
je 0x2e72
leaq 0x8(%rsp), %r12
movq %rbx, %r14
movl 0x20(%r15), %ebp
movl 0x24(%r15), %ebx
movq %rbx, %rax
shlq $0x20, %rax
orq %rbp, %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdi
movq %r12, %rsi
callq 0x2f82
imull %ebp, %ebx
addl %ebx, 0x20(%r14)
movq %r14, %rbx
movq %r15, %rdi
callq 0x20f0
movq %rax, %r15
cmpq %r13, %rax
jne 0x2e31
leaq 0x50(%rsp), %rdi
callq 0x2060
leaq 0x20(%rsp), %rdi
callq 0x2f32
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2ea5
jmp 0x2ea5
movq %rax, %rbx
jmp 0x2eb2
jmp 0x2ea5
jmp 0x2ea5
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x2060
leaq 0x20(%rsp), %rdi
callq 0x2f32
movq %rbx, %rdi
callq 0x2260
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/mathmore.cpp
// Function: binom(unsigned int, unsigned int)
long long binom(unsigned n, unsigned k)
{
    if (0 == k || n == k) 
        return 1;
    if (k > n) 
        return 0;
    if (k > (n - k)) 
        k = n - k;
    if (1 == k) 
        return n;
    long long b = 1;
    for (unsigned i = 1; i <= k; ++i)
    {
        if ( b > std::numeric_limits<long long>::max() / n-(k-i) )
        {
            std::cerr<<"binomial coefficients overflow!"<<std::endl;
            exit(1); /* Overflow */
        }
        b *= (n - (k - i));
        b /= i;
    }
    return b;
}

// Assembly:
testl %esi, %esi
sete %al
cmpl %esi, %edi
sete %cl
orb %al, %cl
movl $0x1, %eax
je 0x32ec
retq
movl %edi, %ecx
subl %esi, %ecx
jae 0x32f5
xorl %eax, %eax
retq
cmpl %esi, %ecx
cmovbl %ecx, %esi
testl %esi, %esi
je 0x32eb
cmpl $0x1, %esi
jne 0x3306
movl %edi, %eax
retq
movl %edi, %ecx
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
subl %esi, %edi
leal -0x1(%rsi), %r8d
movl $0x1, %eax
movl $0x1, %r9d
movl %r8d, %edx
movq %rcx, %r10
subq %rdx, %r10
cmpq %r10, %rax
jg 0x3356
leal (%rdi,%r9), %edx
imulq %rdx, %rax
movl %r9d, %r10d
xorl %edx, %edx
divq %r10
incl %r9d
decl %r8d
cmpl %esi, %r9d
jbe 0x332b
jmp 0x32eb
pushq %rax
movq 0x3c92(%rip), %rdi      # 0x6ff0
leaq 0xd08(%rip), %rsi       # 0x406d
callq 0x2170
movq %rax, %rdi
callq 0x20a0
movl $0x1, %edi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/mathmore.cpp
// Function: ChebMore::expand_basic() const
std::vector<double> ChebMore::expand_basic() const // Expansion of cos(L arccos x)
{
    std::vector<double> a(L+1);
	
    if (L % 2 == 0)
    {
        unsigned n = L / 2;
        for (unsigned k = 0; k <= n; k++)
            a[2*k] = pow(-1,n-k) * pow(2,2*k) * n / (n+k) * binom(n+k,2*k); // may be simpler
    }
    else
    {
        unsigned n = (L-1)/2;
        for (unsigned k = 0; k <= n; k++)
            a[2*k+1] = pow(-1,n-k) * pow(2,2*k) * (2*n+1) / (2*k+1) * binom(n+k,2*k); // may be simpler
    }
    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movslq 0x8(%rsi), %rsi
incq %rsi
leaq 0x7(%rsp), %rdx
movq %rdi, 0x8(%rsp)
callq 0x3734
movl 0x8(%r14), %r15d
testb $0x1, %r15b
jne 0x345a
sarl %r15d
cvtsi2sd %r15, %xmm0
movsd %xmm0, 0x10(%rsp)
xorl %ebp, %ebp
xorl %r12d, %r12d
xorl %r13d, %r13d
leal (%r15,%r12), %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movsd 0xc3d(%rip), %xmm0      # 0x4018
callq 0x2240
movsd %xmm0, 0x20(%rsp)
movl %ebp, %ebx
xorps %xmm0, %xmm0
cvtsi2sd %rbx, %xmm0
callq 0x2150
movsd %xmm0, 0x18(%rsp)
leal (%r15,%r13), %r14d
movl %r14d, %edi
movl %ebp, %esi
callq 0x32d8
movsd 0x20(%rsp), %xmm2
mulsd 0x18(%rsp), %xmm2
mulsd 0x10(%rsp), %xmm2
movl %r14d, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
divsd %xmm0, %xmm2
mulsd %xmm2, %xmm1
movq 0x8(%rsp), %rax
movq (%rax), %rax
movsd %xmm1, (%rax,%rbx,8)
incl %r13d
decl %r12d
addl $0x2, %ebp
cmpl %r15d, %r13d
jbe 0x33c7
jmp 0x3508
leal -0x1(%r15), %r12d
sarl %r12d
movl %r15d, %eax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x10(%rsp)
xorl %r15d, %r15d
movl $0x1, %r13d
xorl %ebp, %ebp
leal (%r12,%r15), %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movsd 0xb8a(%rip), %xmm0      # 0x4018
callq 0x2240
movsd %xmm0, 0x20(%rsp)
leal -0x1(%r13), %r14d
xorps %xmm0, %xmm0
cvtsi2sd %r14, %xmm0
callq 0x2150
movsd %xmm0, 0x18(%rsp)
leal (%r12,%rbp), %edi
movl %r14d, %esi
callq 0x32d8
movsd 0x20(%rsp), %xmm2
mulsd 0x18(%rsp), %xmm2
mulsd 0x10(%rsp), %xmm2
movl %r13d, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
divsd %xmm0, %xmm2
mulsd %xmm2, %xmm1
movq 0x8(%rsp), %rax
movq (%rax), %rax
movsd %xmm1, (%rax,%rcx,8)
incl %ebp
decl %r15d
addl $0x2, %r13d
cmpl %r12d, %ebp
jbe 0x347a
movq 0x8(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x351e
movq %rax, %r14
movq 0x8(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x353f
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0x2190
movq %r14, %rdi
callq 0x2260
nop
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/mathmore.cpp
// Function: ChebMore::expand() const
std::vector<double> ChebMore::expand() const // Expansion of cos(L arccos (bx+c))
{
    std::vector<double> a0 = expand_basic();
    std::vector<double> a(L+1);
	
    // sum_i a[i] x^i = sum_i a0[i]*(bx+c)^i
    for (int i = 0; i <= L; i++)
        for (int j = 0; j <= i; j++)
            a[j] += a0[i] * pow(b,j) * pow(c,i-j) * binom(i,j);
    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
callq 0x337c
movslq 0x8(%r14), %rsi
incq %rsi
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
callq 0x3734
cmpl $0x0, 0x8(%r14)
js 0x3633
movl $0x1, %r13d
xorl %r15d, %r15d
movl %r15d, %ebp
xorl %r12d, %r12d
movq 0x20(%rsp), %rax
movsd (%rax,%r15,8), %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0x10(%r14), %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %r12d, %xmm1
callq 0x2240
movsd %xmm0, 0x10(%rsp)
movsd 0x18(%r14), %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %ebp, %xmm1
callq 0x2240
movsd %xmm0, 0x8(%rsp)
movl %r15d, %edi
movl %r12d, %esi
callq 0x32d8
movsd 0x18(%rsp), %xmm1
mulsd 0x10(%rsp), %xmm1
mulsd 0x8(%rsp), %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd %xmm1, %xmm0
movq (%rbx), %rax
addsd (%rax,%r12,8), %xmm0
movsd %xmm0, (%rax,%r12,8)
incq %r12
decl %ebp
cmpq %r12, %r13
jne 0x3594
leaq 0x1(%r15), %rax
movslq 0x8(%r14), %rcx
incq %r13
cmpq %rcx, %r15
movq %rax, %r15
jl 0x358e
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x364a
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2190
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x3678
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3678
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2190
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x368f
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2190
movq %r14, %rdi
callq 0x2260
nop
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/mathmore.cpp
// Function: ChebMore::evaluate(double) const
double ChebMore::evaluate(double x) const
{
    double A = b * x + c;
    if ( A > 1 )
    {
        return cosh(L*acosh(A));
    }
    else if ( A >= -1 )
    {
        return cos(L*acos(A));
    }
    else
    {
        return ( cosh(L*acosh(-A)) * ( (L%2==0)? 1:-1)) ;
    }
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
mulsd 0x10(%rdi), %xmm0
addsd 0x18(%rdi), %xmm0
ucomisd 0x956(%rip), %xmm0      # 0x4008
jbe 0x36d4
cvtsi2sdl 0x8(%rbx), %xmm1
movsd %xmm1, 0x8(%rsp)
callq 0x2250
mulsd 0x8(%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
jmp 0x21e0
ucomisd 0x93c(%rip), %xmm0      # 0x4018
cvtsi2sdl 0x8(%rbx), %xmm1
movsd %xmm1, 0x8(%rsp)
jae 0x371e
xorpd 0x93f(%rip), %xmm0      # 0x4030
callq 0x2250
mulsd 0x8(%rsp), %xmm0
callq 0x21e0
movzbl 0x8(%rbx), %eax
andl $0x1, %eax
negl %eax
orl $0x1, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
retq
callq 0x2160
mulsd 0x8(%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
jmp 0x2280
nop
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/main_test.cpp
// Function: print_param(Support const&)
void print_param(const Support &support)
{
    printf("Parameters:\n");
    printf("Preset pmin value\t=%.2e\n", support.getPmin());
    printf("Degree of polynomial\t=%d\n", support.getDegree());
    printf("Approximation interval\t=[%.2e,%.2f/n]\n", support.getPmin(), support.getInterval());
    printf("\n");
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x5bd(%rip), %rdi       # 0x419c
callq 0x2210
movsd 0x8(%rbx), %xmm0
leaq 0x4f7(%rip), %rdi       # 0x40e7
movb $0x1, %al
callq 0x2030
movl 0x10(%rbx), %esi
leaq 0x4ff(%rip), %rdi       # 0x4100
xorl %eax, %eax
callq 0x2030
movsd 0x8(%rbx), %xmm0
movsd 0x18(%rbx), %xmm1
leaq 0x501(%rip), %rdi       # 0x411a
movb $0x2, %al
callq 0x2030
movl $0xa, %edi
popq %rbx
jmp 0x21d0
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]support/main_test.cpp
// Function: print_results(Support const&)
void print_results(const Support &support)
{
    printf("Results:\n");
    printf("Sample size\t=%d\n",support.getSampleSize());
    printf("Polynomial\t=%d \n",(int)support.estimate());
    printf("Plug-in\t\t=%d \n",(int)support.estimate_plug());
    printf("\n");
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x572(%rip), %rdi       # 0x41a8
callq 0x2210
movl 0x20(%rbx), %esi
leaq 0x4fc(%rip), %rdi       # 0x4141
xorl %eax, %eax
callq 0x2030
movq %rbx, %rdi
callq 0x244c
cvttsd2si %xmm0, %esi
leaq 0x4f3(%rip), %rdi       # 0x4152
xorl %eax, %eax
callq 0x2030
movq %rbx, %rdi
callq 0x263e
cvttsd2si %xmm0, %esi
leaq 0x4ea(%rip), %rdi       # 0x4163
xorl %eax, %eax
callq 0x2030
movl $0xa, %edi
popq %rbx
jmp 0x21d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/sid1607[P]avx2-merge-sort/merge_sort.cpp
// Function: merge_pass(int*, int*, int, int)
void merge_pass(int *in, int *out, int n, int merge_size) {
  for (int i=0; i < n-1; i+=2*merge_size) {
    auto mid = i + merge_size - 1;
    auto end = std::min(i+2*merge_size-1, n-1);
    // check if there are 2 sub-arrays to merge
    if (mid < end) {
      // merge two merge_size arrays per iteration
      merge_phase(in, out, i, mid, end);
    } else {
      // copy the leftover data to output
      std::memcpy(out+i, in+i, (n-i)*sizeof(int));
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, 0x8(%rsp)
movq %rdi, (%rsp)
cmpl $0x2, %edx
jl 0x285d
leal -0x1(%rdx), %ebp
leal (%rcx,%rcx), %eax
cltq
movslq %ecx, %rcx
movslq %ebp, %rsi
movq %rsi, 0x20(%rsp)
movl %edx, %r15d
shlq $0x2, %r15
movq %rax, %rbx
leaq (,%rax,4), %rax
movq %rax, 0x18(%rsp)
leal -0x1(%rcx), %eax
movq %rax, 0x10(%rsp)
movq %rcx, %r14
leal -0x1(,%rcx,2), %r13d
xorl %r12d, %r12d
leaq (%r14,%r12), %rax
leal (%r12,%r13), %r8d
cmpl %r8d, %ebp
cmovll %ebp, %r8d
movslq %r8d, %rcx
cmpq %rcx, %rax
jle 0x2834
movq 0x8(%rsp), %rax
leaq (%rax,%r12,4), %rdi
movq (%rsp), %rax
leaq (%rax,%r12,4), %rsi
movq %r15, %rdx
callq 0x20e0
jmp 0x284e
movq 0x10(%rsp), %rax
leal (%rax,%r12), %ecx
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movl %r12d, %edx
callq 0x2391
addq %rbx, %r12
subq 0x18(%rsp), %r15
cmpq 0x20(%rsp), %r12
jl 0x2802
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/sid1607[P]avx2-merge-sort/merge_sort.cpp
// Function: merge(int*, int*, unsigned long)
std::pair<int *, int *> merge(int *a, int *b, size_t len) {
  int i=0;
  /*
   * even iterations: a->b
   * odd iterations: b->a
   */
  // start from 16-16 merge
  for (size_t pass_size=SIMD_SIZE; pass_size<len; pass_size*=2, i++) {
    if (i%2 == 0) {
      merge_pass(a, b, len, pass_size);
    } else {
      merge_pass(b, a, len, pass_size);
    }
  }

  if (i%2 == 0)
    return std::make_pair(a,b);
  return std::make_pair(b,a);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movb $0x1, %r13b
cmpq $0x9, %rdx
jb 0x28c3
movq %rdx, %r15
movl $0x8, %r12d
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
leal 0x1(%r13), %eax
testb $0x1, %al
jne 0x28a3
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x28a9
movq %r14, %rdi
movq %rbx, %rsi
movl %r15d, %edx
movl %r12d, %ecx
callq 0x27a2
addq %r12, %r12
incl %r13d
cmpq %r15, %r12
jb 0x2893
andb $0x1, %r13b
testb %r13b, %r13b
movq %r14, %rax
cmovneq %rbx, %rax
cmovneq %r14, %rbx
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq