LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/iPapatsoris[P]Maximum-Independent-Set/src/Alg.hpp
// Function: Alg::BranchingRule::getMeasure(Graph const&, unsigned int const&, std::unordered_set<unsigned int, std::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<unsigned int>>*)
static uint32_t getMeasure(const Graph &graph, const uint32_t &node, std::unordered_set<uint32_t> *neighborsAtDistance2Ptr = NULL) {
            std::vector<uint32_t> neighbors;
            graph.gatherNeighbors(node, neighbors);
            neighbors.push_back(node);
            std::unordered_set<uint32_t> neighborsAtDistance2;
            if (neighborsAtDistance2Ptr == NULL) {
                graph.getNeighborsAtDistance2(node, neighborsAtDistance2);
                neighborsAtDistance2Ptr = &neighborsAtDistance2;
            }
            uint32_t f = graph.getNumberOfEdgesBetweenSets(neighbors, *neighborsAtDistance2Ptr);
            return 2 * f - neighborsAtDistance2Ptr->size();
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
leaq 0x30(%rsp), %r8
orl $-0x1, (%r8)
xorl %ecx, %ecx
callq 0xa3c8
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0xa1ac
leaq 0x60(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
testq %rbx, %rbx
jne 0x1426c
leaq 0xc(%rsp), %rcx
orl $-0x1, (%rcx)
leaq 0x30(%rsp), %rbx
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
xorl %r8d, %r8d
callq 0x2966
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x142cc
movl %eax, %ebp
addl %eax, %ebp
subl 0x18(%rbx), %ebp
leaq 0x30(%rsp), %rdi
callq 0xad26
leaq 0x10(%rsp), %rdi
callq 0xb872
movl %ebp, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x142a6
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xad26
jmp 0x142ba
jmp 0x142b7
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xb872
movq %rbx, %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O2/iPapatsoris[P]Maximum-Independent-Set/src/Graph.hpp
// Function: unsigned int Graph::getNumberOfEdgesBetweenSets<std::vector<unsigned int, std::allocator<unsigned int>>, std::unordered_set<unsigned int, std::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<unsigned int>>>(std::vector<unsigned int, std::allocator<unsigned int>> const&, std::unordered_set<unsigned int, std::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<unsigned int>> const&) const
uint32_t getNumberOfEdgesBetweenSets(const Container1 &set1, const Container2 &set2) const {
        uint32_t count = 0;
        for (auto i: set1) {
            for (auto j: set2) {
                if (edgeExists(i, j)) {
                    count++;
                }
            }
        }
        return count;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq (%rsi), %r13
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rsp)
addq $0x10, %rdx
movq %rdx, 0x8(%rsp)
xorl %ebp, %ebp
leaq 0x4(%rsp), %r15
movq %rsp, %r12
cmpq 0x10(%rsp), %r13
je 0x14339
movl (%r13), %eax
movl %eax, 0x4(%rsp)
movq 0x8(%rsp), %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x14333
movl 0x8(%rbx), %eax
movl %eax, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x9e3a
movzbl %al, %eax
addl %eax, %ebp
jmp 0x14310
addq $0x4, %r13
jmp 0x142fc
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/iPapatsoris[P]Maximum-Independent-Set/src/Mis.cpp
// Function: Mis::markHypernode(unsigned int const&, std::vector<unsigned int, std::allocator<unsigned int>> const&, std::vector<unsigned int, std::allocator<unsigned int>> const&)
void Mis::markHypernode(const uint32_t &hypernode, const vector<uint32_t> &nodes, const vector<uint32_t> &neighbors) {
    const vector<uint32_t> *container = &nodes;
    for (uint32_t i = 0 ; i < 2 ; i++) {
        for (auto node: *container) {
            auto it = hypernodeToInnernode.find(node);
            if (it != hypernodeToInnernode.end()) {
                it->second.outerLevel = false;
            }
        }
        container = &neighbors;
    }
    assert(hypernodeToInnernode.insert({hypernode, Innernode(nodes, neighbors)}).second);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r15
movq %rsi, 0x8(%rsp)
movq %rdi, %rbx
addq $0x18, %rbx
xorl %ebp, %ebp
leaq 0x10(%rsp), %r13
movq %rdx, (%rsp)
movq %rdx, %rax
cmpl $0x2, %ebp
je 0x14abf
movq (%rax), %r14
movq 0x8(%rax), %r12
cmpq %r12, %r14
je 0x14ab8
movl (%r14), %eax
movl %eax, 0x10(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x156f0
testq %rax, %rax
je 0x14ab2
movb $0x0, 0x40(%rax)
addq $0x4, %r14
jmp 0x14a92
incl %ebp
movq %r15, %rax
jmp 0x14a86
leaq 0x50(%rsp), %r13
movq %r13, %rdi
movq (%rsp), %rsi
movq %r15, %rdx
callq 0x152f2
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movq %r13, %rdx
callq 0x1532c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1586c
testb $0x1, %dl
je 0x14b1e
leaq 0x18(%rsp), %rdi
callq 0x13a70
leaq 0x50(%rsp), %rdi
callq 0x13a70
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3294(%rip), %rdi      # 0x17db9
leaq 0x32da(%rip), %rsi      # 0x17e06
leaq 0x32df(%rip), %rcx      # 0x17e12
pushq $0x13
popq %rdx
callq 0x2100
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x13a70
leaq 0x50(%rsp), %rdi
callq 0x13a70
movq %rbx, %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O2/iPapatsoris[P]Maximum-Independent-Set/src/Mis.cpp
// Function: Mis::unfoldHypernodes(std::vector<unsigned int, std::allocator<unsigned int>>&, std::vector<unsigned int, std::allocator<unsigned int>>&)
void Mis::unfoldHypernodes(vector<uint32_t> &zeroDegreeNodes, vector<uint32_t> &finalMis) {
    finalMis.reserve(zeroDegreeNodes.size() + mis.size());
    expandIncludedNodes(mis, finalMis);
    expandIncludedNodes(zeroDegreeNodes, finalMis);
    expandExcludedNodes(finalMis);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%rsi), %rax
subq (%rsi), %rax
sarq $0x2, %rax
movq 0x8(%rdi), %rsi
subq (%rdi), %rsi
sarq $0x2, %rsi
addq %rax, %rsi
movq %rdx, %rdi
callq 0xa11c
movq %r15, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1533c
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1533c
movq %r15, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x14bb6
nop
// File: /workspace/github_cpp_makefile_star2_O2/iPapatsoris[P]Maximum-Independent-Set/src/Mis.cpp
// Function: Mis::expandExcludedNodes(std::vector<unsigned int, std::allocator<unsigned int>>&)
void Mis::expandExcludedNodes(vector<uint32_t> &finalMis) {
    while (!hypernodeToInnernode.empty()) {
        auto hypernode = hypernodeToInnernode.begin();
        while (!hypernode->second.outerLevel) {
            hypernode++;
        }
        for (auto node : hypernode->second.nodes) {
            auto nestedHypernode = hypernodeToInnernode.find(node);
            if (nestedHypernode != hypernodeToInnernode.end()) {
                assert(!nestedHypernode->second.outerLevel);
                nestedHypernode->second.outerLevel = true;
            }
            mis.push_back(node);
        }
        for (auto node : hypernode->second.neighbors) {
            auto innerHypernode = hypernodeToInnernode.find(node);
            if (innerHypernode != hypernodeToInnernode.end()) {
                assert(!innerHypernode->second.outerLevel);
                innerHypernode->second.outerLevel = true;
            }
        }
        hypernodeToInnernode.erase(hypernode);
        expandIncludedNodes(mis, finalMis);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, 0x8(%rsp)
movq %rdi, %r14
leaq 0x18(%rdi), %r15
leaq 0x28(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x4(%rsp), %r13
cmpq $0x0, 0x30(%r14)
je 0x14c88
movq 0x10(%rsp), %rbp
movq (%rbp), %rbp
cmpb $0x1, 0x40(%rbp)
jne 0x14bee
movq 0x10(%rbp), %rbx
movq 0x18(%rbp), %r12
cmpq %r12, %rbx
je 0x14c36
movl (%rbx), %eax
movl %eax, 0x4(%rsp)
movq %r15, %rdi
movq %r13, %rsi
callq 0x156f0
testq %rax, %rax
je 0x14c25
cmpb $0x1, 0x40(%rax)
je 0x14c97
movb $0x1, 0x40(%rax)
movq %r14, %rdi
movq %r13, %rsi
callq 0xa1ac
addq $0x4, %rbx
jmp 0x14c00
movq 0x28(%rbp), %rbx
movq 0x30(%rbp), %r12
cmpq %r12, %rbx
je 0x14c68
movl (%rbx), %eax
movl %eax, (%rsp)
movq %r15, %rdi
movq %rsp, %rsi
callq 0x156f0
testq %rax, %rax
je 0x14c62
cmpb $0x1, 0x40(%rax)
je 0x14cb0
movb $0x1, 0x40(%rax)
addq $0x4, %rbx
jmp 0x14c3e
movq %r15, %rdi
movq %rbp, %rsi
callq 0x1576c
movq %r14, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x1533c
jmp 0x14bde
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3266(%rip), %rdi      # 0x17f04
leaq 0x3161(%rip), %rsi      # 0x17e06
leaq 0x327c(%rip), %rcx      # 0x17f28
pushq $0x36
jmp 0x14cc7
leaq 0x32a3(%rip), %rdi      # 0x17f5a
leaq 0x3148(%rip), %rsi      # 0x17e06
leaq 0x3263(%rip), %rcx      # 0x17f28
pushq $0x3e
popq %rdx
callq 0x2100
nop
// File: /workspace/github_cpp_makefile_star2_O2/iPapatsoris[P]Maximum-Independent-Set/src/Mis.cpp
// Function: Mis::print(std::vector<unsigned int, std::allocator<unsigned int>>&)
void Mis::print(vector<uint32_t> &finalMis) {
    cout <<"\nWriting Maximum Independent Set to file " << Mis::misOutputFile << endl;
    cout << "Maximum Independent Set size: " << finalMis.size() << "\n";
    FILE *f;
    f = fopen(Mis::misOutputFile.c_str(), "w");
    if (f == NULL) {
        cerr << "Error in opening mis output file " << Mis::misOutputFile << endl;
        exit(EXIT_FAILURE);
    }
    fprintf(f, "Maximum Independent Set size: %ld\n", finalMis.size());
    for (auto node : finalMis) {
        fprintf(f, "%" PRIu32 "\n", node);
    }
    fclose(f);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xd2f0(%rip), %r14      # 0x21fd0
leaq 0x3189(%rip), %rsi      # 0x17e70
movq %r14, %rdi
callq 0x2170
leaq 0xd4ba(%rip), %rsi      # 0x221b0
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x318d(%rip), %rsi      # 0x17e9a
movq %r14, %rdi
callq 0x2170
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x2, %rsi
movq %rax, %rdi
callq 0x2110
leaq 0x285b(%rip), %rsi      # 0x1758a
movq %rax, %rdi
callq 0x2170
movq 0xd472(%rip), %rdi      # 0x221b0
leaq 0x3174(%rip), %rsi      # 0x17eb9
callq 0x21d0
testq %rax, %rax
je 0x14daa
movq %rax, %r14
movq 0x8(%rbx), %rdx
subq (%rbx), %rdx
sarq $0x2, %rdx
leaq 0x3179(%rip), %rsi      # 0x17edd
movq %rax, %rdi
xorl %eax, %eax
callq 0x2220
movq (%rbx), %r15
movq 0x8(%rbx), %r12
leaq 0x3184(%rip), %rbx      # 0x17f00
cmpq %r12, %r15
je 0x14d97
movl (%r15), %edx
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2220
addq $0x4, %r15
jmp 0x14d7c
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2180
movq 0xd23f(%rip), %rdi      # 0x21ff0
leaq 0x3103(%rip), %rsi      # 0x17ebb
callq 0x2170
leaq 0xd3ec(%rip), %rsi      # 0x221b0
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
pushq $0x1
popq %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O2/iPapatsoris[P]Maximum-Independent-Set/src/Mis.cpp
// Function: Mis::removeSubsequentNodes(std::unordered_set<unsigned int, std::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<unsigned int>>&)
void Mis::removeSubsequentNodes(unordered_set<uint32_t> &nodes) {
    removeHypernodes(nodes);
    unordered_set<uint32_t> toRemove;
    for (auto s: subsequentNodes) {
        if (nodes.find(s.second) == nodes.end()) {
            toRemove.insert(s.first);
        }
    }
    for (auto i: toRemove) {
        subsequentNodes.erase(i);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %r15
callq 0x14ddc
leaq 0x40(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
leaq 0x20(%rsp), %r13
xorps %xmm0, %xmm0
movups %xmm0, (%r13)
movl $0x3f800000, 0x10(%r13) # imm = 0x3F800000
movups %xmm0, 0x18(%r13)
leaq 0x50(%r15), %rbx
addq $0x60, %r15
leaq 0xc(%rsp), %r12
leaq 0x8(%rsp), %rbp
movq (%r15), %r15
testq %r15, %r15
je 0x1509e
movq 0x8(%r15), %rax
movq %rax, 0x8(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0xc35a
testq %rax, %rax
jne 0x1506e
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0xbc1a
jmp 0x1506e
leaq 0x8(%rsp), %r14
movq (%r13), %r13
testq %r13, %r13
je 0x150c1
movl 0x8(%r13), %eax
movl %eax, 0x8(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x15b3a
jmp 0x150a3
leaq 0x10(%rsp), %rdi
callq 0xad26
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x150de
jmp 0x150de
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xad26
movq %rbx, %rdi
callq 0x22c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/iPapatsoris[P]Maximum-Independent-Set/src/ControlUnit.cpp
// Function: main
int main(int argc, char **argv) {
    string graphInputFile;
    bool checkIndependentSet = false;
    for (int i=1 ; i < argc ; i++) {
        if (!strcmp(argv[i], "-check")) {
            checkIndependentSet = true;
        } else {
            graphInputFile = argv[i];
        }
   }
   if (!graphInputFile.compare("")) {
       cerr << "Error: No graph input file specified" << endl;
       exit(EXIT_FAILURE);
   }
   ControlUnit controlUnit(graphInputFile, checkIndependentSet);
   if (!checkIndependentSet) {
       controlUnit.run();
   } else {
       controlUnit.checkIndependentSet(graphInputFile + ".mis");
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
movb %cl, 0xf(%rsp)
movslq %edi, %r13
pushq $0x1
popq %rbp
leaq 0x2493(%rip), %r14      # 0x1804f
leaq 0x10(%rsp), %r15
cmpq %r13, %rbp
jge 0x15bf0
movq (%rbx,%rbp,8), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2210
testl %eax, %eax
je 0x15be6
movq %r15, %rdi
movq %r12, %rsi
callq 0x22e0
jmp 0x15beb
movb $0x1, 0xf(%rsp)
incq %rbp
jmp 0x15bc1
leaq 0x197f(%rip), %rsi      # 0x17576
leaq 0x10(%rsp), %rdi
callq 0x2060
testl %eax, %eax
je 0x15c80
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0xf(%rsp), %rdx
callq 0x11754
cmpb $0x0, 0xf(%rsp)
je 0x15c51
leaq 0x1e0d(%rip), %rdx      # 0x17a34
leaq 0x48(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x122dd
leaq 0x30(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x15ce2
leaq 0x48(%rsp), %rdi
callq 0x22f8
jmp 0x15c5b
leaq 0x30(%rsp), %rdi
callq 0x11b06
leaq 0x30(%rsp), %rdi
callq 0x11808
leaq 0x10(%rsp), %rdi
callq 0x22f8
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc369(%rip), %rdi      # 0x21ff0
leaq 0x23c8(%rip), %rsi      # 0x18056
callq 0x2170
movq %rax, %rdi
callq 0x20a0
pushq $0x1
popq %rdi
callq 0x21e0
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x22f8
jmp 0x15cb7
jmp 0x15cb4
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x11808
jmp 0x15cca
jmp 0x15cc7
jmp 0x15cc7
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x22f8
movq %rbx, %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O2/iPapatsoris[P]Maximum-Independent-Set/src/Util.cpp
// Function: isSubsetOf(std::vector<unsigned int, std::allocator<unsigned int>> const&, __gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int, std::allocator<unsigned int>>>&, __gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int, std::allocator<unsigned int>>>&)
bool isSubsetOf(const vector<uint32_t> &container1, vector<uint32_t>::iterator &begin, vector<uint32_t>::iterator &end) {
    for (auto &i: container1) {
        if (!binary_search(begin, end, i)) {
            return false;
        }
    }
    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq (%rdi), %rcx
movq 0x8(%rdi), %r12
movq %rcx, %r15
cmpq %r12, %rcx
je 0x15fa3
movq (%r14), %rdi
movq (%rbx), %rsi
movq %r15, %rdx
callq 0x1605b
leaq 0x4(%r15), %rcx
testb %al, %al
jne 0x15f85
cmpq %r12, %r15
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/iPapatsoris[P]Maximum-Independent-Set/src/Util.cpp
// Function: setsHaveKUncommonElements(std::vector<unsigned int, std::allocator<unsigned int>> const&, std::vector<unsigned int, std::allocator<unsigned int>> const&, unsigned int const&, unsigned int&)
bool setsHaveKUncommonElements(const vector<uint32_t> &container1, const vector<uint32_t> &container2, const uint32_t &k, uint32_t &uncommonElement) {
    uint32_t uncommonElements = 0;
    const vector<uint32_t> *containerPtr = &container1;
    auto begin = container2.begin();
    auto end = container2.end();
    for (uint32_t it = 0 ; it < 2 ; it++) {
        for (auto &i: *containerPtr) {
            if (!binary_search(begin, end, i)) {
                uncommonElements++;
                uncommonElement = i;
                if (uncommonElements > k) {
                    return false;
                }
            }
        }
        containerPtr = &container2;
        begin = container1.begin();
        end = container1.end();
    }
    return (uncommonElements == k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, 0x20(%rsp)
movq %rdx, %rbx
xorl %edx, %edx
movq %rsi, 0x18(%rsp)
movq %rsi, %rax
movq %rdi, 0x10(%rsp)
movq %rdi, %rcx
xorl %r12d, %r12d
movl %edx, 0xc(%rsp)
cmpl $0x2, %edx
je 0x1603a
movq (%rax), %r13
movq 0x8(%rax), %rbp
movq (%rcx), %r15
movq 0x8(%rcx), %r14
cmpq %r14, %r15
je 0x16028
movq %r13, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x16082
testb %al, %al
jne 0x16022
incl %r12d
movl (%r15), %eax
movq 0x20(%rsp), %rcx
movl %eax, (%rcx)
movl (%rbx), %eax
cmpl %eax, %r12d
ja 0x1603c
addq $0x4, %r15
jmp 0x15ff7
movl 0xc(%rsp), %edx
incl %edx
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
jmp 0x15fe0
movl (%rbx), %eax
cmpl $0x2, 0xc(%rsp)
setae %cl
cmpl %eax, %r12d
sete %al
andb %cl, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH01_GettingStarted/examples/add_item.cc
// Function: main
int main() 
{
    Sales_item item1, item2;

    std::cin >> item1 >> item2;   //read a pair of transactions
    std::cout << item1 + item2 << std::endl; //print their sum

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x98, %rsp
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
andl $0x0, 0x10(%rax)
andq $0x0, 0x18(%rax)
leaq -0x28(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
andl $0x0, 0x10(%rax)
andq $0x0, 0x18(%rax)
movq 0x2b8a(%rip), %rdi      # 0x3fe0
leaq -0x68(%rbp), %rsi
callq 0x129c
movq 0x2b7a(%rip), %rdi      # 0x3fe0
leaq -0x38(%rbp), %rsi
callq 0x129c
leaq -0x98(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0x126a
movq 0x2b46(%rip), %rdi      # 0x3fd0
leaq -0x98(%rbp), %rsi
callq 0x1333
movq 0x2b33(%rip), %rdi      # 0x3fd0
callq 0x1040
leaq -0x98(%rbp), %rdi
callq 0x1030
leaq -0x38(%rbp), %rdi
callq 0x1030
leaq -0x68(%rbp), %rdi
callq 0x1030
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %rbp
retq
jmp 0x14df
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x1030
jmp 0x14e2
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x1030
leaq -0x68(%rbp), %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1100
// File: /workspace/github_cpp_makefile_star2_O2/statgen[P]statgen/lib/tclap-1.2.0/examples/test10.cpp
// Function: main
int main()
{
	char *argv5[] = {"Foo", 0};
	const char *argv6[] = {"Foo", 0};
	const char * const argv7[] = {"Foo", 0};
	char **argv1 = argv5;
	const char **argv2 = argv6;
	const char * const * argv3 = argv7;
	const char * const * const argv4 = argv7;

	CmdLine cmd("Command description message", ' ', "0.9");
	cmd.parse(0, argv1);
	cmd.parse(0, argv2);
	cmd.parse(0, argv3);
	cmd.parse(0, argv4);
	cmd.parse(0, argv5);
	cmd.parse(0, argv6);
	cmd.parse(0, argv7);
}

// Assembly:
pushq %rbx
subq $0x160, %rsp            # imm = 0x160
movaps 0x96b5(%rip), %xmm0     # 0xcaf0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
leaq 0x4bd5(%rip), %rsi      # 0x8026
leaq 0x60(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x382c
leaq 0x4bdb(%rip), %rsi      # 0x8042
leaq 0x40(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x382c
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
pushq $0x20
popq %rdx
leaq 0x40(%rsp), %rcx
pushq $0x1
popq %r8
callq 0x4250
leaq 0x40(%rsp), %rdi
callq 0x3308
leaq 0x60(%rsp), %rdi
callq 0x3308
leaq 0x80(%rsp), %rdi
leaq 0x30(%rsp), %rdx
xorl %esi, %esi
callq 0x43be
leaq 0x80(%rsp), %rdi
leaq 0x20(%rsp), %rdx
xorl %esi, %esi
callq 0x43be
leaq 0x80(%rsp), %rdi
leaq 0x10(%rsp), %rdx
xorl %esi, %esi
callq 0x43be
leaq 0x80(%rsp), %rdi
leaq 0x10(%rsp), %rdx
xorl %esi, %esi
callq 0x43be
leaq 0x80(%rsp), %rdi
leaq 0x30(%rsp), %rdx
xorl %esi, %esi
callq 0x43be
leaq 0x80(%rsp), %rdi
leaq 0x20(%rsp), %rdx
xorl %esi, %esi
callq 0x43be
leaq 0x80(%rsp), %rdi
leaq 0x10(%rsp), %rdx
xorl %esi, %esi
callq 0x43be
leaq 0x80(%rsp), %rdi
callq 0x41ac
xorl %eax, %eax
addq $0x160, %rsp            # imm = 0x160
popq %rbx
retq
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x3308
jmp 0x355e
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x3308
jmp 0x357f
movq %rax, %rbx
jmp 0x357f
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x41ac
movq %rbx, %rdi
callq 0x3280
nop
// File: /workspace/github_cpp_makefile_star2_O2/parth-shel[P]xpac/client.cpp
// Function: remove_orphans()
void remove_orphans(){

	std::vector<std::string> to_remove;

	for(auto itr=indegree_map.begin(); itr!=indegree_map.end(); itr++) {
		if(itr->second == 0){
			to_remove.push_back(itr->first);
		}
	}

	if(to_remove.empty()){
		std::cout<<"No orphaned packages found!";
		exit(0);
	}

	std::cout<<"The following packages will be removed from the system: "<<std::endl;
	for(auto str:to_remove) {
		std::cout<<str<<std::endl;
	}

	char confirm;
	do {
		std::cout<<"Do you confirm?[Y/n]"<<std::endl;
		std::cin>>confirm;
	} while(confirm != 'Y' && confirm != 'n' && confirm != 'N' && confirm != 'y');

	if(confirm == 'n' || confirm == 'N') {
		exit(0);
	}
	else { //Deleting all packages:
		for(auto str:to_remove){
			remove_package(str);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
leaq -0x50(%rbp), %rbx
andq $0x0, 0x10(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
movq 0xa62b(%rip), %r14      # 0xf558
leaq 0xa614(%rip), %r15      # 0xf548
cmpq %r15, %r14
je 0x4f59
cmpl $0x0, 0x40(%r14)
jne 0x4f4c
leaq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x5f7c
movq %r14, %rdi
callq 0x32a0
movq %rax, %r14
jmp 0x4f34
movq -0x50(%rbp), %rax
cmpq -0x48(%rbp), %rax
je 0x5083
movq 0xa062(%rip), %rdi      # 0xefd0
leaq 0x5184(%rip), %rsi      # 0xa0f9
callq 0x3370
movq %rax, %rdi
callq 0x31f0
movq -0x50(%rbp), %rbx
movq -0x48(%rbp), %r12
leaq -0x70(%rbp), %r14
movq 0xa03b(%rip), %r15      # 0xefd0
cmpq %r12, %rbx
je 0x4fc6
movq %r14, %rdi
movq %rbx, %rsi
callq 0x34a0
movq %r15, %rdi
movq %r14, %rsi
callq 0x3340
movq %rax, %rdi
callq 0x31f0
movq %r14, %rdi
callq 0x36a8
addq $0x20, %rbx
jmp 0x4f95
movq 0xa003(%rip), %rbx      # 0xefd0
leaq 0x50b8(%rip), %r14      # 0xa08c
movq 0xa005(%rip), %r15      # 0xefe0
leaq -0x29(%rbp), %r12
movabsq $0x80100000801, %r13    # imm = 0x80100000801
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3370
movq %rax, %rdi
callq 0x31f0
movq %r15, %rdi
movq %r12, %rsi
callq 0x3460
movzbl -0x29(%rbp), %eax
leal -0x4e(%rax), %ecx
cmpl $0x2b, %ecx
ja 0x4fe9
btq %rcx, %r13
jae 0x4fe9
andb $0x5f, %al
cmpb $0x4e, %al
je 0x5096
movq -0x50(%rbp), %rbx
movq -0x48(%rbp), %r12
leaq -0x70(%rbp), %r14
leaq -0x90(%rbp), %r15
cmpq %r12, %rbx
je 0x506b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x34a0
movq %r15, %rdi
movq %r14, %rsi
callq 0x34a0
movq %r15, %rdi
callq 0x4d13
movq %r15, %rdi
callq 0x36a8
movq %r14, %rdi
callq 0x36a8
addq $0x20, %rbx
jmp 0x5032
leaq -0x50(%rbp), %rdi
callq 0x5fb8
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x9f46(%rip), %rdi      # 0xefd0
leaq 0x504c(%rip), %rsi      # 0xa0dd
callq 0x3370
xorl %edi, %edi
callq 0x3410
jmp 0x50b8
jmp 0x50b8
jmp 0x50b8
jmp 0x50b8
jmp 0x50bd
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x36a8
jmp 0x50c0
movq %rax, %rbx
jmp 0x50c9
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x36a8
leaq -0x50(%rbp), %rdi
callq 0x5fb8
movq %rbx, %rdi
callq 0x35c0
// File: /workspace/github_cpp_makefile_star2_O2/parth-shel[P]xpac/client.cpp
// Function: xpac_dir_handler(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
static inline void xpac_dir_handler(std::string filepath){
	DIR* dir = opendir(filepath.c_str());
	if (dir)
	{
		closedir(dir);  //Directory exists and we don't need to so anything
	}
	else if (ENOENT == errno)
	{
		//Directory does not exist. So we need to create it
		std::cout<<"Creating the directory: "<<filepath<<std::endl;
		mkdir(filepath.c_str(),0775);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x3500
testq %rax, %rax
je 0x5da1
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3550
callq 0x3040
cmpl $0x2, (%rax)
jne 0x5de4
movq 0x921e(%rip), %rdi      # 0xefd0
leaq 0x478f(%rip), %rsi      # 0xa548
callq 0x3370
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3340
movq %rax, %rdi
callq 0x31f0
movq (%rbx), %rdi
movl $0x1fd, %esi            # imm = 0x1FD
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x31d0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/parth-shel[P]xpac/client_socket.cpp
// Function: client_driver(char*, char*)
int client_driver(char * command, char * ip) {
 	int sock_fd;
 	struct sockaddr_in srv_addr;
 	
	memset(&srv_addr, 0, sizeof(srv_addr));

 	// create a client socket
 	sock_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
 	srv_addr.sin_family = AF_INET; // internet address

	// DNS lookup
	char * IP = (char *) malloc(128 * sizeof(char));
	if( hostname_to_ip(ip, IP) < 0 ) {
		printf("DNS lookup failure\n");
		exit(EXIT_FAILURE);
	}

 	// convert command line argument to numeric IP
 	if ( inet_pton(AF_INET, IP, &(srv_addr.sin_addr)) < 1 ) {
 		printf("invalid IP address\n");
		exit(EXIT_FAILURE);
 	}

 	// use specified port number or default otherwise
	// TODO: WORK ON PORT SELECTION
 	srv_addr.sin_port = htons(SRV_PORT);

 	if( connect(sock_fd, (struct sockaddr*) &srv_addr, sizeof(srv_addr)) < 0 ) {
 		perror("connect error");
 		exit(EXIT_FAILURE);
 	}
 	else {
 		printf("connected to:%s:%d ..\n",ip,SRV_PORT);
 	}
 
	if( recv_file(sock_fd, command) < 0 ) { // command
		//perror("receive error\n");
		//exit(EXIT_FAILURE);
		return -1;
	}
 	
	// close socket
 	if(close(sock_fd) < 0) {
 		perror("socket close error");
 		exit(EXIT_FAILURE);
 	}
 
	return EXIT_SUCCESS;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, -0x30(%rbp)
pushq $0x2
popq %rdi
pushq $0x1
popq %rsi
pushq $0x6
popq %rdx
callq 0x30f0
movl %eax, %r14d
movw $0x2, -0x30(%rbp)
movl $0x80, %edi
callq 0x3480
movq %rax, %r12
movq %r15, %rdi
movq %rax, %rsi
callq 0x7f53
testl %eax, %eax
js 0x7f28
leaq -0x2c(%rbp), %rdx
pushq $0x2
popq %rdi
movq %r12, %rsi
callq 0x3640
testl %eax, %eax
jle 0x7f31
leaq -0x30(%rbp), %rsi
movw $0xf413, 0x2(%rsi)      # imm = 0xF413
pushq $0x10
popq %rdx
movl %r14d, %edi
callq 0x32f0
testl %eax, %eax
js 0x7f3f
leaq 0x2809(%rip), %rdi      # 0xa6e7
xorl %r12d, %r12d
movq %r15, %rsi
movl $0x13f4, %edx           # imm = 0x13F4
xorl %eax, %eax
callq 0x3050
movl %r14d, %edi
movq %rbx, %rsi
callq 0x7fa4
testl %eax, %eax
js 0x7f14
movl %r14d, %edi
callq 0x3680
testl %eax, %eax
jns 0x7f18
leaq 0x27ec(%rip), %rdi      # 0xa6fe
jmp 0x7f46
pushq $-0x1
popq %r12
movl %r12d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28b0(%rip), %rdi      # 0xa7df
jmp 0x7f38
leaq 0x2894(%rip), %rdi      # 0xa7cc
callq 0x3520
jmp 0x7f4b
leaq 0x2793(%rip), %rdi      # 0xa6d9
callq 0x3300
pushq $0x1
popq %rdi
callq 0x3410
// File: /workspace/github_cpp_makefile_star2_O2/parth-shel[P]xpac/client_socket.cpp
// Function: hostname_to_ip(char*, char*)
int hostname_to_ip(char * hostname, char * ip) {
	struct hostent *ptrh;
    	struct in_addr **addr_list;
         
    	// get host info
	if ( (ptrh = gethostbyname( hostname ) ) == NULL) {
       	 	perror("gethostbyname error\n");
        	return -1;
    	}
 
    	addr_list = (struct in_addr **) ptrh->h_addr_list;
     
    	for(int i = 0; addr_list[i] != NULL; i++) {
        	strcpy(ip , inet_ntoa(*addr_list[i]) );
        	return 0;
    	}
     
    	return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
callq 0x33d0
testq %rax, %rax
je 0x7f93
movq 0x18(%rax), %rax
movq (%rax), %r14
testq %r14, %r14
je 0x7f86
movl (%r14), %edi
callq 0x31b0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3350
xorl %eax, %eax
cmpq $0x1, %r14
sbbl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x2777(%rip), %rdi      # 0xa711
callq 0x3300
pushq $-0x1
popq %rax
jmp 0x7f8e
// File: /workspace/github_cpp_makefile_star2_O2/parth-shel[P]xpac/client_socket.cpp
// Function: recv_file(int, char*)
int recv_file(int sock, char* file_name) {
 	char send_str [MAX_SEND_BUF]; // message to be sent to server
 	int fd; // file descriptor for receiving file
 	ssize_t sent_bytes, rcvd_bytes, rcvd_file_size;
 	int recv_count; // count of recv() calls
 	char recv_str[MAX_RECV_BUF]; // buffer to hold received data 
 	size_t send_strlen; // length of transmitted string

 	sprintf(send_str, "%s\n", file_name); 
 	send_strlen = strlen(send_str); /* length of message to be transmitted */
 	if( (sent_bytes = send(sock, send_str, send_strlen, 0)) < 0 ) {
 		perror("send error");
 		return -1;
 	}
 

 	// create file to save received data
 	if ( (fd = open(file_name, O_WRONLY|O_CREAT, 0666)) < 0 ) {
 		perror("error creating file");
 		return -1;
 	}

 	recv_count = 0; // number of recv() calls required to receive the file
 	rcvd_file_size = 0; // size of received file

 	// continue receiving file
 	while ( (rcvd_bytes = recv(sock, recv_str, MAX_RECV_BUF, 0)) > 0 ) {
 		recv_count++;
 		rcvd_file_size += rcvd_bytes;

		if(!strcmp(recv_str,errmsg_notfound)){
			printf("File not found on xpac repo!\nPlease check file name and try again!");
			return -1;
		}
 		if (write(fd, recv_str, rcvd_bytes) < 0 ) {
 			perror("error writing to file");
 			return -1;
 		}
 	}
 	
	close(fd); // close file
 	printf("Client Received: %zu bytes in %d recv(s)\n", rcvd_file_size, recv_count);
 	return rcvd_file_size;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rsi, %r14
movl %edi, %r15d
leaq 0x2761(%rip), %rsi      # 0xa726
leaq -0x230(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3090
movq %rbx, %rdi
callq 0x31a0
movl %r15d, -0x2c(%rbp)
movl %r15d, %edi
movq %rbx, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x3210
testq %rax, %rax
js 0x80a5
xorl %r15d, %r15d
pushq $0x41
popq %rsi
movq %r14, %rdi
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x32b0
testl %eax, %eax
js 0x80ae
movl %eax, %r12d
leaq -0x130(%rbp), %r13
xorl %r14d, %r14d
movl $0x100, %edx            # imm = 0x100
movl -0x2c(%rbp), %edi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x3150
testq %rax, %rax
jle 0x8077
movq %rax, %rbx
movq 0x731f(%rip), %rsi      # 0xf368
movq %r13, %rdi
callq 0x34b0
testl %eax, %eax
je 0x8095
addq %rbx, %r14
incl %r15d
movl %r12d, %edi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x3160
testq %rax, %rax
jns 0x8028
leaq 0x2717(%rip), %rdi      # 0xa78c
jmp 0x80b5
movl %r12d, %edi
callq 0x3680
leaq 0x271c(%rip), %rdi      # 0xa7a2
movq %r14, %rsi
movl %r15d, %edx
xorl %eax, %eax
callq 0x3050
jmp 0x80be
leaq 0x26ad(%rip), %rdi      # 0xa749
xorl %eax, %eax
callq 0x3050
jmp 0x80ba
leaq 0x267e(%rip), %rdi      # 0xa72a
jmp 0x80b5
leaq 0x2680(%rip), %rdi      # 0xa735
callq 0x3300
pushq $-0x1
popq %r14
movl %r14d, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/parth-shel[P]xpac/man_help.cpp
// Function: man_help()
void man_help() {
	string line;
	string token;
	ifstream help_file("man_help_txt");
	if(help_file.is_open()) {
		cout<<"These are common xpac commands used in various situations:"<<endl<<endl;		
		while(getline(help_file, line)) {	
			istringstream stream(line);
			// parse command option
			getline(stream, token, '|');
			string option_str = token;
			// parse functionality
			getline(stream, token, '\n');
			string functionality_str = token;
			
			// display to standard output
			printf("%-35s %-100s\n", option_str.c_str(), functionality_str.c_str());
		}

	} else {
		cout<<"Error accessing xpac -help"<<endl;
	}
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
leaq 0x26e3(%rip), %rsi      # 0xa7f2
leaq -0x2b0(%rbp), %rdi
pushq $0x8
popq %rdx
callq 0x3610
leaq -0x238(%rbp), %rdi
callq 0x30e0
testb %al, %al
je 0x820c
movq 0x6e97(%rip), %rdi      # 0xefd0
leaq 0x26bf(%rip), %rsi      # 0xa7ff
callq 0x3370
movq %rax, %rdi
callq 0x31f0
movq %rax, %rdi
callq 0x31f0
leaq -0x68(%rbp), %r14
leaq -0x430(%rbp), %r15
leaq -0x48(%rbp), %r13
leaq -0x88(%rbp), %rbx
leaq -0xa8(%rbp), %r12
leaq -0x2b0(%rbp), %rdi
movq %r14, %rsi
callq 0x30a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x8227
movq %r15, %rdi
movq %r14, %rsi
pushq $0x8
popq %rdx
callq 0x35a0
movq %r15, %rdi
movq %r13, %rsi
pushq $0x7c
popq %rdx
callq 0x3620
movq %rbx, %rdi
movq %r13, %rsi
callq 0x34a0
movq %r15, %rdi
movq %r13, %rsi
pushq $0xa
popq %rdx
callq 0x3620
movq %r12, %rdi
movq %r13, %rsi
callq 0x34a0
movq -0x88(%rbp), %rsi
movq -0xa8(%rbp), %rdx
leaq 0x2652(%rip), %rdi      # 0xa83a
xorl %eax, %eax
callq 0x3050
movq %r12, %rdi
callq 0x36a8
movq %rbx, %rdi
callq 0x36a8
movq %r15, %rdi
callq 0x31e0
jmp 0x8172
movq 0x6dbd(%rip), %rdi      # 0xefd0
leaq 0x262e(%rip), %rsi      # 0xa848
callq 0x3370
movq %rax, %rdi
callq 0x31f0
leaq -0x2b0(%rbp), %rdi
callq 0x3110
leaq -0x48(%rbp), %rdi
callq 0x36a8
leaq -0x68(%rbp), %rdi
callq 0x36a8
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x8295
jmp 0x8286
jmp 0x8260
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x36a8
jmp 0x8276
jmp 0x8273
movq %rax, %rbx
leaq -0x430(%rbp), %rdi
callq 0x31e0
jmp 0x8289
jmp 0x8286
movq %rax, %rbx
leaq -0x2b0(%rbp), %rdi
callq 0x3110
leaq -0x48(%rbp), %rdi
callq 0x36a8
leaq -0x68(%rbp), %rdi
callq 0x36a8
movq %rbx, %rdi
callq 0x35c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/parth-shel[P]xpac/metadata.cpp
// Function: metadata::metadata(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
metadata::metadata(std::string pkg_name,std::string pkg_ver){
	this->pkg_name = pkg_name;
	this->pkg_ver = pkg_ver;
	this->str_hash = new std::hash<std::string>;
	pkg_id = std::to_string((*str_hash)(this->pkg_name + this->pkg_ver));
	dep_list = new std::vector<std::string>;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r12
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
xorl %eax, %eax
movb %al, 0x10(%rdi)
leaq 0x20(%rdi), %r14
leaq 0x30(%rdi), %rcx
movq %rcx, 0x20(%rdi)
andq $0x0, 0x28(%rdi)
movb %al, 0x30(%rdi)
leaq 0x40(%rdi), %r15
leaq 0x50(%rdi), %rcx
movq %rcx, 0x40(%rdi)
andq $0x0, 0x48(%rdi)
movb %al, 0x50(%rdi)
callq 0x3240
movq %r15, %rdi
movq %r12, %rsi
callq 0x3240
pushq $0x1
popq %rdi
callq 0x3380
movq %rax, %r12
movq %rax, 0x68(%rbx)
leaq -0x40(%rbp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x88c1
leaq -0x40(%rbp), %rsi
movq %r12, %rdi
callq 0x6340
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x62fe
leaq -0x60(%rbp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x3420
movq %r12, %rdi
callq 0x36a8
leaq -0x40(%rbp), %rdi
callq 0x36a8
pushq $0x18
popq %rdi
callq 0x3380
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq %rax, 0x60(%rbx)
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
leaq -0x40(%rbp), %rdi
callq 0x36a8
jmp 0x839b
jmp 0x8398
movq %rax, %r12
movq %r15, %rdi
callq 0x36a8
movq %r14, %rdi
callq 0x36a8
movq %rbx, %rdi
callq 0x36a8
movq %r12, %rdi
callq 0x35c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/parth-shel[P]xpac/metadata.cpp
// Function: metadata::get_info[abi:cxx11]()
std::string metadata::get_info(){
	std::string info;
	info += pkg_name + "\n" + pkg_ver + "\n" + pkg_id + "\n";
	if(dep_list!=NULL)
		for(auto && itr=dep_list->begin(); itr!=dep_list->end(); itr++)
			info += *itr+";";
	return info;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x23dd(%rip), %rdx      # 0xa7ca
leaq -0x68(%rbp), %rdi
callq 0x5e5c
leaq 0x40(%r14), %rdx
leaq -0x88(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x5f53
leaq 0x23b9(%rip), %rdx      # 0xa7ca
leaq -0xa8(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x5f2a
leaq 0x20(%r14), %rdx
leaq -0xc8(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x5f53
leaq 0x2388(%rip), %rdx      # 0xa7ca
leaq -0x48(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x5f2a
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x3670
leaq -0x48(%rbp), %rdi
callq 0x36a8
leaq -0xc8(%rbp), %rdi
callq 0x36a8
leaq -0xa8(%rbp), %rdi
callq 0x36a8
leaq -0x88(%rbp), %rdi
callq 0x36a8
leaq -0x68(%rbp), %rdi
callq 0x36a8
movq 0x60(%r14), %rax
testq %rax, %rax
je 0x84dc
movq (%rax), %r15
leaq 0x23bc(%rip), %r12      # 0xa863
leaq -0x48(%rbp), %r13
cmpq 0x8(%rax), %r15
je 0x84dc
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x5e5c
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3670
movq %r13, %rdi
callq 0x36a8
addq $0x20, %r15
movq 0x60(%r14), %rax
jmp 0x84ab
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0x36a8
jmp 0x8502
movq %rax, %r14
leaq -0xc8(%rbp), %rdi
callq 0x36a8
jmp 0x8513
movq %rax, %r14
leaq -0xa8(%rbp), %rdi
callq 0x36a8
jmp 0x8524
movq %rax, %r14
leaq -0x88(%rbp), %rdi
callq 0x36a8
jmp 0x8535
movq %rax, %r14
leaq -0x68(%rbp), %rdi
jmp 0x8549
jmp 0x853d
movq %rax, %r14
jmp 0x854e
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0x36a8
movq %rbx, %rdi
callq 0x36a8
movq %r14, %rdi
callq 0x35c0
// File: /workspace/github_cpp_makefile_star2_O2/parth-shel[P]xpac/metadata.cpp
// Function: metadata::write_package(metadata*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void metadata::write_package(metadata * package, std::string filepath){
	std::ofstream file_object;
	filepath = filepath + "/." + package->pkg_name + std::string(".metadata");	//Filename consists of package name and a metadata
	file_object.open(filepath.c_str(),std::ios::out | std::ios::trunc);
	file_object << package->pkg_name << "\n" << package->pkg_ver << "\n" << package->pkg_id << "\n";
	for(auto&& itr = package->dep_list->begin(); itr!=package->dep_list->end(); itr++)
					file_object<< *itr << "\n";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x290, %rsp            # imm = 0x290
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x2a8(%rbp), %rdi
callq 0x35b0
leaq 0x1b00(%rip), %rdx      # 0xa0a1
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0x5e5c
leaq -0x88(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movq %rbx, %rdx
callq 0x5f53
leaq 0x1eb0(%rip), %rsi      # 0xa477
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
callq 0x3180
leaq -0xa8(%rbp), %rdi
leaq -0x88(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x5deb
leaq -0xa8(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3420
movq %r15, %rdi
callq 0x36a8
leaq -0x48(%rbp), %rdi
callq 0x36a8
leaq -0x88(%rbp), %rdi
callq 0x36a8
leaq -0x68(%rbp), %rdi
callq 0x36a8
movq (%r14), %rsi
leaq -0x2a8(%rbp), %rdi
pushq $0x30
popq %rdx
callq 0x3060
leaq -0x2a8(%rbp), %rdi
movq %rbx, %rsi
callq 0x3340
leaq 0x217f(%rip), %rsi      # 0xa7ca
movq %rax, %rdi
callq 0x3370
leaq 0x40(%rbx), %rsi
movq %rax, %rdi
callq 0x3340
leaq 0x2164(%rip), %rsi      # 0xa7ca
movq %rax, %rdi
callq 0x3370
leaq 0x20(%rbx), %rsi
movq %rax, %rdi
callq 0x3340
leaq 0x2149(%rip), %rsi      # 0xa7ca
movq %rax, %rdi
callq 0x3370
movq 0x60(%rbx), %rax
movq (%rax), %r14
leaq -0x2a8(%rbp), %r15
leaq 0x212c(%rip), %r12      # 0xa7ca
cmpq 0x8(%rax), %r14
je 0x86c4
movq %r15, %rdi
movq %r14, %rsi
callq 0x3340
movq %rax, %rdi
movq %r12, %rsi
callq 0x3370
addq $0x20, %r14
movq 0x60(%rbx), %rax
jmp 0x869e
leaq -0x2a8(%rbp), %rdi
callq 0x34e0
addq $0x290, %rsp            # imm = 0x290
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x36a8
jmp 0x86f1
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x36a8
jmp 0x8702
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x36a8
jmp 0x8714
jmp 0x8711
jmp 0x8711
movq %rax, %rbx
leaq -0x2a8(%rbp), %rdi
callq 0x34e0
movq %rbx, %rdi
callq 0x35c0
// File: /workspace/github_cpp_makefile_star2_O2/parth-shel[P]xpac/metadata.cpp
// Function: metadata::get_package(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
metadata * metadata::get_package(std::string filepath){
	std::ifstream file_object;
	file_object.open(filepath.c_str(),std::ios::in | std::ios::binary);
	metadata * new_package = new metadata();
	std::string next_line;

	//Reading the name and the package id of the package to be read:
	getline(file_object,next_line);
	new_package->pkg_name = next_line;
	getline(file_object,next_line);
	new_package->pkg_ver = next_line;
	getline(file_object,next_line);
	new_package->pkg_id = next_line;

	while(getline(file_object,next_line)){
		if(next_line.compare(std::string("")))	new_package->dep_list->push_back(next_line);	//Should not push empty strings
	}

	file_object.close();
	return new_package;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdi, %rbx
leaq -0x280(%rbp), %r14
movq %r14, %rdi
callq 0x33c0
movq (%rbx), %rsi
pushq $0xc
popq %rdx
movq %r14, %rdi
callq 0x3290
pushq $0x70
popq %rdi
callq 0x3380
movq %rax, -0x38(%rbp)
movq %rax, %rdi
callq 0x88fa
leaq -0x48(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x280(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x30a0
leaq -0x58(%rbp), %rsi
movq -0x38(%rbp), %rdi
callq 0x3240
leaq -0x280(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x30a0
movq -0x38(%rbp), %rax
leaq 0x40(%rax), %rdi
leaq -0x58(%rbp), %rsi
callq 0x3240
leaq -0x280(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x30a0
movq -0x38(%rbp), %rdi
addq $0x20, %rdi
leaq -0x58(%rbp), %rsi
callq 0x3240
leaq -0x58(%rbp), %r15
leaq -0x78(%rbp), %r13
leaq -0x29(%rbp), %rbx
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x8843
movq %r13, %rdi
leaq 0x1fbd(%rip), %rsi      # 0xa7cb
movq %rbx, %rdx
callq 0x3180
movq %r15, %rdi
movq %r13, %rsi
callq 0x3030
movl %eax, %r12d
movq %r13, %rdi
callq 0x36a8
testl %r12d, %r12d
je 0x87eb
movq -0x38(%rbp), %rax
movq 0x60(%rax), %rdi
movq %r15, %rsi
callq 0x5f7c
jmp 0x87eb
leaq -0x280(%rbp), %rdi
callq 0x30c0
leaq -0x58(%rbp), %rdi
callq 0x36a8
leaq -0x280(%rbp), %rdi
callq 0x3110
movq -0x38(%rbp), %rax
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x38(%rbp), %rdi
callq 0x3360
jmp 0x88ad
jmp 0x888a
movq %rax, %rbx
jmp 0x88ad
jmp 0x88a1
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x36a8
jmp 0x88a4
jmp 0x88a1
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x36a8
leaq -0x280(%rbp), %rdi
callq 0x3110
movq %rbx, %rdi
callq 0x35c0
// File: /workspace/github_cpp_makefile_star2_O2/parth-shel[P]xpac/installed_packages_modules.cpp
// Function: calculate_users_packages()
void calculate_users_packages(){
	std::ifstream file;
	file.open(installed_file);
	std::string next_installed;
	while (getline(file,next_installed)) {
		int index = next_installed.find(" ");
		std::string name = next_installed.substr(0,index);
		std::string version = next_installed.substr(index+1, std::string::npos);
		user_installed_list.insert(std::make_pair(name,version));
	}
	file.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
leaq -0x2d0(%rbp), %rbx
movq %rbx, %rdi
callq 0x33c0
leaq 0x6862(%rip), %rsi      # 0xf5b0
pushq $0x8
popq %rdx
movq %rbx, %rdi
callq 0x3320
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x48(%rbp), %r14
leaq -0x88(%rbp), %r12
leaq -0x68(%rbp), %r13
leaq -0xc8(%rbp), %rbx
leaq -0x2d0(%rbp), %rdi
movq %r14, %rsi
callq 0x30a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x8e24
movq %r14, %rdi
leaq 0x174b(%rip), %rsi      # 0xa4f5
xorl %edx, %edx
callq 0x3690
movq %rax, %r15
movslq %r15d, %rcx
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x33a0
shlq $0x20, %r15
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %r15
sarq $0x20, %r15
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
pushq $-0x1
popq %rcx
callq 0x33a0
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x8cb4
leaq 0x67d1(%rip), %rdi      # 0xf5d0
movq %rbx, %rsi
callq 0x775c
movq %rbx, %rdi
callq 0x5fe4
movq %r13, %rdi
callq 0x36a8
movq %r12, %rdi
callq 0x36a8
jmp 0x8d7f
leaq -0x2d0(%rbp), %rdi
callq 0x30c0
leaq -0x48(%rbp), %rdi
callq 0x36a8
leaq -0x2d0(%rbp), %rdi
callq 0x3110
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8e90
movq %rax, %rbx
jmp 0x8e9c
movq %rax, %rbx
leaq -0xc8(%rbp), %rdi
callq 0x5fe4
jmp 0x8e72
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x36a8
jmp 0x8e82
jmp 0x8e90
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x36a8
jmp 0x8e93
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x36a8
leaq -0x2d0(%rbp), %rdi
callq 0x3110
movq %rbx, %rdi
callq 0x35c0
// File: /workspace/github_cpp_makefile_star2_O2/parth-shel[P]xpac/installed_packages_modules.cpp
// Function: add_to_install_list(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void add_to_install_list(std::string name, std::string version) {
	std::fstream file;
	file.open(installed_file, std::ios::out | std::ios::app);

	// Simply appending to file
	file << name << " " << version <<"\n";

	file.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x228(%rbp), %r15
movq %r15, %rdi
callq 0x3400
leaq 0x66d4(%rip), %rsi      # 0xf5b0
pushq $0x11
popq %rdx
movq %r15, %rdi
callq 0x3490
leaq -0x218(%rbp), %rdi
movq %r14, %rsi
callq 0x3340
leaq 0x15f8(%rip), %rsi      # 0xa4f5
movq %rax, %rdi
callq 0x3370
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3340
leaq 0x18b3(%rip), %rsi      # 0xa7ca
movq %rax, %rdi
callq 0x3370
leaq -0x228(%rbp), %rdi
callq 0x3070
leaq -0x228(%rbp), %rdi
callq 0x30d0
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x228(%rbp), %rdi
callq 0x30d0
movq %rbx, %rdi
callq 0x35c0