LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/interpreter.cc
// Function: Interpreter::execfile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Interpreter::execfile(std::string filename) {
    std::ifstream fin((filename).c_str());
    if (!fin) std::cout << "file does not exist" << std::endl;
    else {
        std::string buf;
        while (getline(fin, buf)) {
            int len = buf.size();
            while (len && (buf[len - 1] == '\n' || buf[len - 1] == '\r')) {
                len --;
            }
            if (process(buf.substr(0, len))) return true;
        }
    }
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rdi, %rbx
movq (%rsi), %rsi
leaq -0x270(%rbp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x34c0
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x250(%rbp,%rax)
je 0x10f71
movq 0xa0b8(%rip), %rbx      # 0x1afc8
leaq 0x36a9(%rip), %rsi      # 0x145c0
movl $0x13, %edx
movq %rbx, %rdi
callq 0x3310
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0xa086(%rip), %rdi      # 0x1afc8
callq 0x3040
movq %rax, %rdi
callq 0x31c0
xorl %ebx, %ebx
leaq -0x270(%rbp), %rdi
callq 0x3090
movl %ebx, %eax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x48(%rbp), %r15
leaq -0x68(%rbp), %r12
movq -0x270(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x34d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x11036
movl -0x40(%rbp), %eax
testq %rax, %rax
je 0x10fe4
movq -0x48(%rbp), %rcx
cltq
movzbl -0x1(%rcx,%rax), %edx
cmpl $0xd, %edx
je 0x10fdd
cmpl $0xa, %edx
jne 0x10fe4
decq %rax
jne 0x10fce
xorl %eax, %eax
movslq %eax, %rcx
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x32c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0xf214
movl %eax, %r13d
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x11014
callq 0x3270
testb %r13b, %r13b
je 0x10f8c
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x1102f
callq 0x3270
movb $0x1, %bl
jmp 0x10f51
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x10f4f
callq 0x3270
jmp 0x10f4f
movq %rax, %rbx
jmp 0x11084
jmp 0x1106f
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x11072
callq 0x3270
jmp 0x11072
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x11084
callq 0x3270
leaq -0x270(%rbp), %rdi
callq 0x3090
movq %rbx, %rdi
callq 0x3480
// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/interpreter.cc
// Function: Interpreter::parseElement(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
element Interpreter::parseElement(std::string data) {
    if (data[0] == '\'') {
        std::string res;
        res = data.substr(1, data.length() - 2);
        return res;
    }
    if (data.find('.') != -1) {
        char *s;
        return strtof(data.c_str(), &s);
    }
    else {
        char *s;
        return int(strtod(data.c_str(), &s) + 0.5);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movq (%rdx), %rax
cmpb $0x27, (%rax)
jne 0x11120
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq 0x8(%r14), %rcx
addq $-0x2, %rcx
leaq -0x78(%rbp), %rdi
movl $0x1, %edx
movq %r14, %rsi
callq 0x32c0
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %r14
movq %r14, %rsi
callq 0x3340
movq (%r14), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x11101
callq 0x3270
leaq -0x48(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x38(%rbp), %rax
cmpq %r15, %rax
je 0x1116d
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x11177
movq %r14, %rdi
movl $0x2e, %esi
xorl %edx, %edx
callq 0x3370
cmpq $-0x1, %rax
je 0x1114b
movq (%r14), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3380
movq %rbx, %rdi
callq 0x131aa
jmp 0x111b7
movq (%r14), %rdi
leaq -0x38(%rbp), %rsi
callq 0x31f0
addsd 0x3459(%rip), %xmm0     # 0x145b8
cvttsd2si %xmm0, %esi
movq %rbx, %rdi
callq 0x13186
jmp 0x111b7
movupd (%r15), %xmm0
movupd %xmm0, (%r14)
movq -0x30(%rbp), %rax
leaq -0x58(%rbp), %rsi
movq %rax, 0x8(%rsi)
movq %r15, -0x38(%rbp)
movq $0x0, -0x30(%rbp)
movb $0x0, -0x28(%rbp)
movq %rbx, %rdi
callq 0x131fa
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0x111a9
callq 0x3270
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x111b7
callq 0x3270
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0x111db
callq 0x3270
jmp 0x111db
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x111e9
callq 0x3270
movq %rbx, %rdi
callq 0x3480
nop
// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/RecordManager.cc
// Function: RecordManager::getString[abi:cxx11](Block&, int)
std::string RecordManager::getString(Block &block, int startPos)
{
    //NOTE: space for the string = user input + 1 !!
    char* str = (char*)block.data + startPos;
    std::string theString(str, strlen(str));
    return theString;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movslq %ecx, %r14
addq %rdx, %r14
movq %r14, %rdi
callq 0x3110
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
leaq (%rax,%r14), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8800
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/RecordManager.cc
// Function: RecordManager::RecordManagerTableCreate(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void RecordManager::RecordManagerTableCreate(std::string dbName)
{
    Block firstBlock;
    firstBlock.fileName = dbName;
    firstBlock.offset = 0;
    setInt(firstBlock, BLOCKSIZE - 4, 0);
    bm.BufferManagerWrite(firstBlock);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1030, %rsp           # imm = 0x1030
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x50(%rbp), %r15
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb $0x0, (%r12)
movq %rax, 0x10(%r12)
leaq -0x1050(%rbp), %rdi
movl $0x1000, %edx           # imm = 0x1000
xorl %esi, %esi
callq 0x3160
movq %r15, %rdi
movq %r14, %rsi
callq 0x3150
leaq -0x1050(%rbp), %rsi
movq $0x0, 0x1020(%rsi)
movl $0x0, 0xffc(%rsi)
movq (%rbx), %rdi
callq 0x9744
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x11c06
callq 0x3270
addq $0x1030, %rsp           # imm = 0x1030
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x11c27
callq 0x3270
movq %rbx, %rdi
callq 0x3480
nop
// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/RecordManager.cc
// Function: RecordManager::InputRecord(Block&, int, std::vector<element, std::allocator<element>> const&, Table&)
void RecordManager::InputRecord(Block & block, int tuplePos, const std::vector<element> & entry, Table & nt)
{
    int startPos = tuplePos;
    block.data[startPos] = 'Y';
    startPos++;
    int index = 0;
    for (auto ele : entry) {
        assert(nt.attributes[index].type == ele.type);
        switch (ele.type) {
            case 0:
                setInt(block, startPos, ele.i);
                startPos += sizeof(int);
                break;
            case 1:
                setFloat(block, startPos, ele.f);
                startPos += sizeof(float);
                break;
            case 2:
                setString(block, startPos, ele.s);
                startPos += nt.attributes[index].length;//Include +1
                break;
            default:
                break;
        }
        index++;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movslq %edx, %rax
movb $0x59, (%rsi,%rax)
movq (%rcx), %r12
movq 0x8(%rcx), %rax
movq %rax, -0x68(%rbp)
cmpq %rax, %r12
je 0x12157
movq %r8, %rbx
movl %edx, %r14d
movq %rsi, %r13
incl %r14d
xorl %r15d, %r15d
movq %rsi, -0x60(%rbp)
movq (%r12,%r15), %rax
movq %rax, -0x58(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq 0x8(%r12,%r15), %rsi
movq 0x10(%r12,%r15), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0x8766
movl 0x28(%r12,%r15), %eax
movl %eax, -0x30(%rbp)
movq 0x28(%rbx), %rcx
cmpl %eax, 0x20(%rcx,%r15,2)
jne 0x12166
cmpl $0x2, %eax
leaq -0x78(%rbp), %rcx
je 0x120de
cmpl $0x1, %eax
je 0x120cd
testl %eax, %eax
jne 0x1212f
movl -0x58(%rbp), %eax
jmp 0x120d0
movl -0x54(%rbp), %eax
movslq %r14d, %rcx
movl %eax, (%r13,%rcx)
addl $0x4, %r14d
jmp 0x1212f
movq %rcx, -0x88(%rbp)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rdi
callq 0x8766
movslq %r14d, %rdi
addq %r13, %rdi
movq -0x88(%rbp), %r13
movq %r13, %rsi
callq 0x3260
leaq -0x78(%rbp), %rax
cmpq %rax, %r13
je 0x12122
movq %r13, %rdi
callq 0x3270
movq 0x28(%rbx), %rax
addl 0x24(%rax,%r15,2), %r14d
movq -0x60(%rbp), %r13
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x12141
callq 0x3270
leaq (%r12,%r15), %rax
addq $0x30, %r15
addq $0x30, %rax
cmpq -0x68(%rbp), %rax
jne 0x12079
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x25a2(%rip), %rdi      # 0x1470f
leaq 0x25c1(%rip), %rsi      # 0x14735
leaq 0x25cb(%rip), %rcx      # 0x14746
movl $0x88, %edx
callq 0x31a0
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x1219a
callq 0x3270
movq %rbx, %rdi
callq 0x3480
// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/RecordManager.cc
// Function: RecordManager::RecordManagerGetAllOffsets(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Table&)
std::set<long> RecordManager::RecordManagerGetAllOffsets(std::string dbName, Table & nt)
{
    std::set<long> allOffsets;

    bufferIter pBlock;
    int endPoint;
    long offset = 0;
    do {
        pBlock = bm.BufferManagerRead(dbName, offset);
        Block & block = *pBlock;
        endPoint = getInt(block, BLOCKSIZE - 4);
        allOffsets.insert(offset);
        offset += BLOCKSIZE;
    } while (endPoint == BLOCKSIZE);

    // This one should be the same as the code above.
    /*
    for (int i = 0; i < nt.blockCount; i++) {
        allOffsets.insert(BLOCKSIZE * i);
    }
    */
    //assert(nt.blockCount == allOffsets.size());
    return allOffsets;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, -0x40(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movl $0x0, 0x8(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rcx, 0x28(%rdi)
leaq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
movq (%rax), %rdi
movq -0x30(%rbp), %rdx
movq -0x40(%rbp), %rsi
callq 0x9384
movzbl 0x100c(%rax), %r15d
movzbl 0x100d(%rax), %r14d
movzbl 0x100e(%rax), %r12d
movzbl 0x100f(%rax), %r13d
movq %rbx, %rdi
leaq -0x30(%rbp), %rsi
callq 0x8d7e
shll $0x8, %r14d
orl %r15d, %r14d
shll $0x10, %r12d
orl %r14d, %r12d
shll $0x18, %r13d
orl %r12d, %r13d
addq $0x1000, -0x30(%rbp)    # imm = 0x1000
cmpl $0x1000, %r13d          # imm = 0x1000
je 0x12b1e
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x12b98
movq %rax, %r14
movq %rbx, %rdi
callq 0x8454
movq %r14, %rdi
callq 0x3480
nop
// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/global.cc
// Function: Table::Table(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<AttrType, std::allocator<AttrType>> const&)
Table::Table (const std::string &name, const std::vector<AttrType> &attributes) {
    this->entrySize = 0;
    this->name = name;
    this->blockCount = 1;
    for (size_t i = 0; i < attributes.size(); ++ i) {
        switch (attributes[i].type) {
            case 0: entrySize += sizeof(int); break;
            case 1: entrySize += sizeof(float); break;
            case 2: entrySize += attributes[i].length; break;
            default: assert(false);
        }
    }
    this->attributes = attributes;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rdi, %r12
leaq 0x8(%rdi), %rbx
leaq 0x18(%rdi), %r13
movq %r13, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb $0x0, 0x18(%rdi)
leaq 0x28(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movq %rax, 0x38(%rdi)
movl $0x0, (%rdi)
movq %rbx, %rdi
callq 0x3150
movl $0x1, 0x40(%r12)
movq (%r15), %rax
movq 0x8(%r15), %rsi
subq %rax, %rsi
je 0x12c6c
movl (%r12), %ecx
sarq $0x5, %rsi
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
addq $0x24, %rax
movl $0x4, %esi
cmpl $0x2, -0x4(%rax)
jb 0x12c5d
jne 0x12c86
movl (%rax), %esi
addl %esi, %ecx
movl %ecx, (%r12)
addq $0x60, %rax
decq %rdx
jne 0x12c4e
movq %r14, %rdi
movq %r15, %rsi
callq 0x13540
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x14f2(%rip), %rdi      # 0x1417f
leaq 0x1b24(%rip), %rsi      # 0x147b8
leaq 0x1b27(%rip), %rcx      # 0x147c2
movl $0x14, %edx
callq 0x31a0
movq %rax, %r15
movq %r14, %rdi
callq 0x8304
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x12cbd
callq 0x3270
movq %r15, %rdi
callq 0x3480
nop
// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/global.cc
// Function: element::print() const
void element::print() const {
    switch (type) {
        case 0: std::cout << i; return;
        case 1: std::cout << f; return;
        case 2: std::cout << s; return;
        default: assert(false);
    }
}

// Assembly:
movl 0x28(%rdi), %eax
cmpl $0x2, %eax
je 0x13284
cmpl $0x1, %eax
je 0x13273
testl %eax, %eax
jne 0x13298
movl (%rdi), %esi
movq 0x7d5a(%rip), %rdi      # 0x1afc8
jmp 0x3470
cvtss2sd 0x4(%rdi), %xmm0
movq 0x7d49(%rip), %rdi      # 0x1afc8
jmp 0x3410
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdx
movq 0x7d35(%rip), %rdi      # 0x1afc8
jmp 0x3310
pushq %rbp
movq %rsp, %rbp
leaq 0xedc(%rip), %rdi       # 0x1417f
leaq 0x150e(%rip), %rsi      # 0x147b8
leaq 0x1552(%rip), %rcx      # 0x14803
movl $0x47, %edx
callq 0x31a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/global.cc
// Function: element::operator<(element const&) const
bool element::operator < (const element &rhs) const {
    assert(type == rhs.type);
    switch (type) {
        case 0: return i < rhs.i;
        case 1: return f < rhs.f;
        case 2: return s < rhs.s;
        default: assert(false);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x28(%rdi), %eax
cmpl 0x28(%rsi), %eax
jne 0x132ff
cmpl $0x2, %eax
je 0x132ed
cmpl $0x1, %eax
je 0x132df
testl %eax, %eax
jne 0x1331e
movl (%rdi), %eax
cmpl (%rsi), %eax
setl %al
jmp 0x132fd
movss 0x4(%rsi), %xmm0
ucomiss 0x4(%rdi), %xmm0
seta %al
jmp 0x132fd
addq $0x8, %rdi
addq $0x8, %rsi
callq 0x3050
shrl $0x1f, %eax
popq %rbp
retq
leaq 0x1519(%rip), %rdi      # 0x1481f
leaq 0x14ab(%rip), %rsi      # 0x147b8
leaq 0x151c(%rip), %rcx      # 0x14830
movl $0x4c, %edx
callq 0x31a0
leaq 0xe5a(%rip), %rdi       # 0x1417f
leaq 0x148c(%rip), %rsi      # 0x147b8
leaq 0x14fd(%rip), %rcx      # 0x14830
movl $0x51, %edx
callq 0x31a0
movq %rax, %rdi
callq 0x7d35
nop
// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/global.cc
// Function: element::operator==(element const&) const
bool element::operator == (const element &rhs) const {
    assert(type == rhs.type);
    switch (type) {
        case 0: return i == rhs.i;
        case 1: return fabs(f - rhs.f) < 1e-8;
        case 2: return s == rhs.s;
        default: assert(false);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x28(%rdi), %eax
cmpl 0x28(%rsi), %eax
jne 0x133b7
cmpl $0x2, %eax
je 0x1338c
cmpl $0x1, %eax
je 0x13366
testl %eax, %eax
jne 0x133d6
movl (%rdi), %eax
cmpl (%rsi), %eax
jmp 0x133aa
movss 0x4(%rdi), %xmm0
subss 0x4(%rsi), %xmm0
andps 0x1429(%rip), %xmm0     # 0x147a0
cvtss2sd %xmm0, %xmm0
movsd 0x142d(%rip), %xmm1     # 0x147b0
ucomisd %xmm0, %xmm1
seta %al
jmp 0x133b5
movq 0x10(%rdi), %rdx
cmpq 0x10(%rsi), %rdx
jne 0x133af
testq %rdx, %rdx
je 0x133b3
movq 0x8(%rsi), %rsi
movq 0x8(%rdi), %rdi
callq 0x32b0
testl %eax, %eax
sete %al
jmp 0x133b5
xorl %eax, %eax
jmp 0x133b5
movb $0x1, %al
popq %rbp
retq
leaq 0x1461(%rip), %rdi      # 0x1481f
leaq 0x13f3(%rip), %rsi      # 0x147b8
leaq 0x1493(%rip), %rcx      # 0x1485f
movl $0x56, %edx
callq 0x31a0
leaq 0xda2(%rip), %rdi       # 0x1417f
leaq 0x13d4(%rip), %rsi      # 0x147b8
leaq 0x1474(%rip), %rcx      # 0x1485f
movl $0x5b, %edx
callq 0x31a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/main.cc
// Function: main
int main() {
    A *ui = new A;
    ui->run();
    delete ui;
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl $0x1, %edi
callq 0x32a0
movq %rax, %rbx
movq %rax, %rdi
callq 0x13cbc
movq %rbx, %rdi
callq 0x3270
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/main.cc
// Function: A::run()
void run() {
        std::string buf;
        Interpreter ip;
        do {
            std::cout << ">> ";
            std::getline(std::cin, buf);
            bool flag = ip.process(buf);
            if (flag) break;
        } while (1);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x108(%rbp), %rdi
callq 0x3cdc
leaq -0x58(%rbp), %r12
movq 0x72de(%rip), %r15      # 0x1afd8
leaq -0x68(%rbp), %r13
leaq -0x108(%rbp), %rbx
movl $0x3, %edx
movq 0x72b7(%rip), %rdi      # 0x1afc8
leaq 0xb77(%rip), %rsi       # 0x1488f
callq 0x3310
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %edx
movq %r15, %rdi
leaq -0x48(%rbp), %rsi
callq 0x34d0
movq %r12, -0x68(%rbp)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x8766
movq %rbx, %rdi
movq %r13, %rsi
callq 0xf214
movl %eax, %r14d
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x13d73
callq 0x3270
testb %r14b, %r14b
je 0x13d05
leaq -0xc8(%rbp), %rdi
callq 0xb924
leaq -0x108(%rbp), %rdi
callq 0x81b0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x13da2
callq 0x3270
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x13de9
jmp 0x13dce
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x13dd1
callq 0x3270
jmp 0x13dd1
movq %rax, %rbx
leaq -0xc8(%rbp), %rdi
callq 0xb924
leaq -0x108(%rbp), %rdi
callq 0x81b0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x13dfb
callq 0x3270
movq %rbx, %rdi
callq 0x3480
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::writeGraph(std::ostream&, int)
void Graph::writeGraph(ostream& out,int j) {
	cout << "Write graph size = " << graph.size() << endl;
	out << "graph_for_greach" << endl;
	out << vl.size() << endl;

	GRA::iterator git;
	EdgeList el;
	EdgeList::iterator eit;
	VertexList::iterator vit;
	int i = 0;
	for (i = 0; i < vl.size(); i++) {
		out << i << ": ";
                if(j==1)        
                    el = graph[i].outList;
                else
                    el = graph[i].inList;
		for (eit = el.begin(); eit != el.end(); eit++)
			out << (*eit) << " ";
		out << "#" << endl;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq 0x10c67(%rip), %r12     # 0x15fd8
leaq 0xb0fc(%rip), %rsi      # 0x10474
movl $0x13, %edx
movq %r12, %rdi
callq 0x32e0
movq 0x50(%r15), %rax
subq 0x48(%r15), %rax
sarq $0x4, %rax
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
movq %r12, %rdi
callq 0x31c0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
leaq 0xb065(%rip), %rsi      # 0x1043d
movl $0x10, %edx
movq %r14, %rdi
callq 0x32e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
movq 0x38(%r15), %rsi
subq 0x30(%r15), %rsi
sarq $0x4, %rsi
movq %r14, %rdi
callq 0x31c0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x38(%r15), %rax
cmpq 0x30(%r15), %rax
je 0x5535
xorl %r12d, %r12d
leaq 0xb139(%rip), %rbp      # 0x105ab
movq %r14, %rdi
movl %r12d, %esi
callq 0x3440
movl $0x2, %edx
movq %rax, %rdi
leaq 0xaf20(%rip), %rsi      # 0x103ac
callq 0x32e0
movq 0x48(%r15), %rax
leaq (%r12,%r12,2), %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %rdx
cmpl $0x1, %ebx
leaq 0x18(%rax,%rcx), %rsi
cmovneq %rdx, %rsi
movq %rsp, %rdi
callq 0xc2b6
movq (%rsp), %r13
cmpq 0x8(%rsp), %r13
je 0x54e2
movl (%r13), %esi
movq %r14, %rdi
callq 0x3440
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x32e0
addq $0x4, %r13
jmp 0x54b9
movl $0x1, %edx
movq %r14, %rdi
leaq 0xb0ce(%rip), %rsi      # 0x105bf
callq 0x32e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
incq %r12
movq 0x38(%r15), %rax
subq 0x30(%r15), %rax
sarq $0x4, %rax
cmpq %r12, %rax
ja 0x5472
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5543
callq 0x3260
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5554
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5565
callq 0x3260
movq %rbx, %rdi
callq 0x3460
nop
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::clear()
void Graph::clear() {
	vsize = 0;
	graph.clear();
	vl.clear();
	TopoOrder.clear();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x0, 0xc(%rdi)
addq $0x48, %rdi
movq 0x48(%rbx), %rsi
callq 0xd36a
movq 0x30(%rbx), %rax
cmpq %rax, 0x38(%rbx)
je 0x55a2
movq %rax, 0x38(%rbx)
movq 0x60(%rbx), %rax
cmpq %rax, 0x68(%rbx)
je 0x55b0
movq %rax, 0x68(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::strTrimRight(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void Graph::strTrimRight(string& str) {
	string whitespaces(" \t\r\n");
	int index = str.find_last_not_of(whitespaces);
	if (index != string::npos) 
		str.erase(index+1);
	else
		str.clear();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xae6a(%rip), %rsi      # 0x10438
leaq 0xae67(%rip), %rdx      # 0x1043c
movq %rsp, %r14
movq %r14, %rdi
callq 0xd39a
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %rbx, %rdi
movq $-0x1, %rdx
callq 0x3400
cmpl $-0x1, %eax
jne 0x5608
movq $0x0, 0x8(%rbx)
movq (%rbx), %rdx
jmp 0x561d
incl %eax
movslq %eax, %rdx
movq 0x8(%rbx), %rcx
cmpq %rdx, %rcx
jb 0x5638
movq %rdx, 0x8(%rbx)
addq (%rbx), %rdx
movb $0x0, (%rdx)
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x562e
callq 0x3260
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0xb06f(%rip), %rdi      # 0x106ae
leaq 0xb054(%rip), %rsi      # 0x1069a
xorl %eax, %eax
callq 0x3390
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x565e
callq 0x3260
movq %rbx, %rdi
callq 0x3460
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
vector<string>& Graph::split(const string &s, char delim, vector<string> &elems) {
	int begin, end;

	begin=0;
	end=s.find(delim);
	while(end!=string::npos){
		elems.push_back(s.substr(begin, end-begin));
		begin=end+1;
		end=s.find(delim, begin);
	}
	if(begin!=s.size()){
		elems.push_back(s.substr(begin));
	}

	return elems;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, (%rsp)
movl %esi, %ebp
movq %rdi, %r14
xorl %r15d, %r15d
xorl %edx, %edx
callq 0x3330
movq %rax, %rbx
movl $0x0, %r13d
cmpl $-0x1, %ebx
je 0x56f1
leaq 0x8(%rsp), %r12
movsbl %bpl, %ebp
movslq %r15d, %rdx
movl %ebx, %eax
subl %edx, %eax
movslq %eax, %rcx
movq %r12, %rdi
movq %r14, %rsi
callq 0x32a0
movq (%rsp), %rdi
movq %r12, %rsi
callq 0xd42a
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x56d3
callq 0x3260
movl %ebx, %r15d
incl %r15d
movslq %r15d, %r13
movq %r14, %rdi
movl %ebp, %esi
movq %r13, %rdx
callq 0x3330
movq %rax, %rbx
cmpl $-0x1, %ebx
jne 0x569e
cmpq %r13, 0x8(%r14)
je 0x5730
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq $-0x1, %rcx
callq 0x32a0
movq (%rsp), %rdi
movq %r15, %rsi
callq 0xd42a
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5730
callq 0x3260
movq (%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x575e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5768
callq 0x3260
movq %rbx, %rdi
callq 0x3460
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::addEdge(int, int)
void Graph::addEdge(int sid, int tid) {
	if (sid >= vl.size())
		addVertex(sid);
	if (tid >= vl.size())
		addVertex(tid);
	// update edge list
	graph[tid].inList.push_back(sid);
	graph[sid].outList.push_back(tid);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl %esi, 0xc(%rsp)
movl %edx, 0x8(%rsp)
movslq %esi, %rax
movq 0x38(%rdi), %rcx
subq 0x30(%rdi), %rcx
sarq $0x4, %rcx
cmpq %rax, %rcx
ja 0x579c
movq %rbx, %rdi
callq 0x615e
movslq 0x8(%rsp), %rsi
movq 0x38(%rbx), %rax
subq 0x30(%rbx), %rax
sarq $0x4, %rax
cmpq %rsi, %rax
ja 0x57ba
movq %rbx, %rdi
callq 0x615e
movslq 0x8(%rsp), %rax
movq 0x48(%rbx), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
leaq (%rcx,%rax), %rdi
movq 0x8(%rcx,%rax), %rsi
cmpq 0x10(%rcx,%rax), %rsi
je 0x57eb
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x57f5
leaq 0xc(%rsp), %rdx
callq 0xdde8
movslq 0xc(%rsp), %rax
movq 0x48(%rbx), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
leaq (%rcx,%rax), %rdi
addq $0x18, %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x5828
movl 0x8(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x5832
leaq 0x8(%rsp), %rdx
callq 0xdde8
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::readGraph2(std::istream&)
void Graph::readGraph2(istream& in) {
	string line;
	int u, v;
	vector<string> edge;

	while(in.eof()!=true){
		getline(in, line);
		if(line!=""){
			edge.clear();
			split(line, '\t', edge);
			if(edge.size()!=2){
				cout << "Input File Error" << endl;
				quit();
			}
//			if(atoi(edge[0].c_str()) < 2004)
//				continue;
			u=atoi(edge[0].c_str());
			v=atoi(edge[1].c_str());
			addEdge(u, v);
			vl[u].outdegree++;
			vl[v].indegree++;
		}
		line.clear();
	}

//	for(int i=0; i<vsize; i++)
//		vl[i].id=i;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
leaq 0x28(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq (%rsi), %rax
movq -0x18(%rax), %rdi
testb $0x2, 0x20(%rsi,%rdi)
jne 0x59bd
movq %rsi, %rbx
addq %rsi, %rdi
leaq 0x18(%rsp), %r15
movl $0xa, %esi
callq 0x3280
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x34a0
movq %r15, %rdi
leaq 0xacbb(%rip), %rsi      # 0x10561
callq 0x30c0
testl %eax, %eax
je 0x5996
movq (%rsp), %rbp
movq 0x8(%rsp), %r13
cmpq %rbp, %r13
je 0x58e4
movq %rbp, %r12
movq (%r12), %rdi
addq $0x10, %r12
cmpq %r12, %rdi
je 0x58d6
callq 0x3260
addq $0x10, %r12
cmpq %r13, %r12
jne 0x58c4
movq %rbp, 0x8(%rsp)
movq %r15, %rdi
movl $0x9, %esi
movq %rsp, %rdx
callq 0x5666
movq 0x8(%rsp), %rax
subq (%rsp), %rax
cmpq $0x40, %rax
je 0x5952
movl $0x10, %edx
movq 0x106c9(%rip), %rdi     # 0x15fd8
leaq 0xab4b(%rip), %rsi      # 0x10461
callq 0x32e0
movq 0x106b6(%rip), %rcx     # 0x15fd8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x10698(%rip), %rdi     # 0x15fd8
callq 0x3040
movq %rax, %rdi
callq 0x31d0
callq 0x48f8
movq (%rsp), %r12
movq (%r12), %rdi
callq 0x33c0
movl %eax, %r13d
movq 0x20(%r12), %rdi
callq 0x33c0
movl %eax, %r12d
movq %r14, %rdi
movl %r13d, %esi
movl %eax, %edx
callq 0x5770
movslq %r13d, %rax
movq 0x30(%r14), %rcx
shlq $0x4, %rax
incl 0xc(%rcx,%rax)
movslq %r12d, %rax
shlq $0x4, %rax
incl 0x8(%rcx,%rax)
movq $0x0, 0x20(%rsp)
movq 0x18(%rsp), %rax
movb $0x0, (%rax)
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
testb $0x2, 0x20(%rbx,%rax)
je 0x5884
movq %rsp, %rdi
callq 0xc272
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x59d9
callq 0x3260
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0xc272
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x5a07
callq 0x3260
movq %rbx, %rdi
callq 0x3460
nop
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::writeGraph(std::ostream&)
void Graph::writeGraph(ostream& out) {
	cout << "Graph size = " << graph.size() << endl;
	out << "graph_for_greach" << endl;
	out << vl.size() << endl;

	GRA::iterator git;
	EdgeList el;
	EdgeList::iterator eit;
	VertexList::iterator vit;
	int i = 0;
	for (i = 0; i < vl.size(); i++) {
		out << i << ": ";
		el = graph[i].outList;
		for (eit = el.begin(); eit != el.end(); eit++)
			out << (*eit) << " ";
		out << "#" << endl;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10171(%rip), %r15     # 0x15fd8
leaq 0xa61a(%rip), %rsi      # 0x10488
movl $0xd, %edx
movq %r15, %rdi
callq 0x32e0
movq 0x50(%r14), %rax
subq 0x48(%r14), %rax
sarq $0x4, %rax
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
movq %r15, %rdi
callq 0x31c0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
leaq 0xa56f(%rip), %rsi      # 0x1043d
movl $0x10, %edx
movq %rbx, %rdi
callq 0x32e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
movq 0x38(%r14), %rsi
subq 0x30(%r14), %rsi
sarq $0x4, %rsi
movq %rbx, %rdi
callq 0x31c0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x38(%r14), %rax
cmpq 0x30(%r14), %rax
je 0x6026
xorl %r15d, %r15d
leaq 0xa657(%rip), %rbp      # 0x105bf
leaq 0xa63c(%rip), %r12      # 0x105ab
movq %rbx, %rdi
movl %r15d, %esi
callq 0x3440
movl $0x2, %edx
movq %rax, %rdi
leaq 0xa423(%rip), %rsi      # 0x103ac
callq 0x32e0
movq 0x48(%r14), %rax
leaq (%r15,%r15,2), %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %rsi
addq $0x18, %rsi
movq %rsp, %rdi
callq 0xc2b6
movq (%rsp), %r13
cmpq 0x8(%rsp), %r13
je 0x5fd7
movl (%r13), %esi
movq %rbx, %rdi
callq 0x3440
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x32e0
addq $0x4, %r13
jmp 0x5fae
movl $0x1, %edx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x32e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
incq %r15
movq 0x38(%r14), %rax
subq 0x30(%r14), %rax
sarq $0x4, %rax
cmpq %r15, %rax
ja 0x5f6f
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6034
callq 0x3260
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6045
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6056
callq 0x3260
movq %rbx, %rdi
callq 0x3460
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::addVertex(int)
void Graph::addVertex(int vid) {
	if (vid >= vl.size()) {
		int size = vl.size();
		for (int i = 0; i < (vid-size+1); i++) {
			graph.push_back(In_OutList());
			vl.push_back(Vertex());
		}
		vsize = vl.size();
	}

	Vertex v;
	vl[vid] = v;

	EdgeList il = EdgeList();
	EdgeList ol = EdgeList();
	In_OutList oil = In_OutList();
	oil.inList = il;
	oil.outList = ol;
	graph[vid] = oil;	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movslq %esi, %r13
leaq 0x30(%rdi), %r14
movq 0x38(%rdi), %rax
subq 0x30(%rdi), %rax
sarq $0x4, %rax
cmpq %r13, %rax
ja 0x6226
movl %esi, %ebp
cmpl %esi, %eax
jg 0x6217
leaq 0x48(%rbx), %r15
subl %eax, %ebp
incl %ebp
movq %rsp, %r12
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0xda82
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x61cb
callq 0x3260
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x61d9
callq 0x3260
movw $0x0, (%rsp)
movl $0x0, 0xc(%rsp)
movq $0x0, 0x4(%rsp)
movq 0x38(%rbx), %rsi
cmpq 0x40(%rbx), %rsi
je 0x6208
movups (%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x38(%rbx)
jmp 0x6213
movq %r14, %rdi
movq %r12, %rdx
callq 0xdccc
decl %ebp
jne 0x61a0
movq 0x38(%rbx), %rax
subq 0x30(%rbx), %rax
shrq $0x4, %rax
movl %eax, 0xc(%rbx)
movq (%r14), %rax
movq %r13, %rcx
shlq $0x4, %rcx
movw $0x0, (%rax,%rcx)
xorl %edx, %edx
movq %rdx, 0x4(%rax,%rcx)
movl $0x0, 0xc(%rax,%rcx)
leaq 0x50(%rsp), %rsi
movq %rdx, 0x10(%rsi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movq %rdx, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movq %rsp, %rdi
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
callq 0xc2b6
leaq 0x18(%rsp), %r14
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0xc2b6
leaq (,%r13,2), %r15
addq %r13, %r15
shlq $0x4, %r15
addq 0x48(%rbx), %r15
movq %rsp, %rsi
movq %r15, %rdi
callq 0xc2b6
addq $0x18, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xc2b6
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x62bf
callq 0x3260
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x62cd
callq 0x3260
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x62dc
callq 0x3260
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x62eb
callq 0x3260
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0xbf04
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x6314
callq 0x3260
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x6330
callq 0x3260
jmp 0x6330
movq %rax, %rbx
movq %rsp, %rdi
callq 0xbf04
movq %rbx, %rdi
callq 0x3460
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::getRoots()
vector<int> Graph::getRoots() {
	vector<int> roots;

	for(int i=0; i<vsize; i++){
		if(vl[i].indegree==0)
			roots.push_back(i);
	}
	
	return roots;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movl $0x0, 0xc(%rsp)
cmpl $0x0, 0xc(%rsi)
jle 0x646f
movq %rsi, %r14
xorl %eax, %eax
leaq 0xc(%rsp), %r15
movslq %eax, %rcx
movq 0x30(%r14), %rdx
shlq $0x4, %rcx
cmpl $0x0, 0x8(%rdx,%rcx)
jne 0x645f
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x6454
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x645f
movq %rbx, %rdi
movq %r15, %rdx
callq 0xdde8
movl 0xc(%rsp), %eax
incl %eax
movl %eax, 0xc(%rsp)
cmpl 0xc(%r14), %eax
jl 0x642c
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x648c
callq 0x3260
movq %r14, %rdi
callq 0x3460
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::getTails()
vector<int> Graph::getTails(){
	vector<int> tails;

	for(int i=0; i<vsize; i++){
		if(vl[i].outdegree==0)
			tails.push_back(i);
	}

	return tails;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movl $0x0, 0xc(%rsp)
cmpl $0x0, 0xc(%rsi)
jle 0x6509
movq %rsi, %r14
xorl %eax, %eax
leaq 0xc(%rsp), %r15
movslq %eax, %rcx
movq 0x30(%r14), %rdx
shlq $0x4, %rcx
cmpl $0x0, 0xc(%rdx,%rcx)
jne 0x64f9
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x64ee
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x64f9
movq %rbx, %rdi
movq %r15, %rdx
callq 0xdde8
movl 0xc(%rsp), %eax
incl %eax
movl %eax, 0xc(%rsp)
cmpl 0xc(%r14), %eax
jl 0x64c6
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x6526
callq 0x3260
movq %r14, %rdi
callq 0x3460
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::hasEdge(int, int)
bool Graph::hasEdge(int src, int trg) {
	EdgeList el = graph[src].outList;
	EdgeList::iterator ei;
	for (ei = el.begin(); ei != el.end(); ei++)
		if ((*ei) == trg)
			return true;
	return false;

}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebx
movslq %esi, %rax
movq 0x48(%rdi), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $0x18, %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xc408
movq (%r14), %rdi
movq 0x8(%r14), %rax
cmpq %rax, %rdi
setne %bpl
je 0x6588
cmpl %ebx, (%rdi)
je 0x6588
leaq 0x4(%rdi), %rcx
cmpq %rax, %rcx
setne %bpl
je 0x6588
leaq 0x4(%rcx), %rdx
cmpl %ebx, (%rcx)
movq %rdx, %rcx
jne 0x6574
testq %rdi, %rdi
je 0x6592
callq 0x3260
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::Graph(Graph const&)
Graph::Graph(const Graph& g) {
	if (this != &g) {
		this->graph = g.graph;
		this->vl = g.vl;
		this->vsize = g.vsize;
		this->name=g.name;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r13
movq %rdi, %r15
leaq 0x20(%rdi), %r14
movq %r14, 0x10(%rdi)
movq $0x0, 0x18(%rdi)
movb $0x0, 0x20(%rdi)
leaq 0x30(%rdi), %rbx
movl $0xd8, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3160
cmpq %r13, %r15
je 0x664a
leaq 0x10(%r15), %rax
movq %rax, 0x8(%rsp)
leaq 0x48(%r15), %r12
leaq 0x78(%r15), %rax
movq %rax, 0x20(%rsp)
leaq 0x90(%r15), %rax
movq %rax, 0x18(%rsp)
leaq 0xa8(%r15), %rax
movq %rax, 0x10(%rsp)
leaq 0xf0(%r15), %rbp
leaq 0x48(%r13), %rsi
movq %r12, %rdi
callq 0xbfb4
leaq 0x30(%r13), %rsi
movq %rbx, %rdi
callq 0xc082
movl 0xc(%r13), %eax
movl %eax, 0xc(%r15)
addq $0x10, %r13
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x3150
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
movq %rbp, %rdi
callq 0xbf26
movq 0xd8(%r15), %rdi
testq %rdi, %rdi
je 0x6675
callq 0x3260
movq 0xc0(%r15), %rdi
testq %rdi, %rdi
je 0x6686
callq 0x3260
movq 0x10(%rsp), %rdi
callq 0xbf66
movq 0x18(%rsp), %rdi
callq 0xbf26
movq 0x20(%rsp), %rdi
callq 0xbf26
movq 0x60(%r15), %rdi
testq %rdi, %rdi
je 0x66b2
callq 0x3260
movq %r12, %rdi
callq 0xbdc2
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x66c7
callq 0x3260
movq 0x8(%rsp), %rax
movq (%rax), %rdi
cmpq %r14, %rdi
je 0x66d9
callq 0x3260
movq %r13, %rdi
callq 0x3460
nop
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::operator=(Graph const&)
Graph& Graph::operator=(const Graph& g) {
	if (this != &g) {
		graph = g.graph;
		vl = g.vl;
		vsize = g.vsize;
		name=g.name;
	}
	return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq %rsi, %rdi
je 0x6722
movq %rsi, %r14
addq $0x48, %rsi
leaq 0x48(%rbx), %rdi
callq 0xbfb4
leaq 0x30(%r14), %rsi
leaq 0x30(%rbx), %rdi
callq 0xc082
movl 0xc(%r14), %eax
movl %eax, 0xc(%rbx)
addq $0x10, %r14
leaq 0x10(%rbx), %rdi
movq %r14, %rsi
callq 0x3150
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::layerSeparation()
void Graph::layerSeparation(){
	int i, k;
	int u,v;
	vector<int> indegreeRecord(vsize);
	uint16_t layer=1;
	int vectorsize, tmpsize;

	TopoOrder.resize(vsize);

	k=0;
	for(i=0; i<vsize; i++){
		indegreeRecord[i]=vl[i].indegree;
		if(indegreeRecord[i]==0){
			TopoOrder[k]=i;
			vl[i].topoID =k;
			vl[i].layer=layer;
			k++;
		}
	}


	bool flag=true;
	i=0;
	vectorsize=k;
	while(flag){
		flag=false;
		layer++;
		for(; i<vectorsize; i++){
			u=TopoOrder[i];
			tmpsize=graph[u].outList.size();
			for(int j=0; j<tmpsize; j++){
				v=graph[u].outList[j];
				indegreeRecord[v]--;
				if(indegreeRecord[v]==0){
					flag=true;
					TopoOrder[k]=v;
					vl[v].topoID=k;
					vl[v].layer=layer;
					k++;
				}
			}
		}
		vectorsize=k;
	}


	if(TopoOrder.size()!=vsize){
		cout << "Topology Order Computation Error" << endl;
		quit();
	}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movslq 0xc(%rdi), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xc488
leaq 0x60(%rbx), %rdi
movslq 0xc(%rbx), %rsi
callq 0xc512
xorl %eax, %eax
cmpl $0x0, 0xc(%rbx)
movl $0x0, %ecx
jle 0x6bfe
movq 0x10(%rsp), %rdx
movq 0x30(%rbx), %rsi
movq 0x60(%rbx), %rdi
addq $0x8, %rsi
xorl %r8d, %r8d
xorl %ecx, %ecx
movl (%rsi), %r9d
movl %r9d, (%rdx,%r8,4)
testl %r9d, %r9d
jne 0x6bee
movslq %ecx, %rcx
movl %r8d, (%rdi,%rcx,4)
movl %ecx, -0x4(%rsi)
movw $0x1, -0x8(%rsi)
incl %ecx
incq %r8
movslq 0xc(%rbx), %r9
addq $0x10, %rsi
cmpq %r9, %r8
jl 0x6bd0
movq 0x48(%rbx), %rdx
movq 0x60(%rbx), %rsi
movw $0x1, %di
incl %edi
cmpl %ecx, %eax
jge 0x6c86
movq 0x10(%rsp), %r9
cltq
movslq %ecx, %r10
xorl %r8d, %r8d
movslq (%rsi,%rax,4), %r11
leaq (%r11,%r11,2), %r14
shlq $0x4, %r14
movq 0x18(%rdx,%r14), %r11
movq 0x20(%rdx,%r14), %r14
subq %r11, %r14
shrq $0x2, %r14
testl %r14d, %r14d
jle 0x6c7c
movq 0x30(%rbx), %r15
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
xorl %r12d, %r12d
movl (%r11,%r12,4), %ebp
movslq %ebp, %r13
decl (%r9,%r13,4)
jne 0x6c74
movslq %ecx, %rcx
movl %r13d, (%rsi,%rcx,4)
shlq $0x4, %r13
movl %ecx, 0x4(%r15,%r13)
movw %di, (%r15,%r13)
incl %ecx
movb $0x1, %r8b
incq %r12
cmpq %r12, %r14
jne 0x6c4d
incq %rax
cmpq %r10, %rax
jne 0x6c1d
jmp 0x6c89
xorl %r8d, %r8d
testb $0x1, %r8b
jne 0x6c0a
movq 0x68(%rbx), %rax
subq 0x60(%rbx), %rax
sarq $0x2, %rax
movslq 0xc(%rbx), %rcx
cmpq %rcx, %rax
je 0x6cf3
movq 0xf329(%rip), %rbx      # 0x15fd8
leaq 0x9802(%rip), %rsi      # 0x104b8
movl $0x20, %edx
movq %rbx, %rdi
callq 0x32e0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0xf2f7(%rip), %rdi      # 0x15fd8
callq 0x3040
movq %rax, %rdi
callq 0x31d0
callq 0x48f8
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x6d02
callq 0x3260
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6d13
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x6d25
callq 0x3260
movq %rbx, %rdi
callq 0x3460
nop
// File: /workspace/github_cpp_makefile_star2_O1/datourat[P]IP-label-for-graph-reachability/Graph.cpp
// Function: Graph::countIndegree() const
void Graph::countIndegree() const {
	vector<int> count(100, 0);
	int i;
	string name="data\\"+name+"_count.txt";

	for(i=0; i<vsize; i++){
		if(vl[i].indegree<100){
			count[vl[i].indegree]++;
		}else
			count[99]++;
	}

	ofstream output(name.c_str());
	for(i=0;i<100;i++){
		output << count[i] << endl;
	}

	output.close();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x220, %rsp            # imm = 0x220
movq %rdi, %r14
movl $0x190, %edi            # imm = 0x190
callq 0x3290
movq %rax, %rbx
movl $0x190, %edx            # imm = 0x190
movq %rax, %rdi
xorl %esi, %esi
callq 0x3160
leaq 0x92c3(%rip), %rsi      # 0x104d9
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0xc73f
leaq 0x92b5(%rip), %rsi      # 0x104df
leaq 0x20(%rsp), %rdi
callq 0x34b0
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x725b
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x7263
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x728e
callq 0x3260
movslq 0xc(%r14), %rax
testq %rax, %rax
jle 0x72c4
movq 0x30(%r14), %rcx
leaq 0x18c(%rbx), %rdx
shlq $0x4, %rax
xorl %esi, %esi
movslq 0x8(%rcx,%rsi), %rdi
cmpq $0x64, %rdi
leaq (%rbx,%rdi,4), %rdi
cmovgeq %rdx, %rdi
incl (%rdi)
addq $0x10, %rsi
cmpq %rsi, %rax
jne 0x72a8
movq (%rsp), %rsi
leaq 0x20(%rsp), %rdi
movl $0x10, %edx
callq 0x32c0
xorl %r13d, %r13d
leaq 0x20(%rsp), %r14
movl (%rbx,%r13,4), %esi
movq %r14, %rdi
callq 0x3440
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
incq %r13
cmpq $0x64, %r13
jne 0x72df
leaq 0x20(%rsp), %rdi
callq 0x3350
movq 0xec99(%rip), %rax      # 0x15fc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x28(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x20(%rsp,%rcx)
callq 0x3220
leaq 0x118(%rsp), %rdi
callq 0x30e0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x7368
callq 0x3260
movq %rbx, %rdi
callq 0x3260
addq $0x220, %rsp            # imm = 0x220
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x73a0
movq %rax, %r14
jmp 0x73ad
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x73b6
jmp 0x73bb
movq %rax, %r14
jmp 0x73bb
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x3380
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x73bb
callq 0x3260
movq %rbx, %rdi
callq 0x3260
movq %r14, %rdi
callq 0x3460
nop