LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/zeeev[P]DASVC/bamtools/src/api/internal/sam/SamHeaderValidator_p.cpp
// Function: BamTools::Internal::SamHeaderValidator::ValidateGroupOrder()
bool SamHeaderValidator::ValidateGroupOrder(void) {

    const string& groupOrder = m_header.GroupOrder;

    // if no group order, no problem, just return OK
    if ( groupOrder.empty() )
        return true;

    // if group order is valid keyword
    if ( groupOrder == Constants::SAM_HD_GROUPORDER_NONE  ||
         groupOrder == Constants::SAM_HD_GROUPORDER_QUERY ||
         groupOrder == Constants::SAM_HD_GROUPORDER_REFERENCE
       )
    {
        return true;
    }

    // otherwise
    AddError("Invalid group order (GO): " + groupOrder);
    return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq (%rdi), %r15
movq 0x48(%r15), %r12
movb $0x1, %bl
testq %r12, %r12
je 0x53c86
movq %rdi, %r14
addq $0x40, %r15
cmpq 0x1ae07(%rip), %r12     # 0x6ea00
jne 0x53c11
movq 0x1adf6(%rip), %rsi     # 0x6e9f8
movq (%r15), %rdi
movq %r12, %rdx
callq 0x277e0
testl %eax, %eax
je 0x53c86
cmpq 0x1ae08(%rip), %r12     # 0x6ea20
jne 0x53c30
movq 0x1adf7(%rip), %rsi     # 0x6ea18
movq (%r15), %rdi
movq %r12, %rdx
callq 0x277e0
testl %eax, %eax
je 0x53c86
cmpq 0x1ae09(%rip), %r12     # 0x6ea40
jne 0x53c4f
movq 0x1adf8(%rip), %rsi     # 0x6ea38
movq (%r15), %rdi
movq %r12, %rdx
callq 0x277e0
testl %eax, %eax
je 0x53c86
leaq 0x3930(%rip), %rsi      # 0x57586
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rdx
callq 0x273f0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x27500
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x53c84
callq 0x27560
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x53caa
callq 0x27560
movq %rbx, %rdi
callq 0x28c10
// File: /workspace/github_cpp_makefile_star2_O3/zeeev[P]DASVC/bamtools/src/api/internal/sam/SamHeaderValidator_p.cpp
// Function: BamTools::Internal::SamHeaderValidator::CheckNameFormat(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool SamHeaderValidator::CheckNameFormat(const string& name) {

    // invalid if name is empty
    if ( name.empty() ) {
        AddError("Sequence entry (@SQ) is missing SN tag");
        return false;
    }

    // invalid if first character is a reserved char
    const char firstChar = name.at(0);
    if ( firstChar == Constants::SAM_EQUAL || firstChar == Constants::SAM_STAR ) {
        AddError("Invalid sequence name (SN): " + name);
        return false;
    }
    // otherwise OK
    return true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x8(%rsi)
je 0x53ef1
movq %rsi, %rdx
movq (%rsi), %rax
movzbl (%rax), %eax
cmpl $0x2a, %eax
setne %cl
cmpl $0x3d, %eax
setne %bpl
andb %cl, %bpl
cmpl $0x3d, %eax
je 0x53ebf
cmpl $0x2a, %eax
jne 0x53f2b
leaq 0x3726(%rip), %rsi      # 0x575ec
movq %rsp, %r14
movq %r14, %rdi
callq 0x273f0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x27500
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x53f2b
callq 0x27560
jmp 0x53f2b
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x36c4(%rip), %rsi      # 0x575c5
leaq 0x36e3(%rip), %rdx      # 0x575eb
movq %rsp, %rdi
callq 0x26750
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x27500
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x53f29
callq 0x27560
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x53f5a
jmp 0x53f5f
movq %rax, %rbx
jmp 0x53f5f
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x53f5f
callq 0x27560
movq %rbx, %rdi
callq 0x28c10
nop
// File: /workspace/github_cpp_makefile_star2_O3/zeeev[P]DASVC/bamtools/src/api/internal/sam/SamHeaderValidator_p.cpp
// Function: BamTools::Internal::SamHeaderValidator::CheckLengthInRange(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool SamHeaderValidator::CheckLengthInRange(const string& length) {

    // invalid if empty
    if ( length.empty() ) {
        AddError("Sequence entry (@SQ) is missing LN tag");
        return false;
    }

    // convert string length to numeric
    stringstream lengthStream(length);
    unsigned int sequenceLength;
    lengthStream >> sequenceLength;

    // invalid if length outside accepted range
    if ( sequenceLength < Constants::SAM_SQ_LENGTH_MIN || sequenceLength > Constants::SAM_SQ_LENGTH_MAX ) {
        AddError("Sequence length (LN): " + length + " out of range");
        return false;
    }

    // otherwise OK
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rdi, %rbx
cmpq $0x0, 0x8(%rsi)
je 0x54036
movq %rsi, %r14
leaq 0x50(%rsp), %r15
movq %r15, %rdi
movl $0x18, %edx
callq 0x28740
leaq 0xc(%rsp), %rsi
movq %r15, %rdi
callq 0x28b90
movl 0xc(%rsp), %eax
decl %eax
cmpl $0x1fffffff, %eax       # imm = 0x1FFFFFFF
setb %bpl
jb 0x5402a
leaq 0x3673(%rip), %rsi      # 0x57630
leaq 0x30(%rsp), %rdi
movq %r14, %rdx
callq 0x273f0
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x267c0
leaq 0x3656(%rip), %rsi      # 0x57647
leaq 0x10(%rsp), %rdi
callq 0x29090
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x27500
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x54017
callq 0x27560
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5402a
callq 0x27560
leaq 0x50(%rsp), %rdi
callq 0x270d0
jmp 0x54075
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x35c3(%rip), %rsi      # 0x57609
leaq 0x35e2(%rip), %rdx      # 0x5762f
leaq 0x50(%rsp), %rdi
callq 0x26750
leaq 0x50(%rsp), %rsi
movq %rbx, %rdi
callq 0x27500
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x54073
callq 0x27560
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x54087
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x5409e
callq 0x27560
jmp 0x5409e
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x540d1
callq 0x27560
jmp 0x540d1
jmp 0x540ce
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x540db
callq 0x27560
jmp 0x540db
movq %rax, %rbx
jmp 0x540db
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x270d0
movq %rbx, %rdi
callq 0x28c10
movq %rax, %rdi
callq 0x2f047
nop
// File: /workspace/github_cpp_makefile_star2_O3/zeeev[P]DASVC/bamtools/src/api/internal/sam/SamHeaderValidator_p.cpp
// Function: BamTools::Internal::SamHeaderValidator::CheckSequencingTechnology(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool SamHeaderValidator::CheckSequencingTechnology(const string& technology) {

    // if no technology provided, no problem, just return OK
    if ( technology.empty() )
        return true;

    // if technology is valid keyword
    if ( caseInsensitiveCompare(technology, Constants::SAM_RG_SEQTECHNOLOGY_CAPILLARY)  ||
         caseInsensitiveCompare(technology, Constants::SAM_RG_SEQTECHNOLOGY_HELICOS)    ||
         caseInsensitiveCompare(technology, Constants::SAM_RG_SEQTECHNOLOGY_ILLUMINA)   ||
         caseInsensitiveCompare(technology, Constants::SAM_RG_SEQTECHNOLOGY_IONTORRENT) ||
         caseInsensitiveCompare(technology, Constants::SAM_RG_SEQTECHNOLOGY_LS454)      ||
         caseInsensitiveCompare(technology, Constants::SAM_RG_SEQTECHNOLOGY_PACBIO)     ||
         caseInsensitiveCompare(technology, Constants::SAM_RG_SEQTECHNOLOGY_SOLID)
       )
    {
        return true;
    }

    // otherwise
    AddError("Invalid read group sequencing platform (PL): " + technology);
    return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r15
movq 0x8(%rsi), %rsi
movb $0x1, %bl
testq %rsi, %rsi
je 0x54539
movq %rdi, %r14
movq (%r15), %rdi
movq 0x1a628(%rip), %rdx     # 0x6ea58
movq 0x1a629(%rip), %rcx     # 0x6ea60
callq 0x54563
testb %al, %al
jne 0x54539
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq 0x1a626(%rip), %rdx     # 0x6ea78
movq 0x1a627(%rip), %rcx     # 0x6ea80
callq 0x54563
testb %al, %al
jne 0x54539
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq 0x1a624(%rip), %rdx     # 0x6ea98
movq 0x1a625(%rip), %rcx     # 0x6eaa0
callq 0x54563
testb %al, %al
jne 0x54539
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq 0x1a622(%rip), %rdx     # 0x6eab8
movq 0x1a623(%rip), %rcx     # 0x6eac0
callq 0x54563
testb %al, %al
jne 0x54539
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq 0x1a620(%rip), %rdx     # 0x6ead8
movq 0x1a621(%rip), %rcx     # 0x6eae0
callq 0x54563
testb %al, %al
jne 0x54539
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq 0x1a622(%rip), %rdx     # 0x6eaf8
movq 0x1a623(%rip), %rcx     # 0x6eb00
callq 0x54563
testb %al, %al
jne 0x54539
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq 0x1a624(%rip), %rdx     # 0x6eb18
movq 0x1a625(%rip), %rcx     # 0x6eb20
callq 0x54563
testb %al, %al
jne 0x54539
leaq 0x319d(%rip), %rsi      # 0x576a8
movq %rsp, %rbx
movq %rbx, %rdi
movq %r15, %rdx
callq 0x273f0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x27500
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x54537
callq 0x27560
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5455b
callq 0x27560
movq %rbx, %rdi
callq 0x28c10
// File: /workspace/github_cpp_makefile_star2_O3/zeeev[P]DASVC/bamtools/src/api/internal/sam/SamHeaderValidator_p.cpp
// Function: caseInsensitiveCompare(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static
bool caseInsensitiveCompare(const string& lhs, const string& rhs) {

    // can omit checking chars if lengths not equal
    const int lhsLength = lhs.length();
    const int rhsLength = rhs.length();
    if ( lhsLength != rhsLength )
        return false;

    // do *basic* toupper checks on each string char's
    for ( int i = 0; i < lhsLength; ++i ) {
        if ( toupper( (int)lhs.at(i)) != toupper( (int)rhs.at(i)) )
            return false;
    }

    // otherwise OK
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, (%rsp)
movq %rsi, %r14
cmpl %ebx, %r14d
jne 0x545c7
testl %r14d, %r14d
jle 0x545cb
movq %rdi, %r12
movl %r14d, %r13d
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
xorl %r15d, %r15d
cmpq %r15, %r14
je 0x545dc
cmpq %r15, %rbx
je 0x545eb
movsbl (%r12,%r15), %edi
callq 0x28eb0
movl %eax, %ebp
movq (%rsp), %rax
movsbl (%rax,%r15), %edi
callq 0x28eb0
cmpl %eax, %ebp
jne 0x545c7
incq %r15
cmpq %r15, %r13
jne 0x54592
setbe %al
jmp 0x545cd
xorl %eax, %eax
jmp 0x545cd
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1806(%rip), %rdi      # 0x55de9
movq %r14, %rsi
movq %r14, %rdx
jmp 0x545f8
leaq 0x17f7(%rip), %rdi      # 0x55de9
movq %rbx, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x284e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/zeeev[P]DASVC/bamtools/src/api/internal/sam/SamHeaderValidator_p.cpp
// Function: BamTools::Internal::SamHeaderValidator::ValidatePreviousProgramIds()
bool SamHeaderValidator::ValidatePreviousProgramIds(void) {

    bool isValid = true;

    // iterate over program records
    const SamProgramChain& programs = m_header.Programs;
    SamProgramConstIterator pgIter = programs.ConstBegin();
    SamProgramConstIterator pgEnd  = programs.ConstEnd();
    for ( ; pgIter != pgEnd; ++pgIter ) {
        const SamProgram& pg = (*pgIter);

        // ignore record for validation if PreviousProgramID is empty
        const string& ppId = pg.PreviousProgramID;
        if ( ppId.empty() )
            continue;

        // see if program "chain" contains an entry for ppId
        if ( !programs.Contains(ppId) ) {
            AddError("PreviousProgramID (PP): " + ppId + " is not a known ID");
            isValid = false;
        }
    }

    // return validation state
    return isValid;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movl $0x108, %r14d           # imm = 0x108
addq (%rdi), %r14
movq %r14, %rdi
callq 0x26a10
movq %rax, %r15
movq %r14, %rdi
callq 0x291a0
cmpq %rax, %r15
je 0x54874
movq %rax, %r12
addq $0x60, %r15
movb $0x1, %bpl
leaq 0x28(%rsp), %r13
cmpq $0x0, 0x8(%r15)
je 0x5485b
movq %r14, %rdi
movq %r15, %rsi
callq 0x28770
testb %al, %al
jne 0x5485b
leaq 0x8(%rsp), %rdi
leaq 0x2ef3(%rip), %rsi      # 0x576e8
movq %r15, %rdx
callq 0x273f0
leaq 0x38(%rsp), %rbp
movq %rbp, 0x28(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x267c0
movq %r13, %rdi
leaq 0x2edb(%rip), %rsi      # 0x57701
callq 0x29090
movq %rbx, %rdi
movq %r13, %rsi
callq 0x27500
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x54845
callq 0x27560
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x54859
callq 0x27560
xorl %ebp, %ebp
leaq 0xd8(%r15), %rax
addq $0x78, %r15
cmpq %r12, %r15
movq %rax, %r15
jne 0x547cf
jmp 0x54877
movb $0x1, %bpl
andb $0x1, %bpl
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x548a5
jmp 0x54893
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x548a5
callq 0x27560
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x548b9
callq 0x27560
movq %rbx, %rdi
callq 0x28c10
nop
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/Assignment.cpp
// Function: Assignment::RandomGenerate(std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>>&, unsigned int, unsigned int, int, unsigned int)
void
Assignment::RandomGenerate(mat& matrix, uint nrows, uint ncols, int Max, uint _seed){
 
  //accept new seed for random generator
  if(_seed != SEED)
    srand(_seed);
  else 
    srand(seed);
  
  matrix.clear();
  matrix.resize(nrows);
  for(uint i=0; i<nrows; i++)
    matrix[i].resize(ncols);

  //randomly generate
  for(uint i=0; i<nrows; i++)
    for(uint j=0; j<ncols; j++){
      int rdm=rand()%Max-1; 
      if(rdm<0) rdm = 0;
      matrix[i][j] = rdm;
  }      

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebx
movl %ecx, 0xc(%rsp)
movl %edx, %r13d
movq %rsi, %r14
testl %r9d, %r9d
jne 0x36df
movl (%rdi), %r9d
movl %r9d, %edi
callq 0x3220
movq (%r14), %rsi
movq %r14, %rdi
callq 0x3f78
movl %r13d, %esi
movq %r14, %rdi
movq %rsi, 0x10(%rsp)
callq 0x3f0a
testl %r13d, %r13d
je 0x3791
movl 0xc(%rsp), %r12d
movq 0x10(%rsp), %rax
leaq (,%rax,8), %rax
leaq (%rax,%rax,2), %r15
xorl %ebp, %ebp
movq (%r14), %rdi
addq %rbp, %rdi
movq %r12, %rsi
callq 0x3f46
addq $0x18, %rbp
cmpq %rbp, %r15
jne 0x3723
testl %r13d, %r13d
je 0x3791
xorl %r13d, %r13d
cmpl $0x0, 0xc(%rsp)
je 0x3787
leaq (,%r13,2), %rbp
addq %r13, %rbp
xorl %r15d, %r15d
callq 0x30a0
cltd
idivl %ebx
cmpl $0x2, %edx
jge 0x3769
movl $0x1, %edx
decl %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movq (%r14), %rax
movq (%rax,%rbp,8), %rax
movsd %xmm0, (%rax,%r15,8)
incq %r15
cmpq %r15, %r12
jne 0x3757
incq %r13
cmpq 0x10(%rsp), %r13
jne 0x3742
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/Assignment.cpp
// Function: Assignment::ImportMatrix(std::basic_ifstream<char, std::char_traits<char>>&)
void
Assignment::ImportMatrix(ifstream& input_file){

  ImportMatrix(input_file, matrix);
  //update class data members
  row_size = matrix.size();
  col_size = matrix[0].size();

}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rdi), %rdx
callq 0x37cc
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
imull $0xaaaaaaab, %ecx, %ecx # imm = 0xAAAAAAAB
movl %ecx, 0x4(%rbx)
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
movl %ecx, 0x8(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::RandSolution()
void
Primal::RandSolution(void){

  // assign the diagnol as the initial feasible solution
  assignment.resize(row_size);
  for(uint i=0; i<row_size; i++)
    assignment[i]=i;

  // dual row vars are 0s
  dual_row_vars.resize(row_size, 0);

  // dual col vars are the values on the diagnol
  dual_col_vars.resize(row_size);
  for(uint i=0; i<col_size; i++)
    dual_col_vars[i]=orig_matrix[i][i];

  // update the oprt matrix
  for(uint i=0; i<row_size; i++){
    for(uint j=0; j<col_size; j++){
      oprt_matrix[i][j] -= dual_col_vars[j];
    }
  }

  _cout("NOTE: the index of row/col is from 0, NOT 1 !"<<endl);
  _cout("Update the matrix: "<<endl);
  DisplayMatrix(oprt_matrix);

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xf8(%rdi), %r14
movl (%rdi), %esi
movq %r14, %rdi
callq 0x6c3c
cmpl $0x0, (%rbx)
je 0x4531
movq (%r14), %rax
xorl %ecx, %ecx
movl %ecx, (%rax,%rcx,4)
incq %rcx
movl (%rbx), %esi
cmpq %rsi, %rcx
jb 0x4522
jmp 0x4533
xorl %esi, %esi
leaq 0x8(%rbx), %rdi
movq %rsp, %rdx
movq $0x0, (%rdx)
callq 0x6c6e
leaq 0x20(%rbx), %rdi
movl (%rbx), %esi
callq 0x3f46
movl 0x4(%rbx), %eax
testq %rax, %rax
je 0x457f
movq 0x20(%rbx), %rcx
movq 0xb0(%rbx), %rdx
xorl %esi, %esi
movq (%rdx), %rdi
movsd (%rdi,%rsi,8), %xmm0
movsd %xmm0, (%rcx,%rsi,8)
incq %rsi
addq $0x18, %rdx
cmpq %rsi, %rax
jne 0x4566
movl (%rbx), %ecx
testq %rcx, %rcx
je 0x45c5
movq 0x20(%rbx), %rdx
movq 0xc8(%rbx), %rsi
xorl %edi, %edi
testq %rax, %rax
je 0x45bd
leaq (%rdi,%rdi,2), %r8
movq (%rsi,%r8,8), %r8
xorl %r9d, %r9d
movsd (%r8,%r9,8), %xmm0
subsd (%rdx,%r9,8), %xmm0
movsd %xmm0, (%r8,%r9,8)
incq %r9
cmpq %r9, %rax
jne 0x45a3
incq %rdi
cmpq %rcx, %rdi
jne 0x4593
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::DeleteTree(_tree_node*)
uint
Primal::DeleteTree(tree_node* _root){

  uint num = 0;
  queue<tree_node*> bfs;
  bfs.push(_root);
  while(!bfs.empty()){
    tree_node* p_n = bfs.front();
    bfs.pop(); 
    num++;
    tree_node* p_sibling;
    if(p_n->child != NULL){
      bfs.push(p_n->child); 
      p_sibling = p_n->child;
      while(p_sibling->next_sibling != NULL){
        p_sibling = p_sibling->next_sibling;
        bfs.push(p_sibling);
      }
    }
    delete p_n;
  }

  return num;

}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rsi, 0x68(%rsp)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, 0x40(%r14)
movaps %xmm0, 0x30(%r14)
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0x828e
movq 0x30(%r14), %rax
movq 0x40(%r14), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x6aef
movq %rbx, (%rax)
movq 0x40(%rsp), %rcx
addq $0x8, %rcx
movq %rcx, 0x40(%rsp)
jmp 0x6b03
leaq 0x10(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x8404
movq 0x40(%rsp), %rcx
movq 0x20(%rsp), %rax
xorl %ebx, %ebx
cmpq %rax, %rcx
je 0x6c09
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %r15
movq (%rax), %r12
movq 0x30(%rsp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x6b34
addq $0x8, %rax
jmp 0x6b66
movq 0x28(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x3260
movq 0x38(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x38(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x30(%rsp)
movq %rax, 0x20(%rsp)
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x6bea
leaq 0x10(%r12), %r13
movq 0x40(%rsp), %rcx
movq 0x50(%rsp), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0x6b98
movq %rax, (%rcx)
addq $0x8, 0x40(%rsp)
jmp 0x6ba3
movq %r14, %rdi
movq %r13, %rsi
callq 0x8404
movq (%r13), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x6bea
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rcx
movq 0x50(%rsp), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0x6bd8
movq %rax, (%rcx)
addq $0x8, 0x40(%rsp)
jmp 0x6be3
movq %r14, %rdi
movq %r15, %rsi
callq 0x8404
movq 0x8(%rsp), %rax
jmp 0x6bac
incl %ebx
movl $0x28, %esi
movq %r12, %rdi
callq 0x3260
movq 0x20(%rsp), %rax
cmpq %rax, 0x40(%rsp)
jne 0x6b1d
leaq 0x10(%rsp), %rdi
callq 0x73f2
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x6c27
jmp 0x6c27
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x73f2
movq %rbx, %rdi
callq 0x33d0
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::GreedyApprox1(std::vector<unsigned int, std::allocator<unsigned int>>&)
void
Primal::GreedyApprox1(vector<uint>& _asgn){

  _asgn.clear();
  _asgn.resize(row_size);
  set<uint> mem_rows;
  //column-wise searching
  for(uint j=0; j<col_size; j++){
    double min_val = std::numeric_limits<double>::infinity(); 
    uint min_row = row_size;
    for(uint i=0; i<row_size; i++){
      if(orig_matrix[i][j] < min_val &&
      		mem_rows.find(i) == mem_rows.end()){
	min_val = orig_matrix[i][j];
	min_row = i;	
      }
    }
    _asgn[min_row] = j;
    mem_rows.insert(min_row);
  }

  //double check if the assignment is meaningful
  set<uint> test(_asgn.begin(), _asgn.end());
  assert(test.size()==row_size);
  _cout("Approximate assignment: "<<endl);
  DisplayVec<uint>(_asgn);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x472d
movq %rax, 0x8(%r14)
movl (%rbx), %esi
movq %r14, %rdi
callq 0x6c3c
leaq 0x40(%rsp), %r13
movl $0x0, (%r13)
xorl %eax, %eax
movq %rax, 0x8(%r13)
movq %r13, 0x10(%r13)
movq %r13, 0x18(%r13)
movq %rax, 0x20(%r13)
cmpl $0x0, 0x4(%rbx)
je 0x4821
xorl %ebp, %ebp
leaq 0x8(%rsp), %r12
movl (%rbx), %eax
movl %eax, 0x8(%rsp)
testq %rax, %rax
je 0x47fd
movq 0xb0(%rbx), %rcx
movq 0x48(%rsp), %rdx
movl %eax, %edi
xorl %esi, %esi
movsd 0x6922(%rip), %xmm0     # 0xb0b0
leaq (%rsi,%rsi,2), %r8
movq (%rcx,%r8,8), %r8
movsd (%r8,%rbp,8), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x47f1
testq %rdx, %rdx
je 0x47e7
movq %rdx, %r9
movq %r13, %r11
movq %r11, %r8
movq %r9, %r15
movl 0x20(%r9), %r10d
xorl %r9d, %r9d
cmpq %r10, %rsi
movq %r15, %r11
cmovaq %r8, %r11
seta %r9b
movq 0x10(%r15,%r9,8), %r9
testq %r9, %r9
jne 0x47ad
cmpq %r13, %r11
je 0x47e7
cmpq %r10, %rsi
cmovaq %r8, %r15
movl 0x20(%r15), %r8d
cmpq %r8, %rsi
jae 0x47f1
movl %esi, 0x8(%rsp)
movl %esi, %edi
movapd %xmm1, %xmm0
incq %rsi
cmpq %rax, %rsi
jne 0x478e
movl %edi, %eax
jmp 0x47ff
xorl %eax, %eax
movq (%r14), %rcx
movl %ebp, (%rcx,%rax,4)
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
callq 0x79e4
incq %rbp
movl 0x4(%rbx), %eax
cmpq %rax, %rbp
jb 0x4767
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x8(%rsp), %rdi
callq 0x6d86
movl (%rbx), %eax
cmpq %rax, 0x30(%rsp)
jne 0x485e
leaq 0x8(%rsp), %rdi
callq 0x71d4
leaq 0x38(%rsp), %rdi
callq 0x71d4
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x68ee(%rip), %rdi      # 0xb153
leaq 0x68ab(%rip), %rsi      # 0xb117
leaq 0x68f6(%rip), %rcx      # 0xb169
movl $0x67, %edx
callq 0x3150
jmp 0x487f
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x71d4
movq %rbx, %rdi
callq 0x33d0
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::InitStage()
void
Primal::InitStage(void){

  deltas.clear();
  deltas.resize(col_size, 0);
  ClearExploited();
  ClearSwapLoop();
  InitAsgnPtrs();
  InitSibPtrs();
  //init min-heaps;
  min_heaps.clear();  
  min_heaps.resize(row_size);

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x38, %rdi
movq 0x38(%rbx), %rax
cmpq %rax, 0x40(%rbx)
je 0x4c3f
movq %rax, 0x40(%rbx)
movl 0x4(%rbx), %esi
movq %rsp, %rdx
movq $0x0, (%rdx)
callq 0x6c6e
leaq 0x50(%rbx), %rdi
callq 0x7224
leaq 0x80(%rbx), %rdi
callq 0x7224
leaq 0x110(%rbx), %rdi
callq 0x70ae
movq %rbx, %rdi
callq 0x6f16
movq %rbx, %rdi
callq 0x6f6c
leaq 0xe0(%rbx), %r14
movq 0xe0(%rbx), %rsi
movq %r14, %rdi
callq 0x7f82
movl (%rbx), %esi
movq %r14, %rdi
callq 0x6fc2
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::Preprocess()
void
Primal::Preprocess(void){

  //update oprt_matrix, already done in SwapTask of previous stage
  //UpdateReducedCostMatrix(dual_row_vars, dual_col_vars);  

  min_heaps.clear();
  min_heaps.resize(row_size);

  for(uint i=0; i<row_size; i++)
    for(uint j=0; j<col_size; j++){
      if(oprt_matrix[i][j]>=0 && j!=assignment[i]){
	pair<uint, double> p(j, oprt_matrix[i][j]);
        min_heaps[i].push(p);
      }
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0xe0(%rdi), %r14
movq 0xe0(%rdi), %rsi
movq %r14, %rdi
callq 0x7f82
movl (%rbx), %esi
movq %r14, %rdi
callq 0x6fc2
movl (%rbx), %ecx
testl %ecx, %ecx
je 0x4d6c
movl 0x4(%rbx), %eax
xorl %r15d, %r15d
xorpd %xmm1, %xmm1
leaq 0x8(%rsp), %r14
movl %eax, %edx
testl %edx, %edx
je 0x4d60
leaq (%r15,%r15,2), %r12
movq %r15, %r13
shlq $0x5, %r13
xorl %ebp, %ebp
movq 0xc8(%rbx), %rcx
movq (%rcx,%r12,8), %rcx
movsd (%rcx,%rbp,8), %xmm0
ucomisd %xmm1, %xmm0
jb 0x4d50
movq 0xf8(%rbx), %rcx
movl (%rcx,%r15,4), %ecx
cmpq %rcx, %rbp
je 0x4d50
movl %ebp, 0x8(%rsp)
movsd %xmm0, 0x10(%rsp)
movq 0xe0(%rbx), %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0x6ff2
xorpd %xmm1, %xmm1
movl 0x4(%rbx), %eax
incq %rbp
movl %eax, %ecx
cmpq %rcx, %rbp
jb 0x4d07
movl (%rbx), %ecx
movl %eax, %edx
jmp 0x4d62
xorl %edx, %edx
incq %r15
movl %ecx, %esi
cmpq %rsi, %r15
jb 0x4cf6
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::NextStartEntry() const
cell
Primal::NextStartEntry(void) const{
  
  double min_v = 0;
  int min_i, min_j;
  min_i = min_j = -1;
  for(uint i=0; i<row_size; i++)
    for(uint j=0; j<col_size; j++)
      if(oprt_matrix[i][j] < min_v){
	min_v = oprt_matrix[i][j];
	min_i = i;
	min_j = j;
      }

  cell _c;
  _c.row_idx = min_i;
  _c.col_idx = min_j;

  return _c; 
}

// Assembly:
movl (%rdi), %eax
testq %rax, %rax
je 0x4dec
movl 0x4(%rdi), %edx
movq 0xc8(%rdi), %rsi
xorpd %xmm0, %xmm0
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r8d, %r8d
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
testq %rdx, %rdx
je 0x4dd2
leaq (%r8,%r8,2), %r9
movq (%rsi,%r9,8), %r9
xorl %r10d, %r10d
movsd (%r9,%r10,8), %xmm1
ucomisd %xmm1, %xmm0
cmoval %r8d, %edi
cmoval %r10d, %ecx
minsd %xmm0, %xmm1
incq %r10
movapd %xmm1, %xmm0
cmpq %r10, %rdx
jne 0x4dae
jmp 0x4dd6
movapd %xmm0, %xmm1
incq %r8
movapd %xmm1, %xmm0
cmpq %rax, %r8
jne 0x4d9e
shlq $0x20, %rcx
movl %edi, %eax
orq %rcx, %rax
retq
movq $-0x1, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::DoubleCheck()
void
Primal::DoubleCheck(void){

  for(uint i=0; i<row_size; i++)
    for(uint j=0; j<col_size; j++)
      if(oprt_matrix[i][j] < 0 && 
		fabs(oprt_matrix[i][j]) > DOUBLE_EPSILON){
        throw EXCEPTION_WRONG;
      }

}

// Assembly:
pushq %rax
movl (%rdi), %eax
testq %rax, %rax
je 0x61e2
movl 0x4(%rdi), %ecx
movq 0xc8(%rdi), %rdx
xorl %esi, %esi
xorpd %xmm0, %xmm0
movapd 0x4f2c(%rip), %xmm1     # 0xb0d0
movsd 0x4f0c(%rip), %xmm2     # 0xb0b8
testq %rcx, %rcx
je 0x61da
leaq (%rsi,%rsi,2), %rdi
movq (%rdx,%rdi,8), %rdi
xorl %r8d, %r8d
movsd (%rdi,%r8,8), %xmm3
ucomisd %xmm3, %xmm0
jbe 0x61d2
andpd %xmm1, %xmm3
ucomisd %xmm2, %xmm3
ja 0x61e4
incq %r8
cmpq %r8, %rcx
jne 0x61bc
incq %rsi
cmpq %rax, %rsi
jne 0x61ac
popq %rax
retq
movl $0x4, %edi
callq 0x3120
movl $0xfffffffe, (%rax)     # imm = 0xFFFFFFFE
movq 0x8d9d(%rip), %rsi      # 0xef98
movq %rax, %rdi
xorl %edx, %edx
callq 0x33b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::DisplayMatrix(std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>> const&, std::vector<unsigned int, std::allocator<unsigned int>> const&) const
void
Primal::DisplayMatrix(const mat& _m, const vector<uint>& _as) const{

  if(_m[0].size() > DISPLAY_WIDTH){
    cout<<"Matrix is big, not displaying."<<endl;
    return;
  }

  for(uint i=0; i<_m.size(); i++){
    for(uint j=0; j<_m[0].size(); j++){
      if(_as[i] == j)
        cout<<" "<<_m[i][j]<<"*\t";
      else
        cout<<" "<<_m[i][j]<<"\t";
    }
    cout<<endl;
  }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, (%rsp)
movq (%rsi), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
cmpq $0x50, %rcx
jbe 0x6275
movq 0x8d9c(%rip), %rbx      # 0xefc8
leaq 0x5188(%rip), %rsi      # 0xb3bb
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x32a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3170
movq %rsi, %r14
cmpq %rax, 0x8(%rsi)
je 0x6362
xorl %r13d, %r13d
movq 0x8d3c(%rip), %r15      # 0xefc8
movq 0x8(%rax), %rcx
cmpq (%rax), %rcx
je 0x6313
xorl %ebp, %ebp
leaq (,%r13,2), %r12
addq %r13, %r12
movq (%rsp), %rax
movq (%rax), %rax
movl (%rax,%r13,4), %ebx
movl $0x1, %edx
movq %r15, %rdi
leaq 0x5523(%rip), %rsi      # 0xb7df
callq 0x32a0
movq (%r14), %rax
movq (%rax,%r12,8), %rax
movsd (%rax,%rbp,8), %xmm0
movq %r15, %rdi
callq 0x3370
cmpl %ebx, %ebp
jne 0x62ea
movl $0x2, %edx
movq %rax, %rdi
leaq 0x50f2(%rip), %rsi      # 0xb3da
jmp 0x62f9
movl $0x1, %edx
movq %rax, %rdi
leaq 0x50e2(%rip), %rsi      # 0xb3db
callq 0x32a0
incl %ebp
movq (%r14), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x3, %rcx
cmpq %rbp, %rcx
ja 0x62a2
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3170
incl %r13d
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
cmpq %r13, %rcx
ja 0x628c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::ComputeCostSum(std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>> const&, std::vector<unsigned int, std::allocator<unsigned int>> const&) const
double
Primal::ComputeCostSum(const mat& _m, const vector<uint>& _as) const{

  double sum = 0;
  for(uint i=0; i<_m.size(); i++){
    for(uint j=0; j<_m[0].size(); j++)
      if(_as[i] == j)
	sum += _m[i][j];
  }
 
  return sum;

}

// Assembly:
movq (%rsi), %rax
movq 0x8(%rsi), %rsi
subq %rax, %rsi
je 0x64d3
pushq %r14
pushq %rbx
sarq $0x3, %rsi
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rcx
movq (%rax), %rsi
movq 0x8(%rax), %rdi
movq %rdi, %r8
subq %rsi, %r8
sarq $0x3, %r8
movq (%rdx), %rdx
xorpd %xmm0, %xmm0
xorl %r9d, %r9d
cmpq %rsi, %rdi
je 0x64c4
movl (%rdx,%r9,4), %r10d
leaq (%r9,%r9,2), %r11
leaq (%rax,%r11,8), %r11
xorl %ebx, %ebx
cmpl %ebx, %r10d
jne 0x64b9
movq (%r11), %r14
addsd (%r14,%rbx,8), %xmm0
incq %rbx
movl %ebx, %r14d
cmpq %r14, %r8
ja 0x64ab
incq %r9
movl %r9d, %r10d
cmpq %r10, %rcx
ja 0x6498
popq %rbx
popq %r14
retq
xorps %xmm0, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::DisplayTree(_tree_node*)
void
Primal::DisplayTree(tree_node* _root){

  queue<tree_node*> bfs;
  bfs.push(_root);
  while(!bfs.empty()){
    tree_node* p_n = bfs.front();
    bfs.pop(); 
    if(p_n->asgn==-1)
      _cout("  -the root is ^: ("
		<<p_n->c.row_idx<<", "<<p_n->c.col_idx<<")"<<endl);
    else if (p_n->asgn == 0)
      _cout("  -found a new 0: ("
		<<p_n->c.row_idx<<", "<<p_n->c.col_idx<<")"<<endl);
    else
      _cout("  -found a new *: ("
		<<p_n->c.row_idx<<", "<<p_n->c.col_idx<<")"<<endl);

    tree_node* p_sibling;
    if(p_n->child != NULL){
      bfs.push(p_n->child); 
      p_sibling = p_n->child;
      while(p_sibling->next_sibling != NULL){
        p_sibling = p_sibling->next_sibling;
        bfs.push(p_sibling);
      }
    }
  }

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rsi, 0x68(%rsp)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, 0x40(%r14)
movaps %xmm0, 0x30(%r14)
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0x828e
movq 0x30(%r14), %rax
movq 0x40(%r14), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x695d
movq %rbx, (%rax)
movq 0x40(%rsp), %rcx
addq $0x8, %rcx
movq %rcx, 0x40(%rsp)
jmp 0x6971
leaq 0x10(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x8404
movq 0x40(%rsp), %rcx
movq 0x20(%rsp), %rax
cmpq %rax, %rcx
je 0x6a5e
leaq 0x10(%rsp), %rbx
leaq 0x8(%rsp), %r14
movq (%rax), %r15
movq 0x30(%rsp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x69a0
addq $0x8, %rax
jmp 0x69d2
movq 0x28(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x3260
movq 0x38(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x38(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x30(%rsp)
movq %rax, 0x20(%rsp)
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x6a4e
addq $0x10, %r15
movq 0x40(%rsp), %rcx
movq 0x50(%rsp), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0x6a02
movq %rax, (%rcx)
addq $0x8, 0x40(%rsp)
jmp 0x6a0d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8404
movq (%r15), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x6a4e
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rcx
movq 0x50(%rsp), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0x6a3c
movq %rax, (%rcx)
addq $0x8, 0x40(%rsp)
jmp 0x6a47
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8404
movq 0x8(%rsp), %rax
jmp 0x6a10
movq 0x20(%rsp), %rax
cmpq %rax, 0x40(%rsp)
jne 0x6989
leaq 0x10(%rsp), %rdi
callq 0x73f2
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x6a76
jmp 0x6a76
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x73f2
movq %rbx, %rdi
callq 0x33d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/Utils.cpp
// Function: Utils::Stats(std::vector<double, std::allocator<double>> const&, double&, double&, double&)
void
Utils::Stats(const vector<double>& _data, 
                double& _sum, double& _avg, double& _var){

  _sum = 0;
  for(uint i=0; i<_data.size(); i++){
    _sum += _data[i];
  }

  _avg = _sum/_data.size();

  _var = 0;
  for(uint i=0; i<_data.size(); i++){
    _var += (_data[i]-_avg)*(_data[i]-_avg); 
  }
  _var = sqrt(_var/_data.size());
  
}

// Assembly:
pushq %rbx
movq %r8, %rbx
movq $0x0, (%rdx)
movq (%rsi), %rax
movq 0x8(%rsi), %rdi
movq %rdi, %rsi
subq %rax, %rsi
sarq $0x3, %rsi
cmpq %rax, %rdi
je 0x8bdf
xorpd %xmm0, %xmm0
xorl %r8d, %r8d
addsd (%rax,%r8,8), %xmm0
movsd %xmm0, (%rdx)
incq %r8
movl %r8d, %r9d
cmpq %r9, %rsi
ja 0x8b8a
cvtsi2sd %rsi, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, (%rcx)
movq $0x0, (%rbx)
xorpd %xmm0, %xmm0
cmpq %rax, %rdi
je 0x8bf4
xorl %edx, %edx
movsd (%rax,%rdx,8), %xmm2
subsd (%rcx), %xmm2
mulsd %xmm2, %xmm2
addsd %xmm2, %xmm0
movsd %xmm0, (%rbx)
incq %rdx
movl %edx, %edi
cmpq %rdi, %rsi
ja 0x8bbe
jmp 0x8bf4
cvtsi2sd %rsi, %xmm1
xorpd %xmm0, %xmm0
xorpd %xmm2, %xmm2
divsd %xmm1, %xmm2
movsd %xmm2, (%rcx)
divsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x8c08
sqrtsd %xmm0, %xmm0
jmp 0x8c0d
callq 0x31d0
movsd %xmm0, (%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/Utils.cpp
// Function: Utils::WriteMatrix(std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>> const&, char*)
void
Utils::WriteMatrix(const mat& _m, char* _fname){

  ofstream fout(_fname);
  if(!fout)
    cerr << "Cannot create output file"<<endl;
  
  for(uint i=0; i<_m.size(); i++){
    for(uint j=0; j<_m[0].size(); j++)
      fout<<_m[i][j]<<"\t";
    fout<<endl;
  }
  
  fout.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rsi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rdx, %rsi
movl $0x10, %edx
callq 0x3280
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x28(%rsp,%rax)
je 0x8c91
movq 0x639e(%rip), %r15      # 0xeff0
leaq 0x2847(%rip), %rsi      # 0xb4a0
movl $0x19, %edx
movq %r15, %rdi
callq 0x32a0
movq (%r15), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq 0x636c(%rip), %rdi      # 0xeff0
callq 0x3030
movq %rax, %rdi
callq 0x3170
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x8d45
xorl %r12d, %r12d
leaq 0x2733(%rip), %r15      # 0xb3db
movq 0x8(%rax), %rcx
cmpq (%rax), %rcx
je 0x8cf4
movl $0x1, %ebp
leaq (%r12,%r12,2), %r13
xorl %ecx, %ecx
movq (%rax,%r13,8), %rax
movsd (%rax,%rcx,8), %xmm0
movq %r14, %rdi
callq 0x3370
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x32a0
movq (%rbx), %rax
movq 0x8(%rax), %rdx
subq (%rax), %rdx
movl %ebp, %ecx
sarq $0x3, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x8cbc
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3170
incl %r12d
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
cmpq %r12, %rcx
ja 0x8ca8
leaq 0x8(%rsp), %rdi
callq 0x32e0
movq 0x626a(%rip), %rax      # 0xefc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x10(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x8(%rsp,%rcx)
callq 0x31f0
leaq 0x100(%rsp), %rdi
callq 0x30d0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8d97
jmp 0x8d97
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3310
movq %rbx, %rdi
callq 0x33d0
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/Utils.cpp
// Function: Utils::WriteMatrix(Assignment&, char*)
void
Utils::WriteMatrix(Assignment& _as, char* _fname){

  ofstream fout(_fname);
  if(!fout)
    cerr << "Cannot create output file"<<endl;
  
  fout<<"# seed: "<<_as.GetSeed()<<endl;
  for(uint i=0; i<_as.GetRowSize(); i++){
    for(uint j=0; j<_as.GetColSize(); j++)
      fout<<_as.GetMatrix()[i][j]<<"\t";
    fout<<endl;
  }
  
  fout.close();

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rsi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rdx, %rsi
movl $0x10, %edx
callq 0x3280
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x28(%rsp,%rax)
je 0x8e29
movq 0x6206(%rip), %r14      # 0xeff0
leaq 0x26af(%rip), %rsi      # 0xb4a0
movl $0x19, %edx
movq %r14, %rdi
callq 0x32a0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq 0x61d4(%rip), %rdi      # 0xeff0
callq 0x3030
movq %rax, %rdi
callq 0x3170
leaq 0x268a(%rip), %rsi      # 0xb4ba
leaq 0x8(%rsp), %rdi
movl $0x8, %edx
callq 0x32a0
movl (%rbx), %esi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3160
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3170
cmpl $0x0, 0x4(%rbx)
je 0x8ef8
xorl %r12d, %r12d
leaq 0x2553(%rip), %r15      # 0xb3db
cmpl $0x0, 0x8(%rbx)
je 0x8ec4
leaq (%r12,%r12,2), %r13
xorl %ebp, %ebp
movq 0x10(%rbx), %rax
movq (%rax,%r13,8), %rax
movsd (%rax,%rbp,8), %xmm0
movq %r14, %rdi
callq 0x3370
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x32a0
incq %rbp
movl 0x8(%rbx), %eax
cmpq %rax, %rbp
jb 0x8e94
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3170
incq %r12
movl 0x4(%rbx), %eax
cmpq %rax, %r12
jb 0x8e88
leaq 0x8(%rsp), %rdi
callq 0x32e0
movq 0x60b7(%rip), %rax      # 0xefc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x10(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x8(%rsp,%rcx)
callq 0x31f0
leaq 0x100(%rsp), %rdi
callq 0x30d0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8f4a
jmp 0x8f4a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3310
movq %rbx, %rdi
callq 0x33d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/./CmdParser.h
// Function: CmdParser::ParseCmd(int, char**)
void
CmdParser::ParseCmd(int argc, char **argv){

  int c;
  while ((c = getopt (argc, argv, "i:s:n:o:v:h")) != -1)
    switch (c)
    {
           case 'i':
             this->input_file = optarg;
             break;
           case 's':
             this->seed = atoi(optarg);
             break;
           case 'n':
             this->assignment_size = atoi(optarg);
             break;
           case 'o':
             this->output_file = optarg;
             break;
           case 'v':
             this->verbose_level = atoi(optarg);
	     if(this->verbose_level < VERBOSE_LEVEL){ 
		cout<<"Please undefine the DEBUG macro in \"Define.h\" and re-compile."<<endl<<endl;
                exit(0);
	     }
	     break;
	   case 'h':
	     this->GiveUsage(argv[0]);
	     break;
           case '?':
           default:
	     this->GiveUsage(argv[0]);
             exit(0);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
leaq 0x30(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x8(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0x221d(%rip), %r15      # 0xb550
leaq 0x21da(%rip), %r13      # 0xb514
movq 0x5c6f(%rip), %r12      # 0xefb0
movl %ebp, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x3070
leal -0x68(%rax), %ecx
cmpl $0xe, %ecx
ja 0x93e9
movslq (%r13,%rcx,4), %rax
addq %r13, %rax
jmpq *%rax
movq (%r12), %r15
movq 0x10(%r14), %r12
movq %r15, %rdi
callq 0x3100
movq 0x8(%rsp), %rdi
jmp 0x93a1
movq (%r12), %rdi
callq 0x3340
cltq
movq %rax, 0x28(%r14)
jmp 0x9341
movq (%r12), %r15
movq 0x38(%r14), %r12
movq %r15, %rdi
callq 0x3100
movq 0x10(%rsp), %rdi
xorl %esi, %esi
movq %r12, %rdx
movq 0x5c03(%rip), %r12      # 0xefb0
movq %r15, %rcx
leaq 0x2199(%rip), %r15      # 0xb550
movq %rax, %r8
callq 0x3330
jmp 0x9341
movq (%r12), %rdi
callq 0x3340
movl %eax, 0x50(%r14)
testl %eax, %eax
jne 0x9341
jmp 0x9405
movq (%r12), %rdi
callq 0x3340
movl %eax, (%r14)
jmp 0x9341
cmpl $-0x1, %eax
jne 0x93fd
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %rsi
callq 0x9430
movq 0x5bbc(%rip), %rdi      # 0xefc8
leaq 0x2149(%rip), %rsi      # 0xb55c
callq 0x3240
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
xorl %edi, %edi
callq 0x32b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/iu-vail[P]iprimal/./CmdParser.h
// Function: CmdParser::GiveUsage(char*)
void
CmdParser::GiveUsage(char *cmd)
{
   fprintf(stderr,"\nUsage:    %s \n",cmd);
   fprintf(stderr,"          -i   input an assignment file (string)\n");
   fprintf(stderr,"          -s   random generator with seed (unsigned int)\n");
   fprintf(stderr,"          -n   matrix size (size_t)\n");
   fprintf(stderr,"          -o   write into output file (string)\n");
   fprintf(stderr,"          -v   verbose level (0 or 1)\n");
   fprintf(stderr,"More details can be found in README file\n\n");
   exit(0);
}

// Assembly:
pushq %rbx
movq %rsi, %rdx
movq 0x5b95(%rip), %rbx      # 0xefd0
movq (%rbx), %rdi
leaq 0x215d(%rip), %rsi      # 0xb5a2
xorl %eax, %eax
callq 0x32f0
movq (%rbx), %rcx
leaq 0x215c(%rip), %rdi      # 0xb5b2
movl $0x31, %esi
movl $0x1, %edx
callq 0x3420
movq (%rbx), %rcx
leaq 0x2175(%rip), %rdi      # 0xb5e4
movl $0x39, %esi
movl $0x1, %edx
callq 0x3420
movq (%rbx), %rcx
leaq 0x2196(%rip), %rdi      # 0xb61e
movl $0x24, %esi
movl $0x1, %edx
callq 0x3420
movq (%rbx), %rcx
leaq 0x21a2(%rip), %rdi      # 0xb643
movl $0x2f, %esi
movl $0x1, %edx
callq 0x3420
movq (%rbx), %rcx
leaq 0x21b9(%rip), %rdi      # 0xb673
movl $0x26, %esi
movl $0x1, %edx
callq 0x3420
movq (%rbx), %rcx
leaq 0x21c7(%rip), %rdi      # 0xb69a
movl $0x2a, %esi
movl $0x1, %edx
callq 0x3420
xorl %edi, %edi
callq 0x32b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/muzuka[P]Cards-Against-Humanity-Online/Player.cpp
// Function: Player::takeCard(int)
Card Player::takeCard(int index) {
	if (index > hand.size() || index < 0) {
		return Card();
	}
	Card temp = hand[index];
	hand = deleteCard(hand, index);
	return temp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
testl %edx, %edx
js 0x2bf1
movl %edx, %r15d
movq %rsi, %r14
movslq %edx, %rax
movq 0x28(%rsi), %r13
movq 0x30(%rsi), %rcx
subq %r13, %rcx
sarq $0x3, %rcx
movabsq $-0x71c71c71c71c71c7, %rdx # imm = 0x8E38E38E38E38E39
imulq %rcx, %rdx
cmpq %rax, %rdx
jb 0x2bf1
leaq (%rax,%rax,8), %r12
leaq 0x10(%rbx), %rax
movq %rax, -0x30(%rbp)
movq %rax, (%rbx)
movq (%r13,%r12,8), %rsi
movq 0x8(%r13,%r12,8), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x30fa
movq 0x20(%r13,%r12,8), %rax
movq %rax, 0x20(%rbx)
leaq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %rax
movq %rax, 0x28(%rbx)
movq 0x28(%r13,%r12,8), %rsi
movq 0x30(%r13,%r12,8), %rdx
addq %rsi, %rdx
callq 0x30fa
leaq 0x28(%r14), %rsi
leaq -0x48(%rbp), %rdi
callq 0x2faa
leaq -0x60(%rbp), %rdi
leaq -0x48(%rbp), %rsi
movl %r15d, %edx
callq 0x2c49
movups 0x28(%r14), %xmm0
movq 0x38(%r14), %rax
leaq -0x60(%rbp), %r15
movq (%r15), %rcx
movq %rcx, 0x28(%r14)
movq 0x8(%r15), %rcx
movq %rcx, 0x30(%r14)
movq 0x10(%r15), %rcx
movq %rcx, 0x38(%r14)
leaq -0x78(%rbp), %rdi
movups %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
callq 0x2f34
movq %r15, %rdi
callq 0x2f34
leaq -0x48(%rbp), %rdi
callq 0x2f34
jmp 0x2bf9
movq %rbx, %rdi
callq 0x265c
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0x2f34
jmp 0x2c1c
movq %rax, %r14
movq %rbx, %rdi
callq 0x304e
jmp 0x2c41
movq %rax, %r14
movq (%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x2c41
movq -0x30(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2180
movq %r14, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O3/muzuka[P]Cards-Against-Humanity-Online/Player.cpp
// Function: deleteCard(std::vector<Card, std::allocator<Card>>, int)
std::vector<Card> deleteCard(std::vector<Card> cards, int index) {
	std::vector<Card> temp;
	for (int i = 0; i < (int)cards.size(); i++) {
		if (i != index) {
			temp.push_back(cards[i]);
		}
	}
	return temp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rsi), %rsi
movq 0x8(%r14), %rax
movq %rax, %rcx
subq %rsi, %rcx
shrq $0x3, %rcx
imull $0x38e38e39, %ecx, %ecx # imm = 0x38E38E39
testl %ecx, %ecx
jle 0x2cc5
movl %edx, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %r13, %r15
je 0x2ca6
addq %r12, %rsi
movq %rbx, %rdi
callq 0x2f72
movq (%r14), %rsi
movq 0x8(%r14), %rax
incq %r13
movq %rax, %rcx
subq %rsi, %rcx
shrq $0x3, %rcx
imull $0x38e38e39, %ecx, %ecx # imm = 0x38E38E39
movslq %ecx, %rcx
addq $0x48, %r12
cmpq %rcx, %r13
jl 0x2c8f
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2f34
movq %r14, %rdi
callq 0x2270