// File: iPapatsoris[P]Maximum-Independent-Set/src/Graph.hpp
// Function: void Graph::remove<std::vector<unsigned int, std::allocator<unsigned int>>>(std::vector<unsigned int, std::allocator<unsigned int>> const&, ReduceInfo&, bool const&, std::unordered_set<unsigned int, std::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<unsigned int>>*, bool const&)
void remove(const Container &nodes, ReduceInfo &reduceInfo, const bool &fullComponent = false, std::unordered_set<uint32_t> *candidateNodes = NULL, const bool &removeZeroDegreeNodes = false) {
        for (auto it = nodes.begin() ; it != nodes.end() ; it++) {
            //std::cout << "removing " << *it << std::endl;
            uint32_t pos = (!mapping ? *it : idToPos->at(*it));
            if (!nodeIndex[pos].removed) {
                reduceInfo.nodesRemoved++;
                if (!fullComponent) {
                    uint32_t nextNodeOffset = (pos == nodeIndex.size()-1 ? edgeBuffer->size() : nodeIndex[pos+1].offset);
                    for (uint32_t offset = nodeIndex[pos].offset ; offset < nextNodeOffset ; offset++) {
                        uint32_t neighbor = (*edgeBuffer)[offset];
                        uint32_t nPos = (!mapping ? neighbor : idToPos->at(neighbor));
                        if (!nodeIndex[nPos].removed) {
                            nodeIndex[nPos].edges--;
                            if (removeZeroDegreeNodes && !nodeIndex[nPos].edges) {
                                zeroDegreeNodes.push_back(neighbor);
                                nodeIndex[nPos].removed = true;
                            }
                            if (find(std::next(it, 1), nodes.end(), neighbor) == nodes.end() &&
                            candidateNodes != NULL && (nodeIndex[nPos].edges == 2 || nodeIndex[nPos].edges == 3) && nPos < pos) {
                                candidateNodes->insert(neighbor);
                            }
                        }
                    }
                }
                //nodeIndex[pos].edges = 0;
                nodeIndex[pos].removed = true;
            }
        }
    }

// Assembly:
subq $0xc8, %rsp
movq %rdi, 0xc0(%rsp)
movq %rsi, 0xb8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %rcx, 0xa8(%rsp)
movq %r8, 0xa0(%rsp)
movq %r9, 0x98(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xb8(%rsp), %rdi
callq 0x193b0
movq %rax, 0x90(%rsp)
movq 0xb8(%rsp), %rdi
callq 0x19420
movq %rax, 0x88(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x193e0
testb $0x1, %al
jne 0x18a3c
jmp 0x18d74
movq 0x28(%rsp), %rax
testb $0x1, 0x3c(%rax)
jne 0x18a5c
leaq 0x90(%rsp), %rdi
callq 0x19450
movl (%rax), %eax
movl %eax, 0x24(%rsp)
jmp 0x18a8a
movq 0x28(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, 0x18(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x19450
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x188b0
movl (%rax), %eax
movl %eax, 0x24(%rsp)
movq 0x28(%rsp), %rdi
movl 0x24(%rsp), %eax
movl %eax, 0x84(%rsp)
movl 0x84(%rsp), %eax
movl %eax, %esi
callq 0x19050
testb $0x1, 0x8(%rax)
jne 0x18d59
movq 0xb0(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq 0xa8(%rsp), %rax
testb $0x1, (%rax)
jne 0x18d42
movq 0x28(%rsp), %rdi
movl 0x84(%rsp), %eax
movq %rax, 0x10(%rsp)
callq 0x18830
movq %rax, %rcx
movq 0x10(%rsp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x18b0e
movq 0x28(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x188e0
movq %rax, 0x8(%rsp)
jmp 0x18b2d
movq 0x28(%rsp), %rdi
movl 0x84(%rsp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
callq 0x19050
movl (%rax), %eax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rdi
movq 0x8(%rsp), %rax
movl %eax, 0x80(%rsp)
movl 0x84(%rsp), %eax
movl %eax, %esi
callq 0x19050
movl (%rax), %eax
movl %eax, 0x7c(%rsp)
movl 0x7c(%rsp), %eax
cmpl 0x80(%rsp), %eax
jae 0x18d40
movq 0x28(%rsp), %rax
movq 0x18(%rax), %rdi
movl 0x7c(%rsp), %eax
movl %eax, %esi
callq 0x18900
movq %rax, %rcx
movq 0x28(%rsp), %rax
movl (%rcx), %ecx
movl %ecx, 0x78(%rsp)
testb $0x1, 0x3c(%rax)
jne 0x18b95
movl 0x78(%rsp), %eax
movl %eax, 0x4(%rsp)
jmp 0x18bae
movq 0x28(%rsp), %rax
movq 0x40(%rax), %rdi
leaq 0x78(%rsp), %rsi
callq 0x188b0
movl (%rax), %eax
movl %eax, 0x4(%rsp)
movq 0x28(%rsp), %rdi
movl 0x4(%rsp), %eax
movl %eax, 0x74(%rsp)
movl 0x74(%rsp), %eax
movl %eax, %esi
callq 0x19050
testb $0x1, 0x8(%rax)
jne 0x18d2e
movq 0x28(%rsp), %rdi
movl 0x74(%rsp), %eax
movl %eax, %esi
callq 0x19050
movl 0x4(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rax)
movq 0x98(%rsp), %rax
testb $0x1, (%rax)
je 0x18c33
movq 0x28(%rsp), %rdi
movl 0x74(%rsp), %eax
movl %eax, %esi
callq 0x19050
cmpl $0x0, 0x4(%rax)
jne 0x18c33
movq 0x28(%rsp), %rdi
addq $0x20, %rdi
leaq 0x78(%rsp), %rsi
callq 0x19070
movq 0x28(%rsp), %rdi
movl 0x74(%rsp), %eax
movl %eax, %esi
callq 0x19050
movb $0x1, 0x8(%rax)
movq 0x90(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rdi
movl $0x1, %esi
callq 0x23f30
movq %rax, 0x60(%rsp)
movq 0xb8(%rsp), %rdi
callq 0x19420
movq %rax, 0x50(%rsp)
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x194a0
movq %rax, 0x68(%rsp)
movq 0xb8(%rsp), %rdi
callq 0x19420
movq %rax, 0x48(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x19460
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0x3(%rsp)
jne 0x18caf
jmp 0x18d07
xorl %eax, %eax
cmpq $0x0, 0xa0(%rsp)
movb %al, 0x3(%rsp)
je 0x18d07
movq 0x28(%rsp), %rdi
movl 0x74(%rsp), %eax
movl %eax, %esi
callq 0x19050
cmpl $0x2, 0x4(%rax)
je 0x18cf5
movq 0x28(%rsp), %rdi
movl 0x74(%rsp), %eax
movl %eax, %esi
callq 0x19050
movq %rax, %rcx
xorl %eax, %eax
cmpl $0x3, 0x4(%rcx)
movb %al, 0x3(%rsp)
jne 0x18d07
movl 0x74(%rsp), %eax
cmpl 0x84(%rsp), %eax
setb %al
movb %al, 0x3(%rsp)
movb 0x3(%rsp), %al
testb $0x1, %al
jne 0x18d11
jmp 0x18d2c
movq 0xa0(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x18960
movq %rax, 0x38(%rsp)
movb %dl, 0x40(%rsp)
jmp 0x18d2e
jmp 0x18d30
movl 0x7c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x7c(%rsp)
jmp 0x18b52
jmp 0x18d42
movq 0x28(%rsp), %rdi
movl 0x84(%rsp), %eax
movl %eax, %esi
callq 0x19050
movb $0x1, 0x8(%rax)
jmp 0x18d5b
leaq 0x90(%rsp), %rdi
xorl %esi, %esi
callq 0x19730
movq %rax, 0x30(%rsp)
jmp 0x18a09
addq $0xc8, %rsp
retq
nopl (%rax)