LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4e19
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 0x1479(%rip), %rsi      # 0x62b3
movq %rax, %rdi
callq 0x2070
movq %r14, (%rbx)
leaq 0x3f24(%rip), %rsi      # 0x8d70
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2300
movq %rax, %r15
movl $0x10, %esi
movq %r14, %rdi
callq 0x21f0
jmp 0x4e6b
movq %rax, %r15
movq %rbx, %rdi
callq 0x2170
movq %r15, %rdi
callq 0x2320
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4dec
leaq 0x1441(%rip), %rcx      # 0x62db
leaq 0x143d(%rip), %rsi      # 0x62de
testb %al, %al
cmovneq %rcx, %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2200
cmpl $0x2, 0x18(%r14)
jl 0x4ef6
movl $0x1, %ebp
leaq 0x1413(%rip), %r15      # 0x62da
leaq 0x140f(%rip), %r12      # 0x62dd
movq %r14, %rdi
movl %ebp, %esi
callq 0x4dec
testb %al, %al
movq %r12, %rsi
cmovneq %r15, %rsi
movl $0x2, %edx
movq %rbx, %rdi
callq 0x2200
incl %ebp
cmpl 0x18(%r14), %ebp
jl 0x4ece
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4fcc
movq %rsi, %r14
xorl %ebp, %ebp
leaq 0x133a(%rip), %r12      # 0x62db
leaq 0x1336(%rip), %r13      # 0x62de
movq %r14, %rdi
movl %ebp, %esi
callq 0x4dec
movq %r12, %rsi
testb %al, %al
jne 0x4fbc
movq %r13, %rsi
movq %rbx, %rdi
callq 0x2350
incl %ebp
cmpl 0x18(%r14), %ebp
jb 0x4fa8
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 0x4ff4
movq (%r15), %rsi
incq %rsi
callq 0x21f0
movq %r14, %rdi
callq 0x2320
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5041
movq %rdi, %rbx
movl $0x1, %r15d
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4dec
testb %al, %al
movl $0x0, %eax
cmovnel %r15d, %eax
addl %eax, %ebp
addl %r15d, %r15d
incl %r14d
cmpl 0x18(%rbx), %r14d
jb 0x501b
jmp 0x5043
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x518c
movq %rax, 0x8(%r14)
cmpl $0x0, 0x18(%rbx)
je 0x51b4
xorl %ebp, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4dec
movl 0x18(%r14), %esi
movzbl %al, %edx
movq %r14, %rdi
callq 0x4cbe
incl %ebp
cmpl 0x18(%rbx), %ebp
jb 0x5194
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2f8a
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 0x301a
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_O3/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 %r15
pushq %r14
pushq %rbx
subq $0x18, %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, %r15d
movl %eax, 0x28(%rbx)
movl 0x24(%rbx), %eax
incl %eax
incl %r15d
imull %eax, %r15d
movl %r15d, 0x2c(%rbx)
leaq (,%r15,4), %rax
leaq (%rax,%rax,4), %r14
movq %r14, %rdi
callq 0x2030
movq %rax, 0x10(%rbx)
testl %r15d, %r15d
je 0x2edf
xorl %ecx, %ecx
movaps 0x1186(%rip), %xmm0     # 0x4050
movups %xmm0, (%rax,%rcx)
movl $0xffffff9c, 0x10(%rax,%rcx) # imm = 0xFFFFFF9C
addq $0x14, %rcx
cmpq %rcx, %r14
jne 0x2eca
leaq 0x14(%rsp), %rcx
movl $0x0, (%rcx)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3146
cmpl $0x0, 0x24(%rbx)
je 0x2f37
movl $0x1, %ebp
leaq 0x10(%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, 0x10(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
movq %r14, %rcx
callq 0x3146
incl %ebp
cmpl 0x24(%rbx), %ebp
jbe 0x2f06
cmpl $0x0, 0x28(%rbx)
je 0x2f7e
movl $0x1, %ebp
leaq 0xc(%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, 0xc(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
movq %r14, %rcx
callq 0x3146
incl %ebp
cmpl 0x28(%rbx), %ebp
jbe 0x2f47
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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:
movl 0x28(%rdi), %eax
testl %eax, %eax
je 0x3019
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbp
movq %rdi, %r15
movl 0x24(%rdi), %ecx
xorl %r14d, %r14d
movq %rdx, (%rsp)
leal 0x1(%r14), %r12d
testl %ecx, %ecx
movl $0x0, %ecx
je 0x3003
xorl %r13d, %r13d
movq %rbp, %rdi
movl %r13d, %esi
callq 0x26c6
movl %eax, %ebx
movq (%rsp), %rdi
movl %r14d, %esi
callq 0x26c6
xorl %ecx, %ecx
cmpl %eax, %ebx
setne %cl
movl 0x18(%r15,%rcx,4), %ecx
incl %r13d
movq %r15, %rdi
movl %r12d, %esi
movl %r13d, %edx
callq 0x31f4
movl 0x24(%r15), %ecx
cmpl %ecx, %r13d
jb 0x2fc0
movl 0x28(%r15), %eax
movl %r12d, %r14d
cmpl %eax, %r12d
jb 0x2fb0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2f9d(%rip), %rbx      # 0x5fd0
leaq 0x10a7(%rip), %rsi      # 0x40e1
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x21b0
movl 0x28(%r12), %esi
movq %rbx, %rdi
callq 0x20d0
movq %rax, %r13
leaq 0x10a0(%rip), %rsi      # 0x40fe
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movl 0x24(%r12), %esi
movq %r13, %rdi
callq 0x20d0
movq %rax, %r13
leaq 0x107e(%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 0x32a4
callq 0x20c0
movq %rax, %r14
leaq 0x101d(%rip), %rsi      # 0x4103
movl $0xa, %edx
movq %rbx, %rdi
callq 0x21b0
subq %r13, %r14
cvtsi2sd %r14, %xmm0
mulsd 0xf5d(%rip), %xmm0      # 0x4060
divsd 0xf5d(%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_O3/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 0x326f
leaq 0xc(%rsp), %rcx
movl $0x3, (%rcx)
jmp 0x3296
cmpl %ebx, %r10d
jge 0x328b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %r8d, %r11d
jne 0x329d
leaq 0x4(%rsp), %rcx
movl $0x5, (%rcx)
jmp 0x3296
leaq 0x8(%rsp), %rcx
movl $0x4, (%rcx)
callq 0x3146
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2d0c(%rip), %r13      # 0x5fd0
leaq 0xe43(%rip), %rsi       # 0x410e
movl $0x1, %edx
movq %r13, %rdi
callq 0x21b0
movq %r13, %rdi
movl %ebp, %esi
callq 0x2240
movq %rax, %r13
leaq 0xe12(%rip), %rsi       # 0x40fe
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq %r13, %rdi
movl %r15d, %esi
callq 0x2240
leaq 0xe05(%rip), %rsi       # 0x4110
movl $0x3, %edx
movq %rax, %rdi
callq 0x21b0
movl %r15d, %eax
orl %ebp, %eax
je 0x3387
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 0x32a4
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 0x33ad
movq (%r14), %rdi
movl $0x4, %esi
callq 0x2698
movq 0x8(%r14), %r14
testl %ebp, %ebp
jne 0x3400
movq %rbx, %rdi
xorl %esi, %esi
jmp 0x3407
movq 0x2c42(%rip), %rdi      # 0x5fd0
leaq 0xd7f(%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 0x33e4
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 0x3411
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_O3/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 0x34b3
leaq 0xcad(%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 0x3498
leaq 0xc9a(%rip), %rsi       # 0x4128
callq 0x21b0
incl %r12d
jmp 0x34a0
movq %r13, %rsi
callq 0x21b0
incl %r15d
movq (%rbx), %rdi
callq 0x26d2
cmpl %eax, %r15d
jl 0x3462
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 0xc3d(%rip), %rsi       # 0x412a
movl $0x12, %edx
movq %r14, %rdi
callq 0x21b0
movl 0x18(%rbx), %esi
movq %r14, %rdi
callq 0x2240
movq %rax, %r12
leaq 0xc2e(%rip), %rsi       # 0x413d
movl $0xe, %edx
movq %rax, %rdi
callq 0x21b0
movl 0x1c(%rbx), %esi
movq %r12, %rdi
callq 0x2240
movq %rax, %r12
leaq 0xc1b(%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 0xbdd(%rip), %rsi       # 0x4157
movl $0x9, %edx
movq %r14, %rdi
callq 0x21b0
movq %r14, %rdi
movq %r15, %rsi
callq 0x20d0
movq %rax, %r14
leaq 0xbc5(%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 0xb54(%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_O3/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 0x65c(%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 0x6e4(%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 0x582(%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