LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/MITRECND[P]snugglefish/src/file.cpp
// Function: snugglefish::file::real_write(int, unsigned char*, unsigned long)
bool file::real_write(int fd, uint8_t* data, size_t length){
        ssize_t written = ::write(fd, data, length); 
        if (written == -1){//TODO what if partial write?
            cerr << "Unable to write to file: " << this->filename << " -- Error: " << strerror(errno) << endl;
            throw runtime_error("Write Error");
        }

    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl %esi, %edi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x60a0
cmpq $-0x1, %rax
je 0x9d7a
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
movq 0x5267(%rip), %rdi      # 0xefe8
leaq 0x1a89(%rip), %rsi      # 0xb811
callq 0x6270
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x6270
leaq 0x1309(%rip), %rsi      # 0xb0a8
movq %rax, %rdi
callq 0x6270
movq %rax, %rbx
callq 0x6040
movl (%rax), %edi
callq 0x6090
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6270
movq %rax, %rdi
callq 0x6110
pushq $0x10
popq %rdi
callq 0x6120
movq %rax, %rbx
leaq 0x1a50(%rip), %rsi      # 0xb82b
movq %rax, %rdi
callq 0x60c0
movq 0x5206(%rip), %rsi      # 0xeff0
movq 0x51b7(%rip), %rdx      # 0xefa8
movq %rbx, %rdi
callq 0x6480
movq %rax, %r14
movq %rbx, %rdi
callq 0x61d0
movq %r14, %rdi
callq 0x64b0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x9e98
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x30(%rdi), %rdi
leaq (%rdi,%rdx), %rax
cmpq 0x28(%r14), %rax
jbe 0x9e56
movq %r14, %rdi
callq 0x9d12
cmpq %rbx, 0x28(%r14)
jbe 0x9e6b
movq 0x20(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x6220
movq %rbx, 0x30(%r14)
jmp 0x9e8b
addq 0x20(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x6220
addq %rbx, 0x30(%r14)
jmp 0x9e8b
movl 0xc(%r14), %edi
pushq $0x2
popq %rdx
xorl %esi, %esi
callq 0x6500
movl 0xc(%r14), %esi
movq %r14, %rdi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x9d56
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x6120
movq %rax, %rbx
leaq 0x198d(%rip), %rsi      # 0xb837
movq %rax, %rdi
callq 0x60c0
movq 0x5137(%rip), %rsi      # 0xeff0
movq 0x50e8(%rip), %rdx      # 0xefa8
movq %rbx, %rdi
callq 0x6480
movq %rax, %r14
movq %rbx, %rdi
callq 0x61d0
movq %r14, %rdi
callq 0x64b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x9f29
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %r12d
movq %rdi, %r15
callq 0x9d12
movl 0xc(%r15), %edi
movslq %r12d, %rsi
xorl %edx, %edx
callq 0x6500
movl 0xc(%r15), %esi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x9d56
movb $0x1, %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x6120
movq %rax, %rbx
leaq 0x191c(%rip), %rsi      # 0xb857
movq %rax, %rdi
callq 0x60c0
movq 0x50a6(%rip), %rsi      # 0xeff0
movq 0x5057(%rip), %rdx      # 0xefa8
movq %rbx, %rdi
callq 0x6480
movq %rax, %r14
movq %rbx, %rdi
callq 0x61d0
movq %r14, %rdi
callq 0x64b0
// File: /workspace/github_cpp_makefile_star2_O2/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 0xa052
callq 0x98c8
movq (%rbx), %r14
testq %r14, %r14
je 0xa047
movq %r14, %rdi
callq 0x987c
pushq $0x40
popq %rsi
movq %r14, %rdi
callq 0x6290
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xa07c
callq 0x98c8
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0xa071
movq %r14, %rdi
callq 0x987c
pushq $0x40
popq %rsi
movq %r14, %rdi
callq 0x6290
addq $0x28, %rbx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x60f0
movq %rax, %rdi
callq 0x777b
// File: /workspace/github_cpp_makefile_star2_O2/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 0xa0ca
callq 0x98c8
movq (%rbx), %r14
testq %r14, %r14
je 0xa0bb
movq %r14, %rdi
callq 0x987c
pushq $0x40
popq %rsi
movq %r14, %rdi
callq 0x6290
andq $0x0, (%rbx)
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xa0f9
callq 0x98c8
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0xa0e9
movq %r14, %rdi
callq 0x987c
pushq $0x40
popq %rsi
movq %r14, %rdi
callq 0x6290
andq $0x0, 0x8(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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, %r14
movq %rdi, %rbx
movq 0x10(%rdx), %r13
movl %r13d, %r15d
testl %r13d, %r13d
je 0xa57e
movq 0x60(%rbx), %rsi
jmp 0xa580
xorl %esi, %esi
movq %rbx, %rdi
movl %r15d, %edx
callq 0xa516
pushq $0x4
popq %r12
subl $0x1, %r15d
jb 0xa5b2
movq 0x8(%rbx), %rdi
movq (%r14), %rsi
addq $0x10, %rsi
movq %r12, %rdx
callq 0x9e0c
movq %r14, %rdi
callq 0xa61c
jmp 0xa58f
shll $0x2, %r13d
addq %r13, 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_O2/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
imulq $0xc, %rsi, %rsi
movl 0x8(%rcx,%rsi), %eax
movq %rax, (%rdx)
movq 0x18(%rdi), %rax
addq (%rcx,%rsi), %rax
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x9fb4
testb %al, %al
jne 0xa793
movq %rbx, %rdi
movl $0x1ed, %esi            # imm = 0x1ED
callq 0x99c2
leaq 0x40(%rbx), %rsi
movl $0x1234567, 0x40(%rbx)  # imm = 0x1234567
leaq 0x44(%rbx), %r13
movb $0x1, 0x44(%rbx)
movw %r14w, 0x46(%rbx)
andl $0x0, 0x48(%rbx)
leaq -0x30(%rbp), %rax
andl $0x0, (%rax)
leaq 0x46(%rbx), %r14
andl $0x0, 0x4c(%rbx)
leaq -0x2c(%rbp), %rax
andl $0x0, (%rax)
pushq $0x4
popq %r15
movq %rbx, %rdi
movq %r15, %rdx
callq 0x9e0c
pushq $0x1
popq %r12
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x9e0c
leaq 0x45(%rbx), %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0x9e0c
pushq $0x2
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9e0c
movq %rbx, %rdi
leaq -0x30(%rbp), %rsi
movq %r15, %rdx
callq 0x9e0c
movq %rbx, %rdi
leaq -0x2c(%rbp), %rsi
movq %r15, %rdx
callq 0x9e0c
movzwl 0x46(%rbx), %edi
incq %rdi
callq 0x6360
movq %rax, 0x50(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x484e(%rip), %rdi      # 0xefe8
leaq 0x114c(%rip), %rsi      # 0xb8ed
callq 0x6270
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x6270
leaq 0x114d(%rip), %rsi      # 0xb905
movq %rax, %rdi
callq 0x6270
movq %rax, %rdi
callq 0x6110
pushq $0x10
popq %rdi
callq 0x6120
movq %rax, %rbx
leaq 0xf9e(%rip), %rsi       # 0xb778
movq %rax, %rdi
callq 0x60c0
movq 0x4807(%rip), %rsi      # 0xeff0
movq 0x47b8(%rip), %rdx      # 0xefa8
movq %rbx, %rdi
callq 0x6480
movq %rax, %r14
movq %rbx, %rdi
callq 0x61d0
movq %r14, %rdi
callq 0x64b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x9a9a
leaq 0x40(%rbx), %rsi
pushq $0x4
popq %rdx
movq %rbx, %rdi
callq 0x9f6c
cmpl $0x1234567, 0x40(%rbx)  # imm = 0x1234567
jne 0xa8af
leaq 0x44(%rbx), %rsi
pushq $0x1
popq %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x9f6c
leaq -0x19(%rbp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x9f6c
movb 0x45(%rbx), %al
cmpb (%r15), %al
jne 0xa8cb
leaq 0x46(%rbx), %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x9f6c
leaq 0x48(%rbx), %rsi
pushq $0x4
popq %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x9f6c
leaq 0x4c(%rbx), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x9f6c
movzwl 0x46(%rbx), %edi
incq %rdi
callq 0x6360
movq %rax, 0x50(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x6120
movq %rax, %rbx
leaq 0x1057(%rip), %rsi      # 0xb918
movq %rax, %rdi
callq 0x60c0
jmp 0xa8e5
pushq $0x10
popq %rdi
callq 0x6120
movq %rax, %rbx
leaq 0x104b(%rip), %rsi      # 0xb928
movq %rax, %rdi
callq 0x60c0
movq 0x4704(%rip), %rsi      # 0xeff0
movq 0x46b5(%rip), %rdx      # 0xefa8
movq %rbx, %rdi
callq 0x6480
jmp 0xa8fd
movq %rax, %r14
movq %rbx, %rdi
callq 0x61d0
movq %r14, %rdi
callq 0x64b0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x6130
movq 0x50(%rbx), %rsi
movzwl 0x46(%rbx), %edx
movq %rbx, %rdi
callq 0x9e0c
incl 0x4c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
pushq %rax
movq 0x2e0f(%rip), %rdi      # 0x3fd8
movsd 0xe37(%rip), %xmm0      # 0x2008
callq 0x1070
leaq 0xe33(%rip), %rbx       # 0x2010
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1050
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
andl $0xfffffefb, 0x18(%rax,%rcx) # imm = 0xFFFFFEFB
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1050
movq %rax, %rdi
movsd 0xdfb(%rip), %xmm0      # 0x2008
callq 0x1070
movq %rax, %rdi
callq 0x1030
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/emilisb[P]OOP-4/src/main.cpp
// Function: benchmarkInsert(unsigned long)
void benchmarkInsert(size_t size) {
    vector<int> vec;
    std::vector<int> stdvec;
    Timer t;

    std::cout << "Benchmark: inserting " << size << " elements" << std::endl;

    t.start();

    for (int i = 0; i < size; i++) {
        vec.push_back(i);
    }

    std::cout << "My vector: << " << t.duration() << " ms" << std::endl;

    t.start();

    for (int i = 0; i < size; i++) {
        stdvec.push_back(i);
    }

    std::cout << "STD vector: << " << t.duration() << " ms" << std::endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
leaq 0x30(%rsp), %rdi
callq 0x2750
xorps %xmm0, %xmm0
andq $0x0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x8(%rsp)
movq 0x2c8b(%rip), %rdi      # 0x4fc8
leaq 0xcfc(%rip), %rsi       # 0x3040
callq 0x2140
movq %rax, %rdi
movq %rbx, %rsi
callq 0x20d0
leaq 0xcfb(%rip), %rsi       # 0x3056
movq %rax, %rdi
callq 0x2140
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2e00
xorl %eax, %eax
leaq 0x30(%rsp), %r14
leaq 0x4(%rsp), %r15
movl %eax, 0x4(%rsp)
cltq
cmpq %rbx, %rax
jae 0x239f
movq %r14, %rdi
movq %r15, %rsi
callq 0x276e
movl 0x4(%rsp), %eax
incl %eax
jmp 0x2381
movq 0x2c22(%rip), %rdi      # 0x4fc8
leaq 0xcb3(%rip), %rsi       # 0x3060
callq 0x2140
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x2e0e
movq %r14, %rdi
movl %eax, %esi
callq 0x21b0
leaq 0xc9f(%rip), %rsi       # 0x306f
movq %rax, %rdi
callq 0x2140
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2e00
xorl %eax, %eax
leaq 0x10(%rsp), %r14
leaq 0x4(%rsp), %r15
movl %eax, 0x4(%rsp)
cltq
cmpq %rbx, %rax
jae 0x2414
movq %r14, %rdi
movq %r15, %rsi
callq 0x27a8
movl 0x4(%rsp), %eax
incl %eax
jmp 0x23f6
movq 0x2bad(%rip), %rdi      # 0x4fc8
leaq 0xc51(%rip), %rsi       # 0x3073
callq 0x2140
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2e0e
movq %rbx, %rdi
movl %eax, %esi
callq 0x21b0
leaq 0xc2a(%rip), %rsi       # 0x306f
movq %rax, %rdi
callq 0x2140
movq %rax, %rdi
callq 0x20a0
leaq 0x10(%rsp), %rdi
callq 0x2a50
leaq 0x30(%rsp), %rdi
callq 0x27c6
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x2477
jmp 0x2477
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2a50
leaq 0x30(%rsp), %rdi
callq 0x27c6
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/emilisb[P]OOP-4/src/main.cpp
// Function: benchmarkResize(unsigned long)
void benchmarkResize(size_t size) {
    vector<int> vec;
    std::vector<int> stdvec;
    int totalRealloc = 0;
    Timer t;

    std::cout << "Benchmark: reallocations inserting " << size << " elements" << std::endl;

    t.start();

    for (int i = 0; i < size; i++) {
        vec.push_back(i);
        if (vec.size() == vec.capacity()) {
            totalRealloc++;
        }
    }

    std::cout << "My vector: << " << totalRealloc << std::endl;

    totalRealloc = 0;
    t.start();

    for (int i = 0; i < size; i++) {
        stdvec.push_back(i);
        if (stdvec.size() == stdvec.capacity()) {
            totalRealloc++;
        }
    }

    std::cout << "STD vector: << " << totalRealloc << std::endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x28(%rsp), %rdi
callq 0x2750
xorps %xmm0, %xmm0
andq $0x0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x8(%rsp)
movq 0x2b00(%rip), %rdi      # 0x4fc8
leaq 0xbb4(%rip), %rsi       # 0x3083
callq 0x2140
movq %rax, %rdi
movq %rbx, %rsi
callq 0x20d0
leaq 0xb70(%rip), %rsi       # 0x3056
movq %rax, %rdi
callq 0x2140
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2e00
xorl %eax, %eax
leaq 0x28(%rsp), %r14
leaq 0x4(%rsp), %r15
xorl %ebp, %ebp
movl %eax, 0x4(%rsp)
cltq
cmpq %rbx, %rax
jae 0x253d
movq %r14, %rdi
movq %r15, %rsi
callq 0x276e
movq 0x28(%rsp), %rax
xorl %ecx, %ecx
cmpq 0x30(%rsp), %rax
sete %cl
addl %ecx, %ebp
movl 0x4(%rsp), %eax
incl %eax
jmp 0x250e
movq 0x2a84(%rip), %rdi      # 0x4fc8
leaq 0xb15(%rip), %rsi       # 0x3060
callq 0x2140
movq %rax, %rdi
movl %ebp, %esi
callq 0x21b0
movq %rax, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x2e00
xorl %eax, %eax
leaq 0x10(%rsp), %r14
leaq 0x4(%rsp), %r15
xorl %ebp, %ebp
movl %eax, 0x4(%rsp)
cltq
cmpq %rbx, %rax
jae 0x25a9
movq %r14, %rdi
movq %r15, %rsi
callq 0x27a8
movq 0x18(%rsp), %rax
xorl %ecx, %ecx
cmpq 0x20(%rsp), %rax
sete %cl
addl %ecx, %ebp
movl 0x4(%rsp), %eax
incl %eax
jmp 0x257a
movq 0x2a18(%rip), %rdi      # 0x4fc8
leaq 0xabc(%rip), %rsi       # 0x3073
callq 0x2140
movq %rax, %rdi
movl %ebp, %esi
callq 0x21b0
movq %rax, %rdi
callq 0x20a0
leaq 0x10(%rsp), %rdi
callq 0x2a50
leaq 0x28(%rsp), %rdi
callq 0x27c6
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x25f1
jmp 0x25f1
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2a50
leaq 0x28(%rsp), %rdi
callq 0x27c6
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x68, %rsp
movl $0x2710, %ebx           # imm = 0x2710
cmpq $0x5f5e101, %rbx        # imm = 0x5F5E101
jae 0x263e
movq %rbx, %rdi
callq 0x230c
movq %rbx, %rdi
callq 0x2496
imulq $0xa, %rbx, %rbx
jmp 0x261f
leaq 0x8(%rsp), %rdi
callq 0x27e8
leaq 0xa58(%rip), %rsi       # 0x30a7
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2806
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2842
leaq 0x28(%rsp), %rdi
callq 0x2090
pushq $0xa
popq %rbp
leaq 0x8(%rsp), %rbx
leaq 0x48(%rsp), %r14
subl $0x1, %ebp
jb 0x2696
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2884
jmp 0x2684
leaq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rsi
leaq 0x20(%rsi), %rdx
callq 0x28c4
xorl %ebx, %ebx
leaq 0x8(%rsp), %r14
movq 0x2912(%rip), %r15      # 0x4fc8
movq 0x8(%rsp), %rsi
cmpq %rbx, %rsi
jbe 0x26e3
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2946
movq %r15, %rdi
movq %rax, %rsi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
incq %rbx
jmp 0x26b6
movq 0x28de(%rip), %rdi      # 0x4fc8
callq 0x20d0
movq %rax, %rdi
callq 0x20a0
leaq 0x48(%rsp), %rdi
callq 0x29a6
leaq 0x8(%rsp), %rdi
callq 0x29d6
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x2090
jmp 0x273d
movq %rax, %rbx
jmp 0x273d
jmp 0x2730
jmp 0x2730
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x29a6
leaq 0x8(%rsp), %rdi
callq 0x29d6
movq %rbx, %rdi
callq 0x21c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/emilisb[P]OOP-4/src/vector.h
// Function: vector<int, std::allocator<int>>::push_back(int 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 (%rdi), %rsi
cmpq 0x8(%rdi), %rsi
jne 0x278f
incq %rsi
movq %rbx, %rdi
callq 0x2a84
movq (%rbx), %rsi
movq 0x10(%rbx), %rax
movl (%r14), %ecx
movl %ecx, (%rax,%rsi,4)
incq %rsi
movq %rsi, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2a1c
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x10(%rbx), %rdi
cmpq (%rbx), %r15
jae 0x2a05
addq %r14, %rdi
callq 0x29a6
incq %r15
addq $0x20, %r14
jmp 0x29eb
movq 0x8(%rbx), %rsi
shlq $0x5, %rsi
callq 0x2160
andq $0x0, 0x10(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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, %rcx
sarq $0x5, %rcx
subq %rax, %r15
movq %r15, %r12
sarq $0x5, %r12
subq %rcx, %r12
xorl %r13d, %r13d
testq %r12, %r12
cmovgq %r12, %r13
movq %rbx, %rbp
subq $0x1, %r13
jb 0x292c
movq 0x10(%r14), %rdi
addq %rbp, %rdi
callq 0x29a6
movq 0x10(%r14), %rsi
leaq (%rsi,%rbp), %rdi
addq %r15, %rsi
callq 0x2170
addq $0x20, %r15
addq $0x20, %rbp
jmp 0x2900
subq %r12, (%r14)
movq 0x10(%r14), %rax
addq %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_O2/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 %rdi, %rbx
callq 0x2d9a
movq %rax, %r14
leaq 0x18(%rbx), %rdi
xorl %r12d, %r12d
movq %rax, %rsi
xorl %edx, %edx
callq 0x2c64
movq %rax, %r15
xorl %r13d, %r13d
cmpq (%rbx), %r13
jae 0x2d77
leaq (%r15,%r12), %rdi
movq 0x10(%rbx), %rsi
addq %r12, %rsi
callq 0x2170
movq 0x10(%rbx), %rdi
addq %r12, %rdi
callq 0x29a6
incq %r13
addq $0x20, %r12
jmp 0x2d4d
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdi
shlq $0x5, %rsi
callq 0x2160
movq %r15, 0x10(%rbx)
movq %r14, 0x8(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
movq %rdi, %rbx
movsd 0x18(%rdi), %xmm0
cvtsi2sdl 0x20(%rdi), %xmm1
divsd %xmm1, %xmm0
ucomisd 0x8(%rdi), %xmm0
jbe 0x2479
movq 0x28(%rbx), %r14
movq 0x30(%rbx), %r15
xorpd %xmm0, %xmm0
cmpq %r15, %r14
je 0x248a
movl (%r14), %esi
movq %rbx, %rdi
movsd %xmm0, 0x8(%rsp)
callq 0x2494
cvtsi2sdl 0x4(%r14), %xmm1
mulsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
addsd %xmm1, %xmm0
addq $0x8, %r14
jmp 0x2449
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x25ce
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x24ba
movl %esi, %ebx
movq %rdi, %r14
movl 0x10(%rdi), %eax
cmpl %esi, %eax
jge 0x24c2
movsd 0x1b53(%rip), %xmm0     # 0x4008
jmp 0x25ae
xorps %xmm0, %xmm0
jmp 0x25ae
cvtsi2sdl 0x20(%r14), %xmm0
movsd 0x18(%r14), %xmm1
mulsd 0x8(%r14), %xmm0
movapd %xmm0, %xmm2
addsd %xmm1, %xmm2
subsd %xmm0, %xmm1
xorpd 0x1b48(%rip), %xmm2     # 0x4030
divsd %xmm1, %xmm2
leaq 0x48a5(%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 0x344a
xorpd %xmm0, %xmm0
movq %r15, %rdi
callq 0x355c
movslq %ebx, %rax
movq 0x8(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm4
xorpd 0x1aef(%rip), %xmm4     # 0x4030
divsd %xmm0, %xmm4
cvtsi2sdl 0x20(%r14), %xmm0
movsd 0x18(%r14), %xmm1
mulsd 0x8(%r14), %xmm0
subsd %xmm0, %xmm1
movsd 0x1aad(%rip), %xmm0     # 0x4010
divsd %xmm1, %xmm0
xorl %eax, %eax
testl %ebx, %ebx
cmovgl %ebx, %eax
movsd 0x1a92(%rip), %xmm1     # 0x4008
movapd %xmm1, %xmm2
subl $0x1, %eax
jb 0x2591
movapd %xmm0, %xmm3
mulsd %xmm2, %xmm3
mulsd %xmm3, %xmm4
addsd %xmm1, %xmm2
jmp 0x257a
addsd 0x1a6f(%rip), %xmm4     # 0x4008
movapd %xmm4, 0x20(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x2dec
movaps 0x20(%rsp), %xmm0
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2dec
movq %rbx, %rdi
callq 0x2270
nop
// File: /workspace/github_cpp_makefile_star2_O2/Albuso0[P]support/support.cpp
// Function: Support::estimate_J1() const
double Support::estimate_J1() const
{
    double f1 = 0;
    for ( const auto & pair : fin )
        if ( pair.first == 1 )
        {
            f1 = pair.second;
            break;
        }
    return ( estimate_plug() + (n-1.0)/n*f1 );
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x28(%rdi), %rax
movq 0x30(%rdi), %rcx
cmpq %rcx, %rax
je 0x267a
cmpl $0x1, (%rax)
je 0x2680
addq $0x8, %rax
jmp 0x266a
xorpd %xmm0, %xmm0
jmp 0x2685
cvtsi2sdl 0x4(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x25ce
cvtsi2sdl 0x20(%rbx), %xmm1
movsd 0x1978(%rip), %xmm2     # 0x4018
addsd %xmm1, %xmm2
divsd %xmm1, %xmm2
mulsd 0x8(%rsp), %xmm2
addsd %xmm2, %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/Albuso0[P]support/support.cpp
// Function: Support::estimate_Chao1() const
double Support::estimate_Chao1() const 
{
    double f1 = 0;
    double f2 = 0;
    for ( const auto & pair : fin )
        if ( pair.first == 1 )
        {
            f1 = pair.second;
            break;
        }
    for ( const auto & pair : fin )
        if ( pair.first == 2 )
        {
            f2 = pair.second;
            break;
        }
    return estimate_plug()+f1*(f1-1)/(2*(f2+1));
}

// Assembly:
subq $0x18, %rsp
movq 0x28(%rdi), %rax
movq 0x30(%rdi), %rcx
movq %rax, %rdx
cmpq %rcx, %rdx
je 0x26d7
cmpl $0x1, (%rdx)
je 0x26dd
addq $0x8, %rdx
jmp 0x26c7
xorpd %xmm0, %xmm0
jmp 0x26e2
cvtsi2sdl 0x4(%rdx), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x1920(%rip), %xmm0     # 0x4010
cmpq %rcx, %rax
je 0x2711
cmpl $0x2, (%rax)
je 0x2700
addq $0x8, %rax
jmp 0x26f0
cvtsi2sdl 0x4(%rax), %xmm0
addsd 0x18fb(%rip), %xmm0     # 0x4008
addsd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x25ce
movsd 0x18f4(%rip), %xmm1     # 0x4018
movsd 0x10(%rsp), %xmm2
addsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
divsd 0x8(%rsp), %xmm1
addsd %xmm1, %xmm0
addq $0x18, %rsp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x262a
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x25f0
movq 0x28(%rbx), %rax
movq 0x30(%rbx), %rcx
xorpd %xmm1, %xmm1
cmpq %rcx, %rax
je 0x2788
movl (%rax), %edx
leal -0x1(%rdx), %esi
imull %edx, %esi
imull 0x4(%rax), %esi
cvtsi2sd %esi, %xmm2
addsd %xmm2, %xmm1
addq $0x8, %rax
jmp 0x2769
movsd 0x8(%rsp), %xmm4
mulsd %xmm4, %xmm1
movl 0x20(%rbx), %eax
cvtsi2sd %eax, %xmm2
divsd %xmm2, %xmm1
decl %eax
cvtsi2sd %eax, %xmm3
divsd %xmm3, %xmm1
addsd 0x1869(%rip), %xmm1     # 0x4018
xorpd %xmm3, %xmm3
maxsd %xmm1, %xmm3
movsd 0x1849(%rip), %xmm1     # 0x4008
subsd %xmm0, %xmm1
mulsd %xmm2, %xmm1
divsd %xmm0, %xmm1
mulsd %xmm3, %xmm1
addsd %xmm4, %xmm1
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x262a
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x25f0
movq 0x28(%rbx), %rax
movq 0x30(%rbx), %rcx
xorpd %xmm2, %xmm2
cmpq %rcx, %rax
je 0x2824
movl (%rax), %edx
leal -0x1(%rdx), %esi
imull %edx, %esi
imull 0x4(%rax), %esi
cvtsi2sd %esi, %xmm1
addsd %xmm1, %xmm2
addq $0x8, %rax
jmp 0x2805
movsd 0x8(%rsp), %xmm8
movapd %xmm8, %xmm1
mulsd %xmm2, %xmm1
movl 0x20(%rbx), %eax
cvtsi2sd %eax, %xmm3
divsd %xmm3, %xmm1
decl %eax
cvtsi2sd %eax, %xmm4
divsd %xmm4, %xmm1
addsd 0x17c7(%rip), %xmm1     # 0x4018
xorpd %xmm5, %xmm5
xorpd %xmm6, %xmm6
maxsd %xmm1, %xmm6
movsd 0x17a3(%rip), %xmm7     # 0x4008
movapd %xmm7, %xmm1
subsd %xmm0, %xmm1
mulsd %xmm3, %xmm1
mulsd %xmm1, %xmm2
divsd %xmm3, %xmm2
divsd %xmm4, %xmm2
divsd %xmm0, %xmm2
addsd %xmm7, %xmm2
mulsd %xmm6, %xmm2
maxsd %xmm2, %xmm5
divsd %xmm0, %xmm1
mulsd %xmm5, %xmm1
addsd %xmm8, %xmm1
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2945
movq %rax, 0x30(%rbx)
andl $0x0, 0x20(%rbx)
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x21c0
movq (%r14), %rsi
pushq $0x8
popq %rdx
movq %r15, %rdi
callq 0x20f0
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 0x20e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
cmpl $0x0, 0x20(%rax,%rcx)
jne 0x29c9
movq %r15, %rdi
movq %r13, %rsi
callq 0x20e0
movl 0x4(%rsp), %eax
movl (%rsp), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
movq %rcx, 0x8(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x2e20
movl (%rsp), %eax
imull 0x4(%rsp), %eax
addl %eax, 0x20(%rbx)
jmp 0x297a
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 0x29f5
jmp 0x29f5
jmp 0x29f5
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O2/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, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, %r15
movq 0x28(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0x2a31
movq %rax, 0x30(%r15)
andl $0x0, 0x20(%r15)
leaq 0x28(%r15), %r12
xorl %eax, %eax
movl %eax, %ebp
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rbp, %rcx
jbe 0x2a89
movl (%rax,%rbp,4), %r13d
movq 0x8(%rsp), %rax
movq (%rax), %rax
movl (%rax,%rbp,4), %ebx
movq %rbx, %rax
shlq $0x20, %rax
orq %r13, %rax
movq %rax, 0x10(%rsp)
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
callq 0x2e20
imull %r13d, %ebx
addl %ebx, 0x20(%r15)
leal 0x1(%rbp), %eax
jmp 0x2a3c
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 $0x48, %rsp
movq %rdi, %rbx
movq 0x28(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0x2ab7
movq %rax, 0x30(%rbx)
leaq 0x28(%rbx), %rax
movq %rax, 0x10(%rsp)
andl $0x0, 0x20(%rbx)
leaq 0x20(%rsp), %r13
andl $0x0, (%r13)
andq $0x0, 0x8(%r13)
movq %r13, 0x10(%r13)
movq %r13, 0x18(%r13)
andq $0x0, 0x20(%r13)
movq (%rsi), %rbp
movq 0x8(%rsi), %r14
leaq 0x18(%rsp), %r15
leaq 0x8(%rsp), %r12
cmpq %r14, %rbp
je 0x2b30
movl (%rbp), %eax
movl %eax, 0x8(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x2f9e
cmpq %r13, %rax
je 0x2b12
incl 0x24(%rax)
jmp 0x2b2a
movl (%rbp), %eax
btsq $0x20, %rax
movq %rax, 0x8(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x2ff0
addq $0x4, %rbp
jmp 0x2af1
movq 0x30(%rsp), %r12
leaq 0x8(%rsp), %r15
cmpq %r13, %r12
je 0x2b79
movl 0x20(%r12), %r14d
movl 0x24(%r12), %ebp
movq %rbp, %rax
shlq $0x20, %rax
orq %r14, %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x2e20
imull %r14d, %ebp
addl %ebp, 0x20(%rbx)
movq %r12, %rdi
callq 0x2100
movq %rax, %r12
jmp 0x2b3a
leaq 0x18(%rsp), %rdi
callq 0x2d94
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2b96
jmp 0x2b96
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2d94
movq %rbx, %rdi
callq 0x2270
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 $0x248, %rsp            # imm = 0x248
movq %rsi, %r14
movq %rdi, %rbx
movq 0x28(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0x2bd1
movq %rax, 0x30(%rbx)
andl $0x0, 0x20(%rbx)
leaq 0x18(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x40(%rsp), %rdi
callq 0x21c0
movq (%r14), %rsi
leaq 0x40(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x20f0
leaq 0x28(%rbx), %r14
leaq 0x40(%rsp), %r15
leaq 0x4(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x8(%rsp), %rbp
movq %r15, %rdi
movq %r12, %rsi
callq 0x20e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
cmpl $0x0, 0x20(%rax,%rcx)
jne 0x2c76
cmpl $0x0, 0x4(%rsp)
je 0x2c21
movq %r13, %rdi
movq %r12, %rsi
callq 0x2f9e
leaq 0x18(%rsp), %rcx
cmpq %rcx, %rax
je 0x2c5b
incl 0x24(%rax)
jmp 0x2c21
movl 0x4(%rsp), %eax
btsq $0x20, %rax
movq %rax, 0x8(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3172
jmp 0x2c21
leaq 0x40(%rsp), %rdi
callq 0x2050
movq 0x28(%rsp), %r12
leaq 0x8(%rsp), %r15
leaq 0x18(%rsp), %rax
cmpq %rax, %r12
je 0x2ccc
movl 0x20(%r12), %r13d
movl 0x24(%r12), %ebp
movq %rbp, %rax
shlq $0x20, %rax
orq %r13, %rax
movq %rax, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x2e20
imull %r13d, %ebp
addl %ebp, 0x20(%rbx)
movq %r12, %rdi
callq 0x2100
movq %rax, %r12
jmp 0x2c8a
leaq 0x40(%rsp), %rdi
callq 0x2060
leaq 0x10(%rsp), %rdi
callq 0x2d94
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d01
jmp 0x2d01
movq %rax, %rbx
jmp 0x2d0e
jmp 0x2d01
jmp 0x2d01
jmp 0x2d01
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x2060
leaq 0x10(%rsp), %rdi
callq 0x2d94
movq %rbx, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq %rbx
testl %esi, %esi
sete %al
cmpl %esi, %edi
sete %cl
orb %al, %cl
je 0x3220
pushq $0x1
popq %rcx
jmp 0x3287
movl %edi, %eax
subl %esi, %eax
jae 0x322a
xorl %ecx, %ecx
jmp 0x3287
cmpl %esi, %eax
cmovbl %eax, %esi
movl %edi, %ecx
cmpl $0x1, %esi
je 0x3287
subl %esi, %edi
leal -0x1(%rsi), %r10d
pushq $0x1
popq %r11
pushq $0x1
popq %r9
movabsq $0x7fffffffffffffff, %r8 # imm = 0x7FFFFFFFFFFFFFFF
cmpl %esi, %r11d
ja 0x3284
movq %r8, %rax
xorl %edx, %edx
divq %rcx
movl %r10d, %edx
subq %rdx, %rax
cmpq %rax, %r9
jg 0x328c
leal (%rdi,%r11), %eax
imulq %rax, %r9
movl %r11d, %ebx
movq %r9, %rax
xorl %edx, %edx
divq %rbx
incl %r11d
decl %r10d
movq %rax, %r9
jmp 0x324e
movq %r9, %rcx
movq %rcx, %rax
popq %rbx
retq
movq 0x3d5d(%rip), %rdi      # 0x6ff0
leaq 0xdd3(%rip), %rsi       # 0x406d
callq 0x2180
movq %rax, %rdi
callq 0x20c0
pushq $0x1
popq %rdi
callq 0x21d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x35f4
movl 0x8(%r14), %r15d
testb $0x1, %r15b
jne 0x3381
sarl %r15d
cvtsi2sd %r15, %xmm0
movsd %xmm0, 0x10(%rsp)
xorl %ebp, %ebp
movl %r15d, %r12d
xorl %r13d, %r13d
cmpl %r15d, %r13d
ja 0x341e
movl %r12d, %eax
cvtsi2sd %rax, %xmm1
movsd 0xd04(%rip), %xmm0      # 0x4018
callq 0x2250
movsd %xmm0, 0x20(%rsp)
movl %ebp, %ebx
cvtsi2sd %rbx, %xmm0
callq 0x2160
movsd %xmm0, 0x18(%rsp)
leal (%r15,%r13), %r14d
movl %r14d, %edi
movl %ebp, %esi
callq 0x320c
movsd 0x20(%rsp), %xmm1
mulsd 0x18(%rsp), %xmm1
mulsd 0x10(%rsp), %xmm1
movl %r14d, %ecx
cvtsi2sd %rcx, %xmm0
divsd %xmm0, %xmm1
cvtsi2sd %rax, %xmm0
mulsd %xmm1, %xmm0
movq 0x8(%rsp), %rax
movq (%rax), %rax
movsd %xmm0, (%rax,%rbx,8)
incl %r13d
addl $0x2, %ebp
decl %r12d
jmp 0x32fb
leal -0x1(%r15), %r12d
sarl %r12d
movl %r15d, %eax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x10(%rsp)
xorl %r15d, %r15d
pushq $0x1
popq %r13
movl %r12d, %ebp
cmpl %r12d, %r15d
ja 0x341e
movl %ebp, %eax
cvtsi2sd %rax, %xmm1
movsd 0xc64(%rip), %xmm0      # 0x4018
callq 0x2250
movsd %xmm0, 0x20(%rsp)
leal -0x1(%r13), %r14d
cvtsi2sd %r14, %xmm0
callq 0x2160
movsd %xmm0, 0x18(%rsp)
leal (%r12,%r15), %edi
movl %r14d, %esi
callq 0x320c
movsd 0x20(%rsp), %xmm1
mulsd 0x18(%rsp), %xmm1
mulsd 0x10(%rsp), %xmm1
movl %r13d, %ecx
cvtsi2sd %rcx, %xmm0
divsd %xmm0, %xmm1
cvtsi2sd %rax, %xmm0
mulsd %xmm1, %xmm0
movq 0x8(%rsp), %rax
movq (%rax), %rax
movsd %xmm0, (%rax,%rcx,8)
incl %r15d
addl $0x2, %r13d
decl %ebp
jmp 0x33a0
movq 0x8(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3434
movq %rax, %r14
movq 0x8(%rsp), %rdi
callq 0x2dec
movq %r14, %rdi
callq 0x2270
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x32b0
movslq 0x8(%r14), %rsi
incq %rsi
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
callq 0x35f4
pushq $0x1
popq %r13
xorl %r15d, %r15d
movslq 0x8(%r14), %rax
cmpq %rax, %r15
jg 0x351e
movl %r15d, %ebp
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x3513
movq 0x20(%rsp), %rax
movsd (%rax,%r15,8), %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0x10(%r14), %xmm0
cvtsi2sd %r12d, %xmm1
callq 0x2250
movsd %xmm0, 0x10(%rsp)
movsd 0x18(%r14), %xmm0
cvtsi2sd %ebp, %xmm1
callq 0x2250
movsd %xmm0, 0x8(%rsp)
movl %r15d, %edi
movl %r12d, %esi
callq 0x320c
movsd 0x18(%rsp), %xmm1
mulsd 0x10(%rsp), %xmm1
mulsd 0x8(%rsp), %xmm1
cvtsi2sd %rax, %xmm0
mulsd %xmm1, %xmm0
movq (%rbx), %rax
addsd (%rax,%r12,8), %xmm0
movsd %xmm0, (%rax,%r12,8)
incq %r12
decl %ebp
jmp 0x3496
incq %r15
incq %r13
jmp 0x3483
leaq 0x20(%rsp), %rdi
callq 0x2dec
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x354a
movq %rax, %r14
movq %rbx, %rdi
callq 0x2dec
leaq 0x20(%rsp), %rdi
callq 0x2dec
movq %r14, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O2/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 0xa92(%rip), %xmm0      # 0x4008
jbe 0x3598
cvtsi2sdl 0x8(%rbx), %xmm1
movsd %xmm1, 0x8(%rsp)
callq 0x2260
mulsd 0x8(%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
jmp 0x21f0
ucomisd 0xa78(%rip), %xmm0      # 0x4018
cvtsi2sdl 0x8(%rbx), %xmm1
movsd %xmm1, 0x8(%rsp)
jae 0x35df
xorpd 0xa7b(%rip), %xmm0      # 0x4030
callq 0x2260
mulsd 0x8(%rsp), %xmm0
callq 0x21f0
movzbl 0x8(%rbx), %eax
andl $0x1, %eax
negl %eax
orl $0x1, %eax
cvtsi2sd %eax, %xmm1
mulsd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
retq
callq 0x2170
mulsd 0x8(%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
jmp 0x2290