// File: /workspace/github_cpp_makefile_star2_O2/iPapatsoris[P]Maximum-Independent-Set/src/Graph.hpp
// Function: void Graph::remove<std::set<unsigned int, std::less<unsigned int>, std::allocator<unsigned int>>>(std::set<unsigned int, std::less<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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, 0x40(%rsp)
movq %r8, 0x10(%rsp)
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %rbp
movq 0x18(%rsi), %r12
addq $0x8, %rsi
movq %rsi, 0x8(%rsp)
leaq 0x20(%rdi), %rax
movq %rax, 0x30(%rsp)
movq %rcx, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
cmpq 0x8(%rsp), %r12
je 0x1059e
cmpb $0x0, 0x3c(%rbp)
je 0x1043c
movq 0x40(%rbp), %rdi
leaq 0x20(%r12), %rsi
callq 0xb880
jmp 0x10441
leaq 0x20(%r12), %rax
movl (%rax), %r8d
movq (%rbp), %rcx
imulq $0xc, %r8, %rdi
cmpb $0x0, 0x8(%rcx,%rdi)
jne 0x1058e
incl (%r14)
cmpb $0x0, (%rbx)
jne 0x10589
movq 0x8(%rbp), %rax
subq %rcx, %rax
cqto
pushq $0xc
popq %rsi
idivq %rsi
decq %rax
cmpq %r8, %rax
movq %r8, 0x38(%rsp)
jne 0x10490
movq 0x18(%rbp), %rdx
movq 0x8(%rdx), %rax
subq (%rdx), %rax
shrq $0x2, %rax
jmp 0x1049b
leal 0x1(%r8), %eax
imulq $0xc, %rax, %rax
movl (%rcx,%rax), %eax
movq %rdi, 0x28(%rsp)
addq %rdi, %rcx
movl (%rcx), %r14d
movl %eax, %r15d
cmpq %r15, %r14
jae 0x10576
movq 0x18(%rbp), %rax
movq (%rax), %rax
movl (%rax,%r14,4), %eax
movl %eax, 0x4(%rsp)
cmpb $0x1, 0x3c(%rbp)
jne 0x104d7
movq 0x40(%rbp), %rdi
leaq 0x4(%rsp), %rsi
callq 0xb880
movl (%rax), %eax
movl %eax, %r13d
movq (%rbp), %rax
imulq $0xc, %r13, %rbx
cmpb $0x0, 0x8(%rax,%rbx)
je 0x104ee
incq %r14
jmp 0x104a9
addq %rbx, %rax
movl 0x4(%rax), %ecx
decl %ecx
movl %ecx, 0x4(%rax)
movq 0x40(%rsp), %rax
cmpb $0x1, (%rax)
jne 0x1051f
testl %ecx, %ecx
jne 0x1051f
movq 0x30(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0xa1ac
movq (%rbp), %rax
movb $0x1, 0x8(%rax,%rbx)
movq %r12, %rdi
pushq $0x1
popq %rsi
callq 0x10bea
movq %rax, %rdi
movq 0x8(%rsp), %rsi
leaq 0x4(%rsp), %rdx
callq 0x10c08
cmpq $0x0, 0x10(%rsp)
je 0x104e9
cmpq 0x8(%rsp), %rax
jne 0x104e9
cmpl 0x38(%rsp), %r13d
jae 0x104e9
movq (%rbp), %rax
movl 0x4(%rax,%rbx), %eax
andl $-0x2, %eax
cmpl $0x2, %eax
jne 0x104e9
movq 0x10(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0xbc1a
jmp 0x104e9
movq (%rbp), %rcx
movq 0x20(%rsp), %rbx
movq 0x18(%rsp), %r14
movq 0x28(%rsp), %rdi
movb $0x1, 0x8(%rcx,%rdi)
movq %r12, %rdi
callq 0x21b0
movq %rax, %r12
jmp 0x1041b
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop