LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: zeeev[P]DASVC/bamtools/src/api/internal/sam/SamHeaderValidator_p.cpp
// Function: BamTools::Internal::SamHeaderValidator::ValidateProgramChain()
bool SamHeaderValidator::ValidateProgramChain(void) {
    bool isValid = true;
    isValid &= ContainsUniqueProgramIds();
    isValid &= ValidatePreviousProgramIds();
    return isValid;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq %rdi, (%rsp)
movb $0x1, 0xf(%rsp)
callq 0x7b430
movq (%rsp), %rdi
andb $0x1, %al
movzbl %al, %ecx
movb 0xf(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
andl %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0xf(%rsp)
callq 0x72de0
andb $0x1, %al
movzbl %al, %ecx
movb 0xf(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
andl %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
andb $0x1, %al
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: zeeev[P]DASVC/bamtools/src/api/internal/sam/SamHeaderValidator_p.cpp
// Function: BamTools::Internal::SamHeaderValidator::ValidateSortOrder()
bool SamHeaderValidator::ValidateSortOrder(void) {

    const string& sortOrder = m_header.SortOrder;

    // warn if sort order not present
    if ( sortOrder.empty() ) {
        AddWarning("Sort order (SO) missing. Not required, but strongly recommended");
        return true;
    }

    // if sort order is valid keyword
    if ( sortOrder == Constants::SAM_HD_SORTORDER_COORDINATE ||
         sortOrder == Constants::SAM_HD_SORTORDER_QUERYNAME  ||
         sortOrder == Constants::SAM_HD_SORTORDER_UNSORTED
       )
    {
        return true;
    }

    // otherwise
    AddError("Invalid sort order (SO): " + sortOrder);
    return false;
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x78(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x10(%rsp)
movq (%rax), %rax
addq $0x20, %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rdi
callq 0x7aba0
testb $0x1, %al
jne 0xe6bd5
jmp 0xe6c6b
leaq 0x4f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x7b5f0
movq 0x8(%rsp), %rdx
leaq 0x5ba9(%rip), %rsi      # 0xec799
leaq 0x50(%rsp), %rdi
callq 0x78e70
jmp 0xe6bfc
movq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x73580
jmp 0xe6c0d
leaq 0x50(%rsp), %rdi
callq 0x7cce8
jmp 0xe6c19
leaq 0x4f(%rsp), %rdi
callq 0x76f80
movb $0x1, 0x87(%rsp)
jmp 0xe6d10
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
jmp 0xe6c5c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x7cce8
jmp 0xe6c5a
jmp 0xe6c5c
leaq 0x4f(%rsp), %rdi
callq 0x76f80
jmp 0xe6d21
movq 0x70(%rsp), %rdi
leaq 0x33241(%rip), %rsi     # 0x119eb8
callq 0x74120
testb $0x1, %al
jne 0xe6cac
movq 0x70(%rsp), %rdi
leaq 0x3324c(%rip), %rsi     # 0x119ed8
callq 0x74120
testb $0x1, %al
jne 0xe6cac
movq 0x70(%rsp), %rdi
leaq 0x33277(%rip), %rsi     # 0x119f18
callq 0x74120
testb $0x1, %al
jne 0xe6cac
jmp 0xe6cb6
movb $0x1, 0x87(%rsp)
jmp 0xe6d10
movq 0x70(%rsp), %rdx
leaq 0x5b17(%rip), %rsi      # 0xec7d9
leaq 0x18(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x75e70
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
callq 0x763a0
jmp 0xe6ce0
leaq 0x18(%rsp), %rdi
callq 0x7cce8
movb $0x0, 0x87(%rsp)
jmp 0xe6d10
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x7cce8
jmp 0xe6d0e
jmp 0xe6d21
movb 0x87(%rsp), %al
andb $0x1, %al
addq $0x88, %rsp
retq
movq 0x40(%rsp), %rdi
callq 0x7b550
movq %rax, %rdi
callq 0x88ef0
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rsp)
movq (%rax), %rax
addq $0x40, %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
callq 0x7aba0
testb $0x1, %al
jne 0xe6d6f
jmp 0xe6d79
movb $0x1, 0x57(%rsp)
jmp 0xe6e18
movq 0x40(%rsp), %rdi
leaq 0x331b3(%rip), %rsi     # 0x119f38
callq 0x74120
testb $0x1, %al
jne 0xe6dba
movq 0x40(%rsp), %rdi
leaq 0x331be(%rip), %rsi     # 0x119f58
callq 0x74120
testb $0x1, %al
jne 0xe6dba
movq 0x40(%rsp), %rdi
leaq 0x331c9(%rip), %rsi     # 0x119f78
callq 0x74120
testb $0x1, %al
jne 0xe6dba
jmp 0xe6dc1
movb $0x1, 0x57(%rsp)
jmp 0xe6e18
movq 0x40(%rsp), %rdx
leaq 0x5a26(%rip), %rsi      # 0xec7f3
leaq 0x20(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x75e70
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
callq 0x763a0
jmp 0xe6deb
leaq 0x20(%rsp), %rdi
callq 0x7cce8
movb $0x0, 0x57(%rsp)
jmp 0xe6e18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x7cce8
jmp 0xe6e16
jmp 0xe6e23
movb 0x57(%rsp), %al
andb $0x1, %al
addq $0x58, %rsp
retq
movq 0x18(%rsp), %rdi
callq 0x7b550
movq %rax, %rdi
callq 0x88ef0
nopw %cs:(%rax,%rax)
// File: zeeev[P]DASVC/bamtools/src/api/internal/sam/SamHeaderValidator_p.cpp
// Function: BamTools::Internal::SamHeaderValidator::ValidateSequence(BamTools::SamSequence const&)
bool SamHeaderValidator::ValidateSequence(const SamSequence& seq) {
    bool isValid = true;
    isValid &= CheckNameFormat(seq.Name);
    isValid &= CheckLengthInRange(seq.Length);
    return isValid;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movb $0x1, 0x17(%rsp)
movq 0x18(%rsp), %rsi
addq $0x60, %rsi
callq 0x76530
movq 0x8(%rsp), %rdi
andb $0x1, %al
movzbl %al, %ecx
movb 0x17(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
andl %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0x17(%rsp)
movq 0x18(%rsp), %rsi
addq $0x40, %rsi
callq 0x76270
andb $0x1, %al
movzbl %al, %ecx
movb 0x17(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
andl %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0x17(%rsp)
movb 0x17(%rsp), %al
andb $0x1, %al
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x88, %rsp
movq %rdi, 0x78(%rsp)
movq %rsi, 0x70(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x70(%rsp), %rdi
callq 0x7aba0
testb $0x1, %al
jne 0xe721e
jmp 0xe72b4
leaq 0x4f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x7b5f0
movq 0x8(%rsp), %rdx
leaq 0x55f9(%rip), %rsi      # 0xec832
leaq 0x50(%rsp), %rdi
callq 0x78e70
jmp 0xe7245
movq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x763a0
jmp 0xe7256
leaq 0x50(%rsp), %rdi
callq 0x7cce8
jmp 0xe7262
leaq 0x4f(%rsp), %rdi
callq 0x76f80
movb $0x0, 0x87(%rsp)
jmp 0xe733e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
jmp 0xe72a5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x7cce8
jmp 0xe72a3
jmp 0xe72a5
leaq 0x4f(%rsp), %rdi
callq 0x76f80
jmp 0xe734f
movq 0x70(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x77cf0
movb (%rax), %al
movb %al, 0x3b(%rsp)
movsbl 0x3b(%rsp), %eax
cmpl $0x3d, %eax
je 0xe72dc
movsbl 0x3b(%rsp), %eax
cmpl $0x2a, %eax
jne 0xe7336
movq 0x70(%rsp), %rdx
leaq 0x5571(%rip), %rsi      # 0xec859
leaq 0x18(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x75e70
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
callq 0x763a0
jmp 0xe7306
leaq 0x18(%rsp), %rdi
callq 0x7cce8
movb $0x0, 0x87(%rsp)
jmp 0xe733e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x7cce8
jmp 0xe7334
jmp 0xe734f
movb $0x1, 0x87(%rsp)
movb 0x87(%rsp), %al
andb $0x1, %al
addq $0x88, %rsp
retq
movq 0x40(%rsp), %rdi
callq 0x7b550
movq %rax, %rdi
callq 0x88ef0
nopw %cs:(%rax,%rax)
// File: zeeev[P]DASVC/bamtools/src/api/internal/sam/SamHeaderValidator_p.cpp
// Function: BamTools::Internal::SamHeaderValidator::ValidateReadGroup(BamTools::SamReadGroup const&)
bool SamHeaderValidator::ValidateReadGroup(const SamReadGroup& rg) {
    bool isValid = true;
    isValid &= CheckReadGroupID(rg.ID);
    isValid &= CheckSequencingTechnology(rg.SequencingTechnology);
    return isValid;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movb $0x1, 0x17(%rsp)
movq 0x18(%rsp), %rsi
addq $0x40, %rsi
callq 0x71030
movq 0x8(%rsp), %rdi
andb $0x1, %al
movzbl %al, %ecx
movb 0x17(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
andl %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0x17(%rsp)
movq 0x18(%rsp), %rsi
addq $0x160, %rsi            # imm = 0x160
callq 0x72890
andb $0x1, %al
movzbl %al, %ecx
movb 0x17(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
andl %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0x17(%rsp)
movb 0x17(%rsp), %al
andb $0x1, %al
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: zeeev[P]DASVC/bamtools/src/api/internal/sam/SamHeaderValidator_p.cpp
// Function: BamTools::Internal::SamHeaderValidator::CheckReadGroupID(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool SamHeaderValidator::CheckReadGroupID(const string& id) {

    // invalid if empty
    if ( id.empty() ) {
        AddError("Read group entry (@RG) is missing ID tag");
        return false;
    }

    // otherwise OK
    return true;
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rdi
callq 0x7aba0
testb $0x1, %al
jne 0xe7b7b
jmp 0xe7c08
leaq 0x2f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x7b5f0
movq 0x8(%rsp), %rdx
leaq 0x4d56(%rip), %rsi      # 0xec8ec
leaq 0x30(%rsp), %rdi
callq 0x78e70
jmp 0xe7ba2
movq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x763a0
jmp 0xe7bb3
leaq 0x30(%rsp), %rdi
callq 0x7cce8
jmp 0xe7bbf
leaq 0x2f(%rsp), %rdi
callq 0x76f80
movb $0x0, 0x67(%rsp)
jmp 0xe7c0d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
jmp 0xe7bfc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x7cce8
jmp 0xe7bfa
jmp 0xe7bfc
leaq 0x2f(%rsp), %rdi
callq 0x76f80
jmp 0xe7c18
movb $0x1, 0x67(%rsp)
movb 0x67(%rsp), %al
andb $0x1, %al
addq $0x68, %rsp
retq
movq 0x20(%rsp), %rdi
callq 0x7b550
movq %rax, %rdi
callq 0x88ef0
nopw (%rax,%rax)
// File: 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:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rdi
callq 0x7aba0
testb $0x1, %al
jne 0xe7c58
jmp 0xe7c62
movb $0x1, 0x57(%rsp)
jmp 0xe7d59
movq 0x40(%rsp), %rdi
leaq 0x3232a(%rip), %rsi     # 0x119f98
callq 0xe7d80
testb $0x1, %al
jne 0xe7cfb
movq 0x40(%rsp), %rdi
leaq 0x32331(%rip), %rsi     # 0x119fb8
callq 0xe7d80
testb $0x1, %al
jne 0xe7cfb
movq 0x40(%rsp), %rdi
leaq 0x3233c(%rip), %rsi     # 0x119fd8
callq 0xe7d80
testb $0x1, %al
jne 0xe7cfb
movq 0x40(%rsp), %rdi
leaq 0x32347(%rip), %rsi     # 0x119ff8
callq 0xe7d80
testb $0x1, %al
jne 0xe7cfb
movq 0x40(%rsp), %rdi
leaq 0x32352(%rip), %rsi     # 0x11a018
callq 0xe7d80
testb $0x1, %al
jne 0xe7cfb
movq 0x40(%rsp), %rdi
leaq 0x3235d(%rip), %rsi     # 0x11a038
callq 0xe7d80
testb $0x1, %al
jne 0xe7cfb
movq 0x40(%rsp), %rdi
leaq 0x32368(%rip), %rsi     # 0x11a058
callq 0xe7d80
testb $0x1, %al
jne 0xe7cfb
jmp 0xe7d02
movb $0x1, 0x57(%rsp)
jmp 0xe7d59
movq 0x40(%rsp), %rdx
leaq 0x4c07(%rip), %rsi      # 0xec915
leaq 0x20(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x75e70
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
callq 0x763a0
jmp 0xe7d2c
leaq 0x20(%rsp), %rdi
callq 0x7cce8
movb $0x0, 0x57(%rsp)
jmp 0xe7d59
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x7cce8
jmp 0xe7d57
jmp 0xe7d64
movb 0x57(%rsp), %al
andb $0x1, %al
addq $0x58, %rsp
retq
movq 0x18(%rsp), %rdi
callq 0x7b550
movq %rax, %rdi
callq 0x88ef0
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rdi
callq 0x79c80
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
callq 0x79c80
movl %eax, 0x8(%rsp)
movl 0xc(%rsp), %eax
cmpl 0x8(%rsp), %eax
je 0xe7dbb
movb $0x0, 0x27(%rsp)
jmp 0xe7e22
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
cmpl 0xc(%rsp), %eax
jge 0xe7e1d
movq 0x18(%rsp), %rdi
movslq 0x4(%rsp), %rsi
callq 0x77cf0
movsbl (%rax), %edi
callq 0x7be10
movl %eax, (%rsp)
movq 0x10(%rsp), %rdi
movslq 0x4(%rsp), %rsi
callq 0x77cf0
movsbl (%rax), %edi
callq 0x7be10
movl %eax, %ecx
movl (%rsp), %eax
cmpl %ecx, %eax
je 0xe7e0e
movb $0x0, 0x27(%rsp)
jmp 0xe7e22
jmp 0xe7e10
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0xe7dc3
movb $0x1, 0x27(%rsp)
movb 0x27(%rsp), %al
andb $0x1, %al
addq $0x28, %rsp
retq
nopl (%rax)
// File: 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:
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x8(%rsp)
movb $0x1, 0x8f(%rsp)
movq (%rax), %rax
addq $0x108, %rax            # imm = 0x108
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rdi
callq 0x738b0
movq %rax, 0x78(%rsp)
movq 0x80(%rsp), %rdi
callq 0x7c8a0
movq %rax, 0x70(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x71760
testb $0x1, %al
jne 0xe8181
jmp 0xe827a
leaq 0x78(%rsp), %rdi
callq 0x7b140
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
addq $0x60, %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rdi
callq 0x7aba0
testb $0x1, %al
jne 0xe81ae
jmp 0xe81b3
jmp 0xe826b
movq 0x80(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x7a540
testb $0x1, %al
jne 0xe8269
movq 0x60(%rsp), %rdx
leaq 0x477c(%rip), %rsi      # 0xec955
leaq 0x20(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x75e70
movq (%rsp), %rsi
leaq 0x477c(%rip), %rdx      # 0xec96e
leaq 0x40(%rsp), %rdi
callq 0x785a0
jmp 0xe81fe
movq 0x8(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x763a0
jmp 0xe820f
leaq 0x40(%rsp), %rdi
callq 0x7cce8
jmp 0xe821b
leaq 0x20(%rsp), %rdi
callq 0x7cce8
movb $0x0, 0x8f(%rsp)
jmp 0xe8269
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
jmp 0xe825b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x7cce8
jmp 0xe8259
jmp 0xe825b
leaq 0x20(%rsp), %rdi
callq 0x7cce8
jmp 0xe8267
jmp 0xe828b
jmp 0xe826b
leaq 0x78(%rsp), %rdi
callq 0x78180
jmp 0xe8169
movb 0x8f(%rsp), %al
andb $0x1, %al
addq $0x98, %rsp
retq
movq 0x18(%rsp), %rdi
callq 0x7b550
movq %rax, %rdi
callq 0x88ef0
nopl (%rax)
// File: 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
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movl %r9d, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpl $0x0, -0x20(%rbp)
je 0x3756
movl -0x20(%rbp), %edi
callq 0x3250
jmp 0x3761
movq -0x38(%rbp), %rax
movl (%rax), %edi
callq 0x3250
movq -0x10(%rbp), %rdi
callq 0x4280
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %eax
movl %eax, %esi
callq 0x42a0
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x37ad
movq -0x10(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
movl -0x18(%rbp), %eax
movl %eax, %esi
callq 0x4350
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x377f
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x382d
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x18(%rbp), %eax
jae 0x3820
callq 0x30b0
cltd
idivl -0x1c(%rbp)
subl $0x1, %edx
movl %edx, -0x30(%rbp)
cmpl $0x0, -0x30(%rbp)
jge 0x37e7
movl $0x0, -0x30(%rbp)
cvtsi2sdl -0x30(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movl -0x28(%rbp), %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
movl -0x2c(%rbp), %eax
movl %eax, %esi
callq 0x43e0
movsd -0x40(%rbp), %xmm0
movsd %xmm0, (%rax)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x37c3
jmp 0x3822
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x37b4
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: iu-vail[P]iprimal/Assignment.cpp
// Function: Assignment::RandomGenerate(unsigned int, unsigned int, int, unsigned int)
void
Assignment::RandomGenerate(uint nrows, uint ncols, int Max, uint _seed){

  RandomGenerate(matrix, nrows, ncols, Max, _seed);
  //update data members
  row_size = nrows;
  col_size = ncols;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
movq %rdi, %rsi
addq $0x10, %rsi
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
movl -0x14(%rbp), %r8d
movl -0x18(%rbp), %r9d
callq 0x3720
movq -0x20(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, 0x4(%rax)
movl -0x10(%rbp), %ecx
movl %ecx, 0x8(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
movq -0x10(%rbp), %rsi
movq %rdi, %rdx
addq $0x10, %rdx
callq 0x38a0
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
callq 0x4580
movq -0x18(%rbp), %rdi
movl %eax, 0x4(%rdi)
addq $0x10, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
callq 0x4470
movq %rax, %rcx
movq -0x18(%rbp), %rax
movl %ecx, 0x8(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: iu-vail[P]iprimal/Assignment.cpp
// Function: Assignment::DisplayMatrix(std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>>&) const
void
Assignment::DisplayMatrix(mat& m) const{

  if(m[0].size() > DISPLAY_WIDTH*3){
    _cout("Matrix is big, not displaying."<<endl);
    return;
  }

  _cout(endl<<"The assignment problem (matrix) you queried is:"<<endl<<endl);
  for(uint i=0; i<m.size(); i++){
    for(uint j=0; j<m[0].size(); j++)
      _cout("  "<<m[i][j]<<"\t");
    _cout(endl);
  }
  _cout(endl);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
callq 0x4470
cmpq $0x1e, %rax
jbe 0x420d
jmp 0x4279
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4580
movq %rax, %rcx
movq -0x20(%rbp), %rax
cmpq %rcx, %rax
jae 0x4279
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
callq 0x4470
movq %rax, %rcx
movq -0x28(%rbp), %rax
cmpq %rcx, %rax
jae 0x426c
jmp 0x4261
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x4237
jmp 0x426e
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x4214
addq $0x30, %rsp
popq %rbp
retq
nop
// File: 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 %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq %rax, %rdi
addq $0xf8, %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0xa450
movl $0x0, -0xc(%rbp)
movq -0x30(%rbp), %rcx
movl -0xc(%rbp), %eax
cmpl (%rcx), %eax
jae 0x6ab4
movq -0x30(%rbp), %rdi
movl -0xc(%rbp), %eax
movl %eax, -0x34(%rbp)
addq $0xf8, %rdi
movl -0xc(%rbp), %eax
movl %eax, %esi
callq 0xa4e0
movl -0x34(%rbp), %ecx
movl %ecx, (%rax)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x6a7e
movq -0x30(%rbp), %rax
movq %rax, %rdi
addq $0x8, %rdi
movl (%rax), %eax
movl %eax, %esi
xorps %xmm0, %xmm0
movsd %xmm0, -0x18(%rbp)
leaq -0x18(%rbp), %rdx
callq 0xa500
movq -0x30(%rbp), %rax
movq %rax, %rdi
addq $0x20, %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0x4350
movl $0x0, -0x1c(%rbp)
movq -0x30(%rbp), %rcx
movl -0x1c(%rbp), %eax
cmpl 0x4(%rcx), %eax
jae 0x6b4c
movq -0x30(%rbp), %rdi
addq $0xb0, %rdi
movl -0x1c(%rbp), %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
movl -0x1c(%rbp), %eax
movl %eax, %esi
callq 0x43e0
movq -0x30(%rbp), %rdi
movsd (%rax), %xmm0
movsd %xmm0, -0x40(%rbp)
addq $0x20, %rdi
movl -0x1c(%rbp), %eax
movl %eax, %esi
callq 0x43e0
movsd -0x40(%rbp), %xmm0
movsd %xmm0, (%rax)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x6aef
movl $0x0, -0x20(%rbp)
movq -0x30(%rbp), %rcx
movl -0x20(%rbp), %eax
cmpl (%rcx), %eax
jae 0x6bda
movl $0x0, -0x24(%rbp)
movq -0x30(%rbp), %rcx
movl -0x24(%rbp), %eax
cmpl 0x4(%rcx), %eax
jae 0x6bca
movq -0x30(%rbp), %rdi
addq $0x20, %rdi
movl -0x24(%rbp), %eax
movl %eax, %esi
callq 0x43e0
movq -0x30(%rbp), %rdi
movsd (%rax), %xmm0
movsd %xmm0, -0x48(%rbp)
addq $0xc8, %rdi
movl -0x20(%rbp), %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
movl -0x24(%rbp), %eax
movl %eax, %esi
callq 0x43e0
movsd -0x48(%rbp), %xmm1
movsd (%rax), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x6b65
jmp 0x6bcc
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x6b53
movq -0x30(%rbp), %rdi
movq %rdi, %rsi
addq $0xc8, %rsi
callq 0x6c00
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: 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&) const
void
Primal::DisplayMatrix(const mat& _m) 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++)
      _cout(" "<<_m[i][j]<<"\t");
    _cout(endl);
  }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xafd0
movq %rax, %rdi
callq 0x4470
cmpq $0xa, %rax
jbe 0x6c2d
jmp 0x6c99
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4580
movq %rax, %rcx
movq -0x20(%rbp), %rax
cmpq %rcx, %rax
jae 0x6c99
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xafd0
movq %rax, %rdi
callq 0x4470
movq %rax, %rcx
movq -0x28(%rbp), %rax
cmpq %rcx, %rax
jae 0x6c8c
jmp 0x6c81
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x6c57
jmp 0x6c8e
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x6c34
addq $0x30, %rsp
popq %rbp
retq
nop
// File: iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::InitSolution(std::vector<unsigned int, std::allocator<unsigned int>> const&)
void
Primal::InitSolution(const vector<uint>& _asgn){

  assert(_asgn.size()==row_size);
  // assign the diagnol as the initial feasible solution
  assignment = _asgn;
  //DisplayVec<uint>(assignment);

  // 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(col_size);
  for(uint i=0; i<col_size; i++)
    dual_col_vars[i]=orig_matrix[GetAssignedRow(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 %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
callq 0x6700
movq -0x30(%rbp), %rcx
movl (%rcx), %ecx
cmpq %rcx, %rax
jne 0x6cce
jmp 0x6ced
leaq 0x133db(%rip), %rdi     # 0x1a0b0
leaq 0x133eb(%rip), %rsi     # 0x1a0c7
movl $0x34, %edx
leaq 0x133eb(%rip), %rcx     # 0x1a0d3
callq 0x3190
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0xf8, %rdi
callq 0xa5b0
movq -0x30(%rbp), %rax
movq %rax, %rdi
addq $0x8, %rdi
movl (%rax), %eax
movl %eax, %esi
xorps %xmm0, %xmm0
movsd %xmm0, -0x18(%rbp)
leaq -0x18(%rbp), %rdx
callq 0xa500
movq -0x30(%rbp), %rax
movq %rax, %rdi
addq $0x20, %rdi
movl 0x4(%rax), %eax
movl %eax, %esi
callq 0x4350
movl $0x0, -0x1c(%rbp)
movq -0x30(%rbp), %rcx
movl -0x1c(%rbp), %eax
cmpl 0x4(%rcx), %eax
jae 0x6dab
movq -0x30(%rbp), %rdi
movq %rdi, %rax
addq $0xb0, %rax
movq %rax, -0x40(%rbp)
movl -0x1c(%rbp), %esi
callq 0xa800
movq -0x40(%rbp), %rdi
movl %eax, %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
movl -0x1c(%rbp), %eax
movl %eax, %esi
callq 0x43e0
movq -0x30(%rbp), %rdi
movsd (%rax), %xmm0
movsd %xmm0, -0x38(%rbp)
addq $0x20, %rdi
movl -0x1c(%rbp), %eax
movl %eax, %esi
callq 0x43e0
movsd -0x38(%rbp), %xmm0
movsd %xmm0, (%rax)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x6d3d
movl $0x0, -0x20(%rbp)
movq -0x30(%rbp), %rcx
movl -0x20(%rbp), %eax
cmpl (%rcx), %eax
jae 0x6e39
movl $0x0, -0x24(%rbp)
movq -0x30(%rbp), %rcx
movl -0x24(%rbp), %eax
cmpl 0x4(%rcx), %eax
jae 0x6e29
movq -0x30(%rbp), %rdi
addq $0x20, %rdi
movl -0x24(%rbp), %eax
movl %eax, %esi
callq 0x43e0
movq -0x30(%rbp), %rdi
movsd (%rax), %xmm0
movsd %xmm0, -0x48(%rbp)
addq $0xc8, %rdi
movl -0x20(%rbp), %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
movl -0x24(%rbp), %eax
movl %eax, %esi
callq 0x43e0
movsd -0x48(%rbp), %xmm1
movsd (%rax), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x6dc4
jmp 0x6e2b
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x6db2
movq -0x30(%rbp), %rdi
movq %rdi, %rsi
addq $0xc8, %rsi
callq 0x6c00
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
addq $0x38, %rdi
callq 0xace0
movq -0x18(%rbp), %rax
movq %rax, %rdi
addq $0x38, %rdi
movl 0x4(%rax), %eax
movl %eax, %esi
xorps %xmm0, %xmm0
movsd %xmm0, -0x10(%rbp)
leaq -0x10(%rbp), %rdx
callq 0xa500
movq -0x18(%rbp), %rdi
callq 0xad00
movq -0x18(%rbp), %rdi
callq 0xad40
movq -0x18(%rbp), %rdi
callq 0xad70
movq -0x18(%rbp), %rdi
callq 0xadf0
movq -0x18(%rbp), %rdi
addq $0xe0, %rdi
callq 0xae70
movq -0x18(%rbp), %rax
movq %rax, %rdi
addq $0xe0, %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0xae90
addq $0x20, %rsp
popq %rbp
retq
nop
// File: 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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x28(%rbp)
addq $0xe0, %rdi
callq 0xae70
movq -0x28(%rbp), %rax
movq %rax, %rdi
addq $0xe0, %rdi
movl (%rax), %eax
movl %eax, %esi
callq 0xae90
movl $0x0, -0xc(%rbp)
movq -0x28(%rbp), %rcx
movl -0xc(%rbp), %eax
cmpl (%rcx), %eax
jae 0x792b
movl $0x0, -0x10(%rbp)
movq -0x28(%rbp), %rcx
movl -0x10(%rbp), %eax
cmpl 0x4(%rcx), %eax
jae 0x791b
movq -0x28(%rbp), %rdi
addq $0xc8, %rdi
movl -0xc(%rbp), %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
movl -0x10(%rbp), %eax
movl %eax, %esi
callq 0x43e0
movsd (%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x790b
movq -0x28(%rbp), %rdi
movl -0x10(%rbp), %eax
movl %eax, -0x2c(%rbp)
addq $0xf8, %rdi
movl -0xc(%rbp), %eax
movl %eax, %esi
callq 0xa4e0
movq %rax, %rcx
movl -0x2c(%rbp), %eax
cmpl (%rcx), %eax
je 0x790b
movq -0x28(%rbp), %rdi
addq $0xc8, %rdi
movl -0xc(%rbp), %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
movl -0x10(%rbp), %eax
movl %eax, %esi
callq 0x43e0
movq %rax, %rdx
leaq -0x20(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0xaf20
movq -0x28(%rbp), %rdi
addq $0xe0, %rdi
movl -0xc(%rbp), %eax
movl %eax, %esi
callq 0xaf50
movq %rax, %rdi
leaq -0x20(%rbp), %rsi
callq 0xaf70
jmp 0x790d
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x7854
jmp 0x791d
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x783e
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: 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:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x18(%rbp)
movl $0xffffffff, -0x20(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x1c(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x24(%rbp)
movq -0x30(%rbp), %rcx
movl -0x24(%rbp), %eax
cmpl (%rcx), %eax
jae 0x7a1b
movl $0x0, -0x28(%rbp)
movq -0x30(%rbp), %rcx
movl -0x28(%rbp), %eax
cmpl 0x4(%rcx), %eax
jae 0x7a0b
movq -0x30(%rbp), %rdi
addq $0xc8, %rdi
movl -0x24(%rbp), %eax
movl %eax, %esi
callq 0xafd0
movq %rax, %rdi
movl -0x28(%rbp), %eax
movl %eax, %esi
callq 0xaff0
movsd (%rax), %xmm1
movsd -0x18(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x79fb
movq -0x30(%rbp), %rdi
addq $0xc8, %rdi
movl -0x24(%rbp), %eax
movl %eax, %esi
callq 0xafd0
movq %rax, %rdi
movl -0x28(%rbp), %eax
movl %eax, %esi
callq 0xaff0
movsd (%rax), %xmm0
movsd %xmm0, -0x18(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x79fd
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x7987
jmp 0x7a0d
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x7971
movl -0x1c(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x4(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::NextStartEntry(unsigned int) const
cell
Primal::NextStartEntry(uint _col_id) const {
  
  double min_v = 0;
  int min_i, min_j;
  min_i = min_j = -1;
  for(uint i=0; i<row_size; i++)
    if(oprt_matrix[i][_col_id] < min_v){
	min_v = oprt_matrix[i][_col_id];
	min_i = i;
	min_j = _col_id;
      }

  cell _c;
  _c.row_idx = min_i;
  _c.col_idx = min_j;
  _cout("Column ["<<_col_id<<"]: starting from ("<<_c.row_idx<<", "<<_c.col_idx<<") with reduced cost: "<<min_v<<endl);

  return _c; 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x20(%rbp)
movl $0xffffffff, -0x28(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x2c(%rbp)
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %eax
cmpl (%rcx), %eax
jae 0x7af4
movq -0x38(%rbp), %rdi
addq $0xc8, %rdi
movl -0x2c(%rbp), %eax
movl %eax, %esi
callq 0xafd0
movq %rax, %rdi
movl -0x14(%rbp), %eax
movl %eax, %esi
callq 0xaff0
movsd (%rax), %xmm1
movsd -0x20(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x7ae7
movq -0x38(%rbp), %rdi
addq $0xc8, %rdi
movl -0x2c(%rbp), %eax
movl %eax, %esi
callq 0xafd0
movq %rax, %rdi
movl -0x14(%rbp), %eax
movl %eax, %esi
callq 0xaff0
movsd (%rax), %xmm0
movsd %xmm0, -0x20(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x28(%rbp)
jmp 0x7ae9
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x7a74
movl -0x24(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x18(%rbp), %rcx
movl -0xc(%rbp), %eax
cmpl (%rcx), %eax
jae 0x9bae
movl $0x0, -0x10(%rbp)
movq -0x18(%rbp), %rcx
movl -0x10(%rbp), %eax
cmpl 0x4(%rcx), %eax
jae 0x9b9e
movq -0x18(%rbp), %rdi
addq $0xc8, %rdi
movl -0xc(%rbp), %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
movl -0x10(%rbp), %eax
movl %eax, %esi
callq 0x43e0
xorps %xmm0, %xmm0
ucomisd (%rax), %xmm0
jbe 0x9b8e
movq -0x18(%rbp), %rdi
addq $0xc8, %rdi
movl -0xc(%rbp), %eax
movl %eax, %esi
callq 0x4330
movq %rax, %rdi
movl -0x10(%rbp), %eax
movl %eax, %esi
callq 0x43e0
movsd (%rax), %xmm0
movaps 0x10547(%rip), %xmm1    # 0x1a0a0
pand %xmm1, %xmm0
movsd 0x1052b(%rip), %xmm1    # 0x1a090
ucomisd %xmm1, %xmm0
jbe 0x9b8e
movl $0x4, %edi
callq 0x3140
movq %rax, %rdi
movl $0xfffffffe, (%rdi)     # imm = 0xFFFFFFFE
movq 0x1d41b(%rip), %rsi     # 0x26fa0
xorl %eax, %eax
movl %eax, %edx
callq 0x3470
jmp 0x9b90
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x9af1
jmp 0x9ba0
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x9adb
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: 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
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xafd0
movq %rax, %rdi
callq 0x4470
cmpq $0xa, %rax
jbe 0x9c16
movq 0x1d3d2(%rip), %rdi     # 0x26fc8
leaq 0x1076e(%rip), %rsi     # 0x1a36b
callq 0x3270
movq %rax, %rdi
movq 0x1d3a4(%rip), %rsi     # 0x26fb0
callq 0x32b0
jmp 0x9d54
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4580
movq %rax, %rcx
movq -0x28(%rbp), %rax
cmpq %rcx, %rax
jae 0x9d54
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xafd0
movq %rax, %rdi
callq 0x4470
movq %rax, %rcx
movq -0x30(%rbp), %rax
cmpq %rcx, %rax
jae 0x9d33
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %eax
movl %eax, %esi
callq 0xb620
movl (%rax), %eax
cmpl -0x20(%rbp), %eax
jne 0x9cd5
movq 0x1d33c(%rip), %rdi     # 0x26fc8
leaq 0x10bc0(%rip), %rsi     # 0x1a853
callq 0x3270
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %eax
movl %eax, %esi
callq 0xafd0
movq %rax, %rdi
movl -0x20(%rbp), %eax
movl %eax, %esi
callq 0xaff0
movq -0x38(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x34e0
movq %rax, %rdi
leaq 0x106bc(%rip), %rsi     # 0x1a38a
callq 0x3270
jmp 0x9d23
movq 0x1d2ec(%rip), %rdi     # 0x26fc8
leaq 0x10b70(%rip), %rsi     # 0x1a853
callq 0x3270
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %eax
movl %eax, %esi
callq 0xafd0
movq %rax, %rdi
movl -0x20(%rbp), %eax
movl %eax, %esi
callq 0xaff0
movq -0x40(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x34e0
movq %rax, %rdi
leaq 0x1066d(%rip), %rsi     # 0x1a38b
callq 0x3270
jmp 0x9d25
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x9c44
movq 0x1d28e(%rip), %rdi     # 0x26fc8
movq 0x1d26f(%rip), %rsi     # 0x26fb0
callq 0x32b0
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x9c1d
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: 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:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4580
movq %rax, %rcx
movq -0x30(%rbp), %rax
cmpq %rcx, %rax
jae 0x9efd
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xafd0
movq %rax, %rdi
callq 0x4470
movq %rax, %rcx
movq -0x38(%rbp), %rax
cmpq %rcx, %rax
jae 0x9eed
movq -0x18(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %esi
callq 0xb620
movl (%rax), %eax
cmpl -0x28(%rbp), %eax
jne 0x9ee0
movq -0x10(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %esi
callq 0xafd0
movq %rax, %rdi
movl -0x28(%rbp), %eax
movl %eax, %esi
callq 0xaff0
movsd (%rax), %xmm0
addsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x20(%rbp)
jmp 0x9ee2
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x9e7a
jmp 0x9eef
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x9e53
movsd -0x20(%rbp), %xmm0
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x60(%rbp), %rdi
movq %rdi, -0x88(%rbp)
callq 0xb010
movq -0x88(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0xb070
jmp 0xa1e5
jmp 0xa1e7
leaq -0x60(%rbp), %rdi
callq 0xb1c0
movb %al, -0x89(%rbp)
jmp 0xa1f8
movb -0x89(%rbp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xa209
jmp 0xa2c0
leaq -0x60(%rbp), %rdi
callq 0xb0c0
movq %rax, -0x98(%rbp)
jmp 0xa21b
movq -0x98(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x78(%rbp)
leaq -0x60(%rbp), %rdi
callq 0xb0e0
jmp 0xa234
movq -0x78(%rbp), %rax
cmpl $-0x1, 0x8(%rax)
jne 0xa257
jmp 0xa267
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0xb1e0
jmp 0xa2d2
movq -0x78(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jne 0xa263
jmp 0xa265
jmp 0xa265
jmp 0xa267
movq -0x78(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0xa2bb
movq -0x78(%rbp), %rsi
addq $0x10, %rsi
leaq -0x60(%rbp), %rdi
callq 0xb070
jmp 0xa285
movq -0x78(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0xa2b9
movq -0x80(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x80(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0xb070
jmp 0xa2b7
jmp 0xa291
jmp 0xa2bb
jmp 0xa1e7
leaq -0x60(%rbp), %rdi
callq 0xb1e0
addq $0xa0, %rsp
popq %rbp
retq
movq -0x68(%rbp), %rdi
callq 0x3490
nopl (%rax,%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
leaq -0x68(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0xb010
movq -0x90(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0xb070
jmp 0xa31c
jmp 0xa31e
leaq -0x68(%rbp), %rdi
callq 0xb1c0
movb %al, -0x91(%rbp)
jmp 0xa32f
movb -0x91(%rbp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xa340
jmp 0xa421
leaq -0x68(%rbp), %rdi
callq 0xb0c0
movq %rax, -0xa0(%rbp)
jmp 0xa352
movq -0xa0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x80(%rbp)
leaq -0x68(%rbp), %rdi
callq 0xb0e0
jmp 0xa36b
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movq -0x80(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0xa3ee
movq -0x80(%rbp), %rsi
addq $0x10, %rsi
leaq -0x68(%rbp), %rdi
callq 0xb070
jmp 0xa392
movq -0x80(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0xa3ec
movq -0x88(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x88(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xb070
jmp 0xa3d3
jmp 0xa3a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x68(%rbp), %rdi
callq 0xb1e0
jmp 0xa442
jmp 0xa3ee
movq -0x80(%rbp), %rax
movq %rax, -0xa8(%rbp)
cmpq $0x0, %rax
je 0xa41c
movq -0xa8(%rbp), %rdi
callq 0xb6b0
movq -0xa8(%rbp), %rdi
movl $0x28, %esi
callq 0x3290
jmp 0xa31e
movl -0x14(%rbp), %eax
movl %eax, -0xac(%rbp)
leaq -0x68(%rbp), %rdi
callq 0xb1e0
movl -0xac(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x3490
nopl (%rax,%rax)
// File: iu-vail[P]iprimal/iPrimal.cpp
// Function: Primal::GetAssignedRow(unsigned int)
uint
Primal::GetAssignedRow(uint _col_id){

  uint row = row_size;
  for(uint i=0; i<row_size; i++)
    if(assignment[i] == _col_id) 
      row = i;

  assert(row<row_size);
  return row; 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movl (%rax), %eax
movl %eax, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl (%rcx), %eax
jae 0xa85d
movq -0x20(%rbp), %rdi
addq $0xf8, %rdi
movl -0x14(%rbp), %eax
movl %eax, %esi
callq 0xa4e0
movl (%rax), %eax
cmpl -0xc(%rbp), %eax
jne 0xa850
movl -0x14(%rbp), %eax
movl %eax, -0x10(%rbp)
jmp 0xa852
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xa823
movq -0x20(%rbp), %rcx
movl -0x10(%rbp), %eax
cmpl (%rcx), %eax
jae 0xa86a
jmp 0xa889
leaq 0xfb21(%rip), %rdi      # 0x1a392
leaq 0xf84f(%rip), %rsi      # 0x1a0c7
movl $0xe, %edx
leaq 0xfb1b(%rip), %rcx      # 0x1a39f
callq 0x3190
movl -0x10(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)