LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/irakr[P]Minimal-File-Compression-Tool/src/utils/BitVector.cpp
// Function: BitVector::stringToBitVector(char const*)
void BitVector::stringToBitVector(const char *str)
{
    int strSize = strlen(str);
    for (int i = 0; i < strSize; i++)
    {
        if (str[i] == '1')
            appendBit(true);
        else if (str[i] == '0')
            appendBit(false);
        else
            //@ throw cRuntimeError("str must represent a binary number");
            throw (new std::overflow_error("BitVector::stringToBitVector(): str must represent a binary number"));
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x20f0
movq %rax, %r15
testl %r15d, %r15d
jle 0x4be6
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
xorl %r12d, %r12d
movzbl (%rbx,%r12), %ecx
movb $0x1, %al
cmpl $0x31, %ecx
je 0x4bcf
cmpl $0x30, %ecx
jne 0x4bf2
xorl %eax, %eax
movl 0x18(%r14), %esi
movzbl %al, %edx
movq %r14, %rdi
callq 0x4d76
incq %r12
cmpq %r12, %r15
jne 0x4bbc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x8, %edi
callq 0x2110
movq %rax, %rbx
movl $0x10, %edi
callq 0x21e0
movq %rax, %r14
leaq 0x16cd(%rip), %rsi      # 0x62e0
movq %rax, %rdi
callq 0x2070
movq %r14, (%rbx)
leaq 0x414b(%rip), %rsi      # 0x8d70
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2300
movq %rax, %r15
movl $0x10, %esi
movq %r14, %rdi
callq 0x21f0
jmp 0x4c44
movq %rax, %r15
movq %rbx, %rdi
callq 0x2170
movq %r15, %rdi
callq 0x2320
// File: /workspace/github_cpp_makefile_star2_O1/irakr[P]Minimal-File-Compression-Tool/src/utils/BitVector.cpp
// Function: BitVector::BitVector(unsigned int)
BitVector::BitVector(unsigned int bits)
{
    size = 0;
    if (bits == 0)
        appendBit(false);
    while (bits > 0)
    {
        appendBit(bits % 2);
        bits /= 2;
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0xc(%rdi)
movups %xmm0, (%rdi)
testl %esi, %esi
je 0x4c88
movl %esi, %ebp
movl %ebp, %edx
andl $0x1, %edx
movl 0x18(%rbx), %esi
movq %rbx, %rdi
callq 0x4d76
movl %ebp, %eax
shrl %eax
cmpl $0x1, %ebp
movl %eax, %ebp
ja 0x4c6b
jmp 0x4c94
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4d76
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x4c9b
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4cb2
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x21f0
movq %r14, %rdi
callq 0x2320
// File: /workspace/github_cpp_makefile_star2_O1/irakr[P]Minimal-File-Compression-Tool/src/utils/BitVector.cpp
// Function: BitVector::BitVector(unsigned int, unsigned int)
BitVector::BitVector(unsigned int bits, unsigned int size)
{
    this->size = 0;
    if (bits == 0)
        appendBit(false);
    while (bits > 0)
    {
        appendBit(bits % 2);
        bits /= 2;
    }
    if (getSize() < size)
        appendBit(false, size - getSize());
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0xc(%rdi)
movups %xmm0, (%rdi)
testl %esi, %esi
je 0x4cff
movl %esi, %r14d
movl %r14d, %edx
andl $0x1, %edx
movl 0x18(%rbx), %esi
movq %rbx, %rdi
callq 0x4d76
movl %r14d, %eax
shrl %eax
cmpl $0x1, %r14d
movl %eax, %r14d
ja 0x4cde
jmp 0x4d0b
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4d76
movl 0x18(%rbx), %r14d
subl %ebp, %r14d
jae 0x4d26
movl 0x18(%rbx), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4d76
incl %r14d
jne 0x4d14
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x4d2f
jmp 0x4d2f
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4d46
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x21f0
movq %r14, %rdi
callq 0x2320
// File: /workspace/github_cpp_makefile_star2_O1/irakr[P]Minimal-File-Compression-Tool/src/utils/BitVector.cpp
// Function: BitVector::setBit(int, bool)
void BitVector::setBit(int pos, bool value)
{
    while (containerSize() <= pos)
        bytes.push_back(uint8_t(0));
    if (pos + 1 > size)
        size = pos + 1;
    uint8_t& field = bytes[pos / UINT8_LENGTH];
    if (value)
        field |= 1 << (pos % UINT8_LENGTH);
    else
        field &= ~(1 << (pos % UINT8_LENGTH));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
movl 0x8(%rdi), %ecx
movq (%rdi), %rax
subl %eax, %ecx
shll $0x3, %ecx
cmpl %esi, %ecx
jg 0x4dbb
leaq 0x7(%rsp), %r12
movb $0x0, 0x7(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x5308
movl 0x8(%r15), %ecx
movq (%r15), %rax
subl %eax, %ecx
shll $0x3, %ecx
cmpl %r14d, %ecx
jle 0x4d9a
cmpl %r14d, 0x18(%r15)
jg 0x4dc9
leal 0x1(%r14), %ecx
movl %ecx, 0x18(%r15)
leal 0x7(%r14), %edx
testl %r14d, %r14d
cmovnsl %r14d, %edx
sarl $0x3, %edx
andb $0x7, %r14b
movl $0x1, %esi
movl %r14d, %ecx
shll %cl, %esi
movslq %edx, %rcx
movb (%rax,%rcx), %dl
movl %esi, %edi
notb %dil
andb %dl, %dil
orb %sil, %dl
movzbl %dl, %edx
movzbl %dil, %esi
testb %bl, %bl
cmovnel %edx, %esi
movb %sil, (%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/irakr[P]Minimal-File-Compression-Tool/src/utils/BitVector.cpp
// Function: BitVector::toggleBit(int)
void BitVector::toggleBit(int pos)
{
    if (pos >= size)
        throw (new std::overflow_error("BitVector::toggleBit(): Bit out of range."));
        //@ throw cRuntimeError("Out of range with bit position %d", pos);

    uint8_t& field = bytes[pos / UINT8_LENGTH];
    field ^= 1 << (pos % UINT8_LENGTH);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpl %esi, 0x18(%rdi)
jle 0x4e42
leal 0x7(%rsi), %eax
testl %esi, %esi
cmovnsl %esi, %eax
sarl $0x3, %eax
cltq
andb $0x7, %sil
movl $0x1, %edx
movl %esi, %ecx
shll %cl, %edx
movq (%rdi), %rcx
xorb %dl, (%rcx,%rax)
popq %rbx
popq %r14
popq %r15
retq
movl $0x8, %edi
callq 0x2110
movq %rax, %rbx
movl $0x10, %edi
callq 0x21e0
movq %rax, %r14
leaq 0x1426(%rip), %rsi      # 0x6289
movq %rax, %rdi
callq 0x2070
movq %r14, (%rbx)
leaq 0x3efb(%rip), %rsi      # 0x8d70
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2300
movq %rax, %r15
movl $0x10, %esi
movq %r14, %rdi
callq 0x21f0
jmp 0x4e94
movq %rax, %r15
movq %rbx, %rdi
callq 0x2170
movq %r15, %rdi
callq 0x2320
// File: /workspace/github_cpp_makefile_star2_O1/irakr[P]Minimal-File-Compression-Tool/src/utils/BitVector.cpp
// Function: BitVector::getBit(int) const
bool BitVector::getBit(int pos) const
{
    if (pos >= size)
        throw (new std::overflow_error("BitVector::getBit(): Bit out of range."));
    uint8_t field = bytes[pos / UINT8_LENGTH];
    return field & (1 << (pos % UINT8_LENGTH));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpl %esi, 0x18(%rdi)
jle 0x4ed1
leal 0x7(%rsi), %eax
testl %esi, %esi
cmovnsl %esi, %eax
sarl $0x3, %eax
cltq
movq (%rdi), %rcx
movzbl (%rcx,%rax), %eax
andl $0x7, %esi
btl %esi, %eax
setb %al
popq %rbx
popq %r14
popq %r15
retq
movl $0x8, %edi
callq 0x2110
movq %rax, %rbx
movl $0x10, %edi
callq 0x21e0
movq %rax, %r14
leaq 0x13c1(%rip), %rsi      # 0x62b3
movq %rax, %rdi
callq 0x2070
movq %r14, (%rbx)
leaq 0x3e6c(%rip), %rsi      # 0x8d70
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2300
movq %rax, %r15
movl $0x10, %esi
movq %r14, %rdi
callq 0x21f0
jmp 0x4f23
movq %rax, %r15
movq %rbx, %rdi
callq 0x2170
movq %r15, %rdi
callq 0x2320
// File: /workspace/github_cpp_makefile_star2_O1/irakr[P]Minimal-File-Compression-Tool/src/utils/BitVector.cpp
// Function: operator<<(std::ostream&, BitVector const&)
std::ostream& operator<<(std::ostream& out, const BitVector& bitVector)
{
    if (bitVector.getBit(0))
        out << "1";
    else
        out << "0";
    for (int i = 1; i < bitVector.size; i++)
    {
        if (bitVector.getBit(i))
            out << " 1";
        else
            out << " 0";
    }
    return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
xorl %esi, %esi
callq 0x4ea4
leaq 0x1389(%rip), %rcx      # 0x62db
leaq 0x1385(%rip), %rsi      # 0x62de
testb %al, %al
cmovneq %rcx, %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2200
cmpl $0x2, 0x18(%r14)
jl 0x4fae
movl $0x1, %ebp
leaq 0x135b(%rip), %r15      # 0x62da
leaq 0x1357(%rip), %r12      # 0x62dd
movq %r14, %rdi
movl %ebp, %esi
callq 0x4ea4
testb %al, %al
movq %r12, %rsi
cmovneq %r15, %rsi
movl $0x2, %edx
movq %rbx, %rdi
callq 0x2200
incl %ebp
cmpl 0x18(%r14), %ebp
jl 0x4f86
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/irakr[P]Minimal-File-Compression-Tool/src/utils/BitVector.cpp
// Function: BitVector::toString[abi:cxx11]() const
std::string BitVector::toString() const
{
    std::string str;
    for (unsigned int i = 0; i < getSize(); i++)
    {
        if (getBit(i))
            str += "1";
        else
            str += "0";
    }
    return str;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
cmpl $0x0, 0x18(%rsi)
je 0x5084
movq %rsi, %r14
xorl %ebp, %ebp
leaq 0x1282(%rip), %r12      # 0x62db
leaq 0x127e(%rip), %r13      # 0x62de
movq %r14, %rdi
movl %ebp, %esi
callq 0x4ea4
movq %r12, %rsi
testb %al, %al
jne 0x5074
movq %r13, %rsi
movq %rbx, %rdi
callq 0x2350
incl %ebp
cmpl 0x18(%r14), %ebp
jb 0x5060
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x50ac
movq (%r15), %rsi
incq %rsi
callq 0x21f0
movq %r14, %rdi
callq 0x2320
// File: /workspace/github_cpp_makefile_star2_O1/irakr[P]Minimal-File-Compression-Tool/src/utils/BitVector.cpp
// Function: BitVector::toDecimal() const
unsigned int BitVector::toDecimal() const
{
    unsigned int dec = 0;
    unsigned int powerOfTwo = 1;
    for (unsigned int i = 0; i < getSize(); i++)
    {
        if (getBit(i))
            dec += powerOfTwo;
        powerOfTwo *= 2;
    }
    return dec;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x0, 0x18(%rdi)
je 0x50f9
movq %rdi, %rbx
movl $0x1, %r15d
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4ea4
testb %al, %al
movl $0x0, %eax
cmovnel %r15d, %eax
addl %eax, %ebp
addl %r15d, %r15d
incl %r14d
cmpl 0x18(%rbx), %r14d
jb 0x50d3
jmp 0x50fb
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/irakr[P]Minimal-File-Compression-Tool/src/utils/BitVector.cpp
// Function: BitVector::copy(BitVector const&)
void BitVector::copy(const BitVector& other)
{
    size = 0;
    bytes.clear();
    for (unsigned int i = 0; i < other.getSize(); i++)
        appendBit(other.getBit(i));
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x0, 0x18(%rdi)
movq (%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x524a
movq %rax, 0x8(%r14)
cmpl $0x0, 0x18(%rbx)
je 0x5272
xorl %ebp, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4ea4
movl 0x18(%r14), %esi
movzbl %al, %edx
movq %r14, %rdi
callq 0x4d76
incl %ebp
cmpl 0x18(%rbx), %ebp
jb 0x5252
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH04_Expressions/examples/incr.cc
// Function: main
int main() 
{
	int i = 0, j;
	j = ++i; // j = 1, i = 1: prefix yields the incremented value
	cout << i << " " << j << endl;

	j = i++; // j = 1, i = 2: postfix yields the unincremented value
	cout << i << " " << j << endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x2deb(%rip), %r14      # 0x3fd8
movq %r14, %rdi
movl $0x1, %esi
callq 0x1090
movq %rax, %r15
leaq 0xe00(%rip), %rbx       # 0x2004
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1070
movq %r15, %rdi
movl $0x1, %esi
callq 0x1090
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %r15, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
movq %r14, %rdi
movl $0x2, %esi
callq 0x1090
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1070
movq %r14, %rdi
movl $0x1, %esi
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
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/kmiya[P]Needleman-Wunsch/src/BaseAlgorithms.cpp
// Function: needleman_wunsch_basealgorithms::BaseAlgorithms::Alignment(needleman_wunsch_base::Base const&, needleman_wunsch_base::Base const&)
void BaseAlgorithms::Alignment(const Base &inputSequence1, const Base &inputSequence2) {
  // initialize parameter and matrix
  cout << "\n::: Alignment :::" << endl;
  cout << "Initialize phase..." << endl;
  AlignmentInit(inputSequence1, inputSequence2);
  // calculate alignment matrix
  cout << "Calculating alignment score..." << endl;
  CalcAlignmentScore(inputSequence1, inputSequence2);
  //traceback
  cout << "Traceback phase..." << endl;
  Traceback(inputSequence1, inputSequence2);
  // delete variables
  AlignmentCleanUp();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x32b6(%rip), %r12      # 0x5fd0
leaq 0x1367(%rip), %rsi      # 0x4088
movl $0x12, %edx
movq %r12, %rdi
callq 0x21b0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
leaq 0x133e(%rip), %rsi      # 0x409b
movl $0x13, %edx
movq %r12, %rdi
callq 0x21b0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2e56
leaq 0x1308(%rip), %rsi      # 0x40af
movl $0x1e, %edx
movq %r12, %rdi
callq 0x21b0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2f8e
leaq 0x12dd(%rip), %rsi      # 0x40ce
movl $0x12, %edx
movq %r12, %rdi
callq 0x21b0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x300e
movq 0x10(%rbx), %rdi
addq $0x8, %rsp
testq %rdi, %rdi
je 0x2e4d
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x21e0
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kmiya[P]Needleman-Wunsch/src/BaseAlgorithms.cpp
// Function: needleman_wunsch_basealgorithms::BaseAlgorithms::AlignmentInit(needleman_wunsch_base::Base const&, needleman_wunsch_base::Base const&)
void BaseAlgorithms::AlignmentInit(const Base &inputSequence1, const Base &inputSequence2) {
  // set penalties and parameters
  kMatch    =   1;
  kMismatch =  -1;
  kGap      =  -1;
  kMatSizeX = inputSequence1.SequenceSize();
  kMatSizeY = inputSequence2.SequenceSize();
  kMatSize  = (kMatSizeX+1) * (kMatSizeY+1);
  scoreMatrix = new Score[ kMatSize ];
  // initialize scoreMatrix
  for ( unsigned int i = 0; i < kMatSize; ++i ) {
    scoreMatrix[i].score = 0;
    scoreMatrix[i].previousX = 0;
    scoreMatrix[i].previousY = 0;
    scoreMatrix[i].XAlignWithGap = -100;
    scoreMatrix[i].YAlignWithGap = -100;
  }
  // boundary conditions
  ComesFrom(0, 0, kOrigin);
  for ( unsigned int x = 1; x <= kMatSizeX; ++x ) {
    Mat(0, x)->score = kMismatch * static_cast<int>(x);
    ComesFrom(0, x, kEdgeTop);
  }
  for ( unsigned int y = 1; y <= kMatSizeY; ++y ) {
    Mat(y, 0)->score = kMismatch * static_cast<int>(y);
    ComesFrom(y, 0, kEdgeLeft);
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movabsq $-0xffffffff, %rax      # imm = 0xFFFFFFFF00000001
movq %rax, 0x18(%rdi)
movl $0xffffffff, 0x20(%rdi) # imm = 0xFFFFFFFF
movq %rsi, %rdi
callq 0x26d2
movl %eax, 0x24(%rbx)
movq %r14, %rdi
callq 0x26d2
movl %eax, %r14d
movl %eax, 0x28(%rbx)
movl 0x24(%rbx), %eax
incl %eax
incl %r14d
imull %eax, %r14d
movl %r14d, 0x2c(%rbx)
leaq (,%r14,4), %rax
leaq (%rax,%rax,4), %rdi
callq 0x2030
movq %rax, 0x10(%rbx)
testl %r14d, %r14d
je 0x2ee5
movl %r14d, %ecx
shlq $0x2, %rcx
leaq (%rcx,%rcx,4), %rcx
xorl %edx, %edx
movaps 0x1180(%rip), %xmm0     # 0x4050
movups %xmm0, (%rax,%rdx)
movl $0xffffff9c, 0x10(%rax,%rdx) # imm = 0xFFFFFF9C
addq $0x14, %rdx
cmpq %rdx, %rcx
jne 0x2ed0
leaq 0xc(%rsp), %rcx
movl $0x0, (%rcx)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x313a
cmpl $0x0, 0x24(%rbx)
je 0x2f3d
movl $0x1, %ebp
leaq 0x8(%rsp), %r14
movl 0x1c(%rbx), %eax
imull %ebp, %eax
movq 0x10(%rbx), %rcx
movl %ebp, %edx
leaq (%rdx,%rdx,4), %rdx
movl %eax, (%rcx,%rdx,4)
movl $0x1, 0x8(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
movq %r14, %rcx
callq 0x313a
incl %ebp
cmpl 0x24(%rbx), %ebp
jbe 0x2f0c
cmpl $0x0, 0x28(%rbx)
je 0x2f84
movl $0x1, %ebp
leaq 0x4(%rsp), %r14
movl 0x1c(%rbx), %eax
imull %ebp, %eax
movq 0x10(%rbx), %rcx
movl 0x24(%rbx), %edx
incl %edx
imull %ebp, %edx
leaq (%rdx,%rdx,4), %rdx
movl %eax, (%rcx,%rdx,4)
movl $0x2, 0x4(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
movq %r14, %rcx
callq 0x313a
incl %ebp
cmpl 0x28(%rbx), %ebp
jbe 0x2f4d
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kmiya[P]Needleman-Wunsch/src/BaseAlgorithms.cpp
// Function: needleman_wunsch_basealgorithms::BaseAlgorithms::CalcAlignmentScore(needleman_wunsch_base::Base const&, needleman_wunsch_base::Base const&)
void BaseAlgorithms::CalcAlignmentScore(const Base &inputSequence1, const Base &inputSequence2) {
  int s;
  for ( unsigned int y = 0; y < kMatSizeY; ++y ) {   // y-axis
    for ( unsigned int x = 0; x < kMatSizeX; ++x ) {   // x-axis
      s = inputSequence1.GetBase(x) == inputSequence2.GetBase(y) ? kMatch : kMismatch;
      Max(y+1, x+1, s);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, (%rsp)
cmpl $0x0, 0x28(%rdi)
je 0x2fff
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
cmpl $0x0, 0x24(%r15)
je 0x2ff6
leal 0x1(%r12), %ebp
xorl %r13d, %r13d
movq %r14, %rdi
movl %r13d, %esi
callq 0x26c6
movl %eax, %ebx
movq (%rsp), %rdi
movl %r12d, %esi
callq 0x26c6
xorl %ecx, %ecx
cmpl %eax, %ebx
setne %cl
movl 0x18(%r15,%rcx,4), %ecx
incl %r13d
movq %r15, %rdi
movl %ebp, %esi
movl %r13d, %edx
callq 0x31e8
cmpl 0x24(%r15), %r13d
jb 0x2fbb
incl %r12d
cmpl 0x28(%r15), %r12d
jb 0x2fac
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/kmiya[P]Needleman-Wunsch/src/BaseAlgorithms.cpp
// Function: needleman_wunsch_basealgorithms::BaseAlgorithms::Traceback(needleman_wunsch_base::Base const&, needleman_wunsch_base::Base const&)
void BaseAlgorithms::Traceback(const Base &inputSequence1, const Base &inputSequence2) {
  cout << "Start tracebacking from mat["<< kMatSizeY << "," << kMatSizeX << "]:" << endl;
  clock_t start, end;
  start = clock();
  TracebackRecursive(kMatSizeY, kMatSizeX, inputSequence1, inputSequence2);
  end = clock();
  cout << "time(ms): " << (end - start)*1000./CLOCKS_PER_SEC << endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x2fa9(%rip), %rbx      # 0x5fd0
leaq 0x10b3(%rip), %rsi      # 0x40e1
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x21b0
movl 0x28(%r12), %esi
movq %rbx, %rdi
callq 0x20d0
movq %rax, %r13
leaq 0x10ac(%rip), %rsi      # 0x40fe
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movl 0x24(%r12), %esi
movq %r13, %rdi
callq 0x20d0
movq %rax, %r13
leaq 0x108a(%rip), %rsi      # 0x4100
movl $0x2, %edx
movq %rax, %rdi
callq 0x21b0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
callq 0x20c0
movq %rax, %r13
movl 0x24(%r12), %edx
movl 0x28(%r12), %esi
movq %r12, %rdi
movq %r15, %rcx
movq %r14, %r8
callq 0x3298
callq 0x20c0
movq %rax, %r14
leaq 0x1029(%rip), %rsi      # 0x4103
movl $0xa, %edx
movq %rbx, %rdi
callq 0x21b0
subq %r13, %r14
cvtsi2sd %r14, %xmm0
mulsd 0xf69(%rip), %xmm0      # 0x4060
divsd 0xf69(%rip), %xmm0      # 0x4068
movq %rbx, %rdi
callq 0x2210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x20e0
// File: /workspace/github_cpp_makefile_star2_O1/kmiya[P]Needleman-Wunsch/src/BaseAlgorithms.cpp
// Function: needleman_wunsch_basealgorithms::BaseAlgorithms::ComesFrom(int, int, needleman_wunsch_basealgorithms::BaseAlgorithms::Direction const&)
void BaseAlgorithms::ComesFrom(const int y, const int x, const Direction &direction) {
  switch (direction) {
    case kEdgeTop:
      SetParameters(y, x, x-1,   y, 0, 1); break;
    case kEdgeLeft:
      SetParameters(y, x,   x, y-1, 1, 0); break;
    case kUpperLeft:
      SetParameters(y, x, x-1, y-1, 0, 0); break;
    case kAbove:
      SetParameters(y, x,   x, y-1, 1, 0); break;
    case kLeft:
      SetParameters(y, x, x-1,   y, 0, 1); break;
    case kOrigin:
      SetParameters(y, x,   0,   0, 0, 0); break;
  }
}

// Assembly:
movl (%rcx), %eax
cmpq $0x5, %rax
ja 0x31be
leaq 0xf27(%rip), %rcx       # 0x4070
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rdi), %rax
movl 0x24(%rdi), %ecx
incl %ecx
imull %esi, %ecx
addl %edx, %ecx
decl %edx
leaq (%rcx,%rcx,4), %rcx
movl %edx, 0x4(%rax,%rcx,4)
movl %esi, 0x8(%rax,%rcx,4)
movabsq $0x100000000, %rdx      # imm = 0x100000000
movq %rdx, 0xc(%rax,%rcx,4)
retq
movq 0x10(%rdi), %rax
movl 0x24(%rdi), %ecx
incl %ecx
imull %esi, %ecx
decl %esi
addl %edx, %ecx
leaq (%rcx,%rcx,4), %rcx
movl %edx, 0x4(%rax,%rcx,4)
movl %esi, 0x8(%rax,%rcx,4)
movq $0x1, 0xc(%rax,%rcx,4)
retq
movq 0x10(%rdi), %rax
movl 0x24(%rdi), %ecx
incl %ecx
imull %esi, %ecx
addl %edx, %ecx
leaq (%rcx,%rcx,4), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rax,%rcx,4)
retq
movq 0x10(%rdi), %rax
movl 0x24(%rdi), %ecx
incl %ecx
imull %esi, %ecx
decl %esi
addl %edx, %ecx
decl %edx
leaq (%rcx,%rcx,4), %rcx
movl %edx, 0x4(%rax,%rcx,4)
movl %esi, 0x8(%rax,%rcx,4)
movq $0x0, 0xc(%rax,%rcx,4)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kmiya[P]Needleman-Wunsch/src/BaseAlgorithms.cpp
// Function: needleman_wunsch_basealgorithms::BaseAlgorithms::Max(int, int, int)
int BaseAlgorithms::Max(const int y, const int x, const int s) {
  // calculate score
  const int up   = Mat(y-1,   x)->score + kGap;
  const int left = Mat(  y, x-1)->score + kGap;
  const int mid  = Mat(y-1, x-1)->score + s;
  const int maxScore = max(up, max(mid, left));
  Mat(y, x)->score = maxScore;
  // --- for trace back ---
  if ( maxScore == mid ) {
    ComesFrom(y, x, kUpperLeft);    // from upper left
    return 0;
  } else if ( maxScore == up ) {
    ComesFrom(y, x, kAbove);        // from above
    return 0;
  } else if ( maxScore == left ) {
    ComesFrom(y, x, kLeft);         // from left
    return 0;
  }
  return -1;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
leal -0x1(%rsi), %r11d
movq 0x10(%rdi), %rax
movl 0x24(%rdi), %r9d
incl %r9d
imull %r9d, %r11d
leal (%r11,%rdx), %r8d
leaq (%r8,%r8,4), %r10
movl 0x20(%rdi), %r8d
movl (%rax,%r10,4), %r10d
addl %r8d, %r10d
imull %esi, %r9d
leal (%r9,%rdx), %ebx
decl %ebx
leaq (%rbx,%rbx,4), %rbx
addl (%rax,%rbx,4), %r8d
addl %edx, %r11d
decl %r11d
leaq (%r11,%r11,4), %r11
addl (%rax,%r11,4), %ecx
cmpl %r8d, %ecx
movl %r8d, %ebx
cmovgl %ecx, %ebx
cmpl %ebx, %r10d
movl %ebx, %r11d
cmovgl %r10d, %r11d
addl %edx, %r9d
leaq (%r9,%r9,4), %r9
movl %r11d, (%rax,%r9,4)
cmpl %ecx, %r11d
jne 0x3263
leaq 0xc(%rsp), %rcx
movl $0x3, (%rcx)
jmp 0x328a
cmpl %ebx, %r10d
jge 0x327f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %r8d, %r11d
jne 0x3291
leaq 0x4(%rsp), %rcx
movl $0x5, (%rcx)
jmp 0x328a
leaq 0x8(%rsp), %rcx
movl $0x4, (%rcx)
callq 0x313a
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kmiya[P]Needleman-Wunsch/src/BaseAlgorithms.cpp
// Function: needleman_wunsch_basealgorithms::BaseAlgorithms::TracebackRecursive(int, int, needleman_wunsch_base::Base const&, needleman_wunsch_base::Base const&)
void BaseAlgorithms::TracebackRecursive(const int y, const int x,
                                        const Base &inputSequence1, const Base &inputSequence2) {
  cout << "(" << y << "," << x << ")->";
  if ( !y && !x ) {
    cout << "Tracebacking end.\n\n";
    return;
  }
  TracebackRecursive(Mat(y, x)->previousY, Mat(y, x)->previousX,
                     inputSequence1, inputSequence2);
  // insert gaps
  if ( Mat(y, x)->XAlignWithGap ) {
    resultX->SetBase(g);
    if ( !y ) { // first string
      resultY->SetBase(inputSequence2.GetBase(y));
    } else {
      resultY->SetBase(inputSequence2.GetBase(y-1));
    }
  } else if ( Mat(y, x)->YAlignWithGap ) {
    if ( !x ) { // first string
      resultX->SetBase(inputSequence1.GetBase(x));
    } else {
      resultX->SetBase(inputSequence1.GetBase(x-1));
    }
    resultY->SetBase(g);
  } else { // if bases matched
    resultX->SetBase(inputSequence1.GetBase(x-1));
    resultY->SetBase(inputSequence2.GetBase(y-1));
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r12
movl %edx, %r15d
movl %esi, %ebp
movq %rdi, %r14
movq 0x2d18(%rip), %r13      # 0x5fd0
leaq 0xe4f(%rip), %rsi       # 0x410e
movl $0x1, %edx
movq %r13, %rdi
callq 0x21b0
movq %r13, %rdi
movl %ebp, %esi
callq 0x2240
movq %rax, %r13
leaq 0xe1e(%rip), %rsi       # 0x40fe
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq %r13, %rdi
movl %r15d, %esi
callq 0x2240
leaq 0xe11(%rip), %rsi       # 0x4110
movl $0x3, %edx
movq %rax, %rdi
callq 0x21b0
movl %r15d, %eax
orl %ebp, %eax
je 0x337b
movq 0x10(%r14), %rax
movl 0x24(%r14), %ecx
incl %ecx
imull %ebp, %ecx
addl %r15d, %ecx
leaq (%rcx,%rcx,4), %rcx
movl 0x4(%rax,%rcx,4), %edx
movl 0x8(%rax,%rcx,4), %esi
movq %r14, %rdi
movq %r12, %rcx
movq %rbx, %r8
callq 0x3298
movq 0x10(%r14), %rax
movl 0x24(%r14), %ecx
incl %ecx
imull %ebp, %ecx
addl %r15d, %ecx
leaq (%rcx,%rcx,4), %rcx
cmpl $0x0, 0xc(%rax,%rcx,4)
je 0x33a1
movq (%r14), %rdi
movl $0x4, %esi
callq 0x2698
movq 0x8(%r14), %r14
testl %ebp, %ebp
jne 0x33f4
movq %rbx, %rdi
xorl %esi, %esi
jmp 0x33fb
movq 0x2c4e(%rip), %rdi      # 0x5fd0
leaq 0xd8b(%rip), %rsi       # 0x4114
movl $0x13, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21b0
leaq (%rax,%rcx,4), %rax
cmpl $0x0, 0x10(%rax)
movq (%r14), %r13
je 0x33d8
xorl %eax, %eax
subl $0x1, %r15d
cmovbl %eax, %r15d
movq %r12, %rdi
movl %r15d, %esi
callq 0x26c6
movq %r13, %rdi
movl %eax, %esi
callq 0x2698
movq 0x8(%r14), %rdi
movl $0x4, %esi
jmp 0x3405
decl %r15d
movq %r12, %rdi
movl %r15d, %esi
callq 0x26c6
movq %r13, %rdi
movl %eax, %esi
callq 0x2698
movq 0x8(%r14), %r14
decl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x26c6
movq %r14, %rdi
movl %eax, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2698
// File: /workspace/github_cpp_makefile_star2_O1/kmiya[P]Needleman-Wunsch/src/BaseAlgorithms.cpp
// Function: needleman_wunsch_basealgorithms::BaseAlgorithms::SaveAlignment(std::ostream*)
void BaseAlgorithms::SaveAlignment(std::ostream *fout) {
  unsigned int match = 0;
  resultX->SaveString(fout);
  for (int pos = 0; pos < resultX->SequenceSize(); pos++ ) {
    if ( resultX->GetBase(pos) == resultY->GetBase(pos) ) {
      *fout << "|";
      match++;
    } else { *fout << " ";}
  }
  *fout << endl;
  resultY->SaveString(fout);
  *fout << "scoring:  match = " << kMatch << ",  mismatch = " << kMismatch << ", indel = " << kGap << endl;
  *fout << "matches: " << match << ",  score: " << Mat(kMatSizeY, kMatSizeX)->score <<"\n" << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2746
movq (%rbx), %rdi
callq 0x26d2
xorl %r15d, %r15d
testl %eax, %eax
jle 0x34a7
leaq 0xcb9(%rip), %r13       # 0x410c
xorl %r12d, %r12d
movq (%rbx), %rdi
movl %r15d, %esi
callq 0x26c6
movl %eax, %ebp
movq 0x8(%rbx), %rdi
movl %r15d, %esi
callq 0x26c6
movl $0x1, %edx
movq %r14, %rdi
cmpl %eax, %ebp
jne 0x348c
leaq 0xca6(%rip), %rsi       # 0x4128
callq 0x21b0
incl %r12d
jmp 0x3494
movq %r13, %rsi
callq 0x21b0
incl %r15d
movq (%rbx), %rdi
callq 0x26d2
cmpl %eax, %r15d
jl 0x3456
movl %r12d, %r15d
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0x2746
leaq 0xc49(%rip), %rsi       # 0x412a
movl $0x12, %edx
movq %r14, %rdi
callq 0x21b0
movl 0x18(%rbx), %esi
movq %r14, %rdi
callq 0x2240
movq %rax, %r12
leaq 0xc3a(%rip), %rsi       # 0x413d
movl $0xe, %edx
movq %rax, %rdi
callq 0x21b0
movl 0x1c(%rbx), %esi
movq %r12, %rdi
callq 0x2240
movq %rax, %r12
leaq 0xc27(%rip), %rsi       # 0x414c
movl $0xa, %edx
movq %rax, %rdi
callq 0x21b0
movl 0x20(%rbx), %esi
movq %r12, %rdi
callq 0x2240
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
leaq 0xbe9(%rip), %rsi       # 0x4157
movl $0x9, %edx
movq %r14, %rdi
callq 0x21b0
movq %r14, %rdi
movq %r15, %rsi
callq 0x20d0
movq %rax, %r14
leaq 0xbd1(%rip), %rsi       # 0x4161
movl $0xa, %edx
movq %rax, %rdi
callq 0x21b0
movl 0x24(%rbx), %eax
leal 0x1(%rax), %ecx
imull 0x28(%rbx), %ecx
movq 0x10(%rbx), %rdx
addl %eax, %ecx
leaq (%rcx,%rcx,4), %rax
movl (%rdx,%rax,4), %esi
movq %r14, %rdi
callq 0x2240
movq %rax, %rbx
leaq 0xb60(%rip), %rsi       # 0x4126
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20e0
// File: /workspace/github_cpp_makefile_star2_O1/kmiya[P]Needleman-Wunsch/src/BaseAlgorithms.cpp
// Function: needleman_wunsch_basealgorithms::BaseAlgorithms::SetParameters(int, int, int, int, int, int)
void BaseAlgorithms::SetParameters(const int    y, const int x,
                                   const int preX, const int preY,
                                   const int XGap, const int YGap) {
  Mat(y, x)->previousX = preX;
  Mat(y, x)->previousY = preY;
  Mat(y, x)->XAlignWithGap = XGap;
  Mat(y, x)->YAlignWithGap = YGap;
}

// Assembly:
movl 0x8(%rsp), %eax
movq 0x10(%rdi), %r10
movl 0x24(%rdi), %edi
incl %edi
imull %esi, %edi
addl %edx, %edi
leaq (%rdi,%rdi,4), %rdx
movl %ecx, 0x4(%r10,%rdx,4)
movl %r8d, 0x8(%r10,%rdx,4)
movl %r9d, 0xc(%r10,%rdx,4)
movl %eax, 0x10(%r10,%rdx,4)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kmiya[P]Needleman-Wunsch/src/main.cpp
// Function: printDate(std::ostream*)
void printDate(ostream *fout) {
    time_t now;
    struct tm *local;
    time(&now);
    local = localtime(&now);
    *fout << local->tm_year + 1900 << " "   // year
          << local->tm_mon + 1 << "/"       // month
          << local->tm_mday << " "          // day
          << local->tm_hour << ":"          // hour
          << local->tm_min  << ":"          // minute
          << local->tm_sec                  // second
          << endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x2160
movq %rbx, %rdi
callq 0x2100
movq %rax, %rbx
movl $0x76c, %esi            # imm = 0x76C
addl 0x14(%rax), %esi
movq %r14, %rdi
callq 0x2240
movq %rax, %r15
leaq 0x668(%rip), %r14       # 0x410c
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x21b0
movl 0x10(%rbx), %esi
incl %esi
movq %r15, %rdi
callq 0x2240
movq %rax, %r15
leaq 0x6f0(%rip), %rsi       # 0x41bb
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movl 0xc(%rbx), %esi
movq %r15, %rdi
callq 0x2240
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x21b0
movl 0x8(%rbx), %esi
movq %r15, %rdi
callq 0x2240
movq %rax, %r14
leaq 0x58e(%rip), %r15       # 0x4099
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x21b0
movl 0x4(%rbx), %esi
movq %r14, %rdi
callq 0x2240
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x21b0
movl (%rbx), %esi
movq %r14, %rdi
callq 0x2240
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/curl_easy.cpp
// Function: CURL_sp::getLibVersion()
SoftwareVersion getLibVersion ()
{
  if (const curl_version_info_data* ver = curl_version_info (CURLVERSION_NOW))
  {
    const uint major = (ver->version_num >> 16) & 0xff;
    const uint minor = (ver->version_num >> 8)  & 0xff;
    const uint patch = ver->version_num         & 0xff;
    return SoftwareVersion (major, minor, patch);
  }
  return SoftwareVersion ();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x9, %edi
callq 0x98d0
testq %rax, %rax
je 0x59158
movl 0x10(%rax), %eax
movl %eax, %ecx
shrl $0x10, %ecx
movl $0xff, %edx
andl %edx, %ecx
movl %eax, %esi
shrl $0x8, %esi
andl %edx, %esi
andl %edx, %eax
leaq 0x1b85e(%rip), %rdx     # 0x749a8
movq %rdx, (%rbx)
movl %ecx, 0x8(%rbx)
movl %esi, 0xc(%rbx)
movl %eax, 0x10(%rbx)
jmp 0x59179
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbx)
leaq 0x1b83d(%rip), %rcx     # 0x749a8
movq %rcx, (%rbx)
movq %rax, 0x8(%rbx)
movl $0x0, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/curl_easy.cpp
// Function: CURL_sp::Curl::read(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string Curl::read (const string &url)
{
  string s;  s. reserve (1024);  // PAR  
  curl_easy_setopt (eh, CURLOPT_WRITEFUNCTION, write_string_cb);
  curl_easy_setopt (eh, CURLOPT_WRITEDATA, & s);
  process (url, "read");
  
  return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movl $0x400, %esi            # imm = 0x400
callq 0x9780
movq (%r15), %rdi
leaq 0xae(%rip), %rdx        # 0x5a793
movl $0x4e2b, %esi           # imm = 0x4E2B
xorl %eax, %eax
callq 0x97c0
movq (%r15), %rdi
movl $0x2711, %esi           # imm = 0x2711
movq %rbx, %rdx
xorl %eax, %eax
callq 0x97c0
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x2159(%rip), %rsi      # 0x5c86c
leaq 0x2156(%rip), %rdx      # 0x5c870
movq %rsp, %rdi
callq 0x10cc2
movq %rsp, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x59e1a
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x5a746
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x9100
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x5a777
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a777
jmp 0x5a774
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x5a78b
movq (%r12), %rsi
incq %rsi
callq 0x9100
movq %r14, %rdi
callq 0x95b0
// File: /workspace/github_cpp_makefile_star2_O1/schneebergerlab[P]GameteBinning/asPollinator_1.0.cpp
// Function: recover_real_marker_pos(int, std::map<unsigned long, ALLELE, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, ALLELE>>>)
unsigned long recover_real_marker_pos(int markerposition, map<unsigned long, ALLELE> contigmarker)
{
    // markerposition is 1-based positioning in pm pattern
    unsigned long realpos;
    //
    map<unsigned long, ALLELE>::iterator mitr;
    map<unsigned long, ALLELE>::iterator mitr_end;
    mitr     = contigmarker.begin();
    mitr_end = contigmarker.end();
    int i = 0;
    while(mitr != mitr_end)
    {   
        i ++;
        if(markerposition == i)
        {
            realpos = (*mitr).first;
        }
        mitr ++;
    }
    return realpos;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl %edi, %ebp
movq 0x18(%rsi), %rax
addq $0x8, %rbx
decl %ebp
subl $0x1, %ebp
jae 0x12381
movq 0x20(%rax), %r14
movq %rax, %rdi
callq 0x31c0
cmpq %rbx, %rax
jne 0x12378
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/schneebergerlab[P]GameteBinning/asPollinator_1.0.cpp
// Function: get_PM_count(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, CLUSCNT*)
bool get_PM_count(string posPattern, CLUSCNT* posCNT)
{
    if(posPattern.compare("P") == 0)
    {
        (*posCNT).Pcnt = 1;
        (*posCNT).Mcnt = 0;
        (*posCNT).ucnt = 0;                          
    }else
    if(posPattern.compare("M") == 0)
    {
        (*posCNT).Pcnt = 0;
        (*posCNT).Mcnt = 1;
        (*posCNT).ucnt = 0;                          
    }else   
    {
        (*posCNT).Pcnt = 0;
        (*posCNT).Mcnt = 0;
        (*posCNT).ucnt = 1;                          
    }
    return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x5b5e(%rip), %rsi      # 0x19b82
callq 0x30b0
testl %eax, %eax
je 0x14056
leaq 0x5b67(%rip), %rsi      # 0x19b9b
movq %r14, %rdi
callq 0x30b0
movl $0x0, (%rbx)
testl %eax, %eax
je 0x14066
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x4(%rbx)
jmp 0x1406e
movq $0x1, (%rbx)
movl $0x0, 0x8(%rbx)
jmp 0x1406e
movq $0x1, 0x4(%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/schneebergerlab[P]GameteBinning/asPollinator_1.0.cpp
// Function: reverse_contig_GT(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
bool reverse_contig_GT(string contig_GT, string* contig_GT_rev)
{
    *contig_GT_rev = "";
    for(int ii = 0; ii < contig_GT.size(); ii ++)
    {
        if(contig_GT[ii] == 'P') 
        {
            *contig_GT_rev += "M"; 
        }else 
        if(contig_GT[ii] == 'M') 
        {
            *contig_GT_rev += "P"; 
        }else
        {
            *contig_GT_rev += contig_GT[ii]; 
        }
    }
    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rdx
leaq 0x5b28(%rip), %rcx      # 0x19ec9
movq %rsi, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x33a0
cmpq $0x0, 0x8(%r14)
je 0x14401
xorl %r13d, %r13d
leaq 0x57c3(%rip), %r15      # 0x19b82
leaq 0x57d5(%rip), %r12      # 0x19b9b
movq (%r14), %rax
movzbl (%rax,%r13), %eax
cmpl $0x4d, %eax
je 0x143e0
cmpl $0x50, %eax
jne 0x143ed
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x143e6
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3490
jmp 0x143f8
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3230
incq %r13
cmpq %r13, 0x8(%r14)
ja 0x143c6
movb $0x1, %al
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/schneebergerlab[P]GameteBinning/asPollinator_1.0.cpp
// Function: get_similarty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, unsigned long*, unsigned long*)
bool get_similarty(string         matGT, 
                   string         patGT, 
                   string         pollenGT,
                   string*        pattern,                   
                   unsigned long* matscore, 
                   unsigned long* patscore)
{
    /*
      mat       : GATCCAGATGA
      pat       : AGCTTCATCAG
      pollenGT  : GANNCAGATGA
      =>        
      pattern =   MMuuMMMMMMM
      matscore= 9 (number of matched positions)
      patscore= 0 
    */
    if (matGT.size() != patGT.size()    || 
        matGT.size() != pollenGT.size() ||
        patGT.size() != pollenGT.size() ) 
    {
        cout << "   Error: sequences of pollen and haplotype initials are with different lengths. " << endl;
        return false;
    }
    //
    for(unsigned long ii=0; ii<matGT.size(); ii++)
    {
        if(matGT[ii]==pollenGT[ii])
        {
            (*matscore) += 1;
            (*pattern)  += "M";
        }else
        if(patGT[ii]==pollenGT[ii])
        {
            (*patscore) += 1;
            (*pattern)  += "P";
        }else
        {
            (*pattern)  += "u"; // undetermined/unclear
        }
    }
    //
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, (%rsp)
movq 0x8(%rdi), %rax
cmpq 0x8(%rsi), %rax
jne 0x1449a
movq %rdx, %r12
cmpq 0x8(%rdx), %rax
jne 0x1449a
movq %rdi, %rbp
movb $0x1, %al
cmpq $0x0, 0x8(%rdi)
je 0x144de
movq %r8, %r14
movq %rcx, %r15
movq %rsi, %r13
xorl %ebx, %ebx
movq (%rbp), %rsi
movq (%r12), %rax
movb (%rax,%rbx), %cl
movq %r14, %rax
leaq 0x573c(%rip), %rdx      # 0x19b9b
cmpb %cl, (%rsi,%rbx)
je 0x1447f
movq (%r13), %rdi
movq (%rsp), %rax
leaq 0x570f(%rip), %rdx      # 0x19b82
leaq 0x5639(%rip), %rsi      # 0x19ab3
cmpb %cl, (%rdi,%rbx)
jne 0x14485
incq (%rax)
movq %rdx, %rsi
movq %r15, %rdi
callq 0x3490
incq %rbx
cmpq 0x8(%rbp), %rbx
jb 0x1444a
movb $0x1, %al
jmp 0x144de
movq 0xcb37(%rip), %rbx      # 0x20fd8
leaq 0x58ca(%rip), %rsi      # 0x19d72
movl $0x51, %edx
movq %rbx, %rdi
callq 0x32f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/schneebergerlab[P]GameteBinning/asPollinator_1.0.cpp
// Function: get_base_position(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int*)
bool get_base_position(string base, int* pos)
{
    // 4:A 5:C 6:G 7:T 8:- 9:N
    if(base.compare("A")==0) *pos = 4; else
    if(base.compare("C")==0) *pos = 5; else
    if(base.compare("G")==0) *pos = 6; else
    if(base.compare("T")==0) *pos = 7; else
    if(base.compare("-")==0) *pos = 8; else
    if(base.compare("N")==0) *pos = 9; else
    {
        cout << "   Error: unexpected base " << base << " in marker list" << endl;
        return false;
    }
    return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x5847(%rip), %rsi      # 0x19d45
callq 0x30b0
testl %eax, %eax
je 0x145ea
leaq 0x5835(%rip), %rsi      # 0x19d47
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
je 0x145f3
leaq 0x5820(%rip), %rsi      # 0x19d49
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
je 0x145fc
leaq 0x580b(%rip), %rsi      # 0x19d4b
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
je 0x14605
leaq 0x56f4(%rip), %rsi      # 0x19c4b
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
je 0x1460e
leaq 0x50a2(%rip), %rsi      # 0x19610
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
je 0x14617
movq 0xca53(%rip), %r14      # 0x20fd8
leaq 0x5b7a(%rip), %rsi      # 0x1a106
movl $0x1a, %edx
movq %r14, %rdi
callq 0x32f0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x32f0
movq %rax, %rbx
leaq 0x5b6f(%rip), %rsi      # 0x1a121
movl $0xf, %edx
movq %rax, %rdi
callq 0x32f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
xorl %eax, %eax
jmp 0x14620
movl $0x4, (%r14)
jmp 0x1461e
movl $0x5, (%r14)
jmp 0x1461e
movl $0x6, (%r14)
jmp 0x1461e
movl $0x7, (%r14)
jmp 0x1461e
movl $0x8, (%r14)
jmp 0x1461e
movl $0x9, (%r14)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/schneebergerlab[P]GameteBinning/split_string.cpp
// Function: split_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const&)
std::vector<std::string> split_string(const string& str, const char& ch) 
{
    string next("");
    vector<string> result;

    for (string::const_iterator it = str.begin(); it != str.end(); it++) {
        // if the delimiter character is hit
        if (*it == ch) {
            // if some characters are accumulated
            if (!next.empty()) {
                // they are added to the result vector
                result.push_back(next);
                next.clear();
            }
        } else {
            // the next character is accumulated into the sequence
            next += *it;
        }
    }
    if (!next.empty())
         result.push_back(next);
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x14e2(%rip), %rdx      # 0x19ec9
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x16622
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
cmpq $0x0, 0x8(%r15)
je 0x18a59
movq (%r15), %rbp
leaq 0x8(%rsp), %r12
movb (%rbp), %al
cmpb (%r14), %al
jne 0x18a3f
cmpq $0x0, 0x10(%rsp)
je 0x18a4a
movq %rbx, %rdi
movq %r12, %rsi
callq 0x14e52
movq $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rax
movb $0x0, (%rax)
jmp 0x18a4a
movsbl %al, %esi
movq %r12, %rdi
callq 0x3230
incq %rbp
movq (%r15), %rax
addq 0x8(%r15), %rax
cmpq %rax, %rbp
jne 0x18a11
cmpq $0x0, 0x10(%rsp)
je 0x18a6e
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x14e52
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x18a85
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x18a99
movq %rax, %r14
movq %rbx, %rdi
callq 0x147aa
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x18abb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
movq %r14, %rdi
callq 0x3460