// File: /workspace/github_cpp_makefile_star2_O3/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 $0x68, %rsp
movq %r9, 0x50(%rsp)
movq %rcx, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq %rsi, %r13
movq 0x18(%rsi), %rbp
addq $0x8, %r13
cmpq %r13, %rbp
je 0x123d2
movq %rdi, %rbx
leaq 0x20(%rdi), %rax
movq %rax, 0x30(%rsp)
movq %r8, 0x10(%rsp)
movq %rdi, 0x28(%rsp)
cmpb $0x0, 0x3c(%rbx)
je 0x121e5
movq 0x40(%rbx), %rdi
leaq 0x20(%rbp), %rsi
callq 0xd37a
testq %rax, %rax
je 0x123e1
addq $0xc, %rax
jmp 0x121e9
leaq 0x20(%rbp), %rax
movl (%rax), %r15d
movq (%rbx), %rax
leaq (%r15,%r15,2), %rcx
cmpb $0x0, 0x8(%rax,%rcx,4)
jne 0x123be
movq %rcx, 0x20(%rsp)
movq 0x38(%rsp), %rcx
incl (%rcx)
movq 0x40(%rsp), %rcx
cmpb $0x0, (%rcx)
jne 0x123b4
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
decq %rcx
cmpq %r15, %rcx
jne 0x1224a
movq 0x18(%rbx), %rdx
movq 0x8(%rdx), %rcx
subq (%rdx), %rcx
shrq $0x2, %rcx
jmp 0x12255
leal 0x1(%r15), %ecx
leaq (%rcx,%rcx,2), %rcx
movl (%rax,%rcx,4), %ecx
movq 0x20(%rsp), %rdx
leaq (%rax,%rdx,4), %rdx
movl (%rdx), %r14d
cmpl %ecx, %r14d
jae 0x123b4
movl %ecx, %eax
movq %rax, 0x58(%rsp)
movq %rbp, 0x18(%rsp)
movq %r15, 0x48(%rsp)
movq 0x18(%rbx), %rax
movq (%rax), %rax
movl (%rax,%r14,4), %eax
movl %eax, 0xc(%rsp)
cmpb $0x1, 0x3c(%rbx)
jne 0x122aa
movq 0x40(%rbx), %rdi
leaq 0xc(%rsp), %rsi
callq 0xd37a
testq %rax, %rax
je 0x123e1
movl 0xc(%rax), %eax
movl %eax, %r12d
movq (%rbx), %r15
leaq (%r12,%r12,2), %rbx
cmpb $0x0, 0x8(%r15,%rbx,4)
je 0x122d0
incq %r14
cmpq 0x58(%rsp), %r14
movq 0x28(%rsp), %rbx
jne 0x1227b
jmp 0x123b1
leaq (%r15,%rbx,4), %rcx
movl 0x4(%rcx), %eax
decl %eax
movl %eax, 0x4(%rcx)
movq 0x50(%rsp), %rcx
cmpb $0x1, (%rcx)
jne 0x12327
testl %eax, %eax
jne 0x12327
movq 0x28(%rsp), %rbp
movq 0x28(%rbp), %rsi
cmpq 0x30(%rbp), %rsi
je 0x12309
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rbp)
jmp 0x1231c
movq 0x30(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0xd7b4
movq (%rbp), %r15
movb $0x1, 0x8(%r15,%rbx,4)
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
callq 0x2210
movq %rax, %rcx
movq %r13, %rax
cmpq %r13, %rcx
movq 0x10(%rsp), %rdx
je 0x12365
movl 0xc(%rsp), %ebp
movq %rcx, %rax
cmpl %ebp, 0x20(%rax)
je 0x1235b
movq %rax, %rdi
callq 0x2210
cmpq %r13, %rax
jne 0x12346
movq %r13, %rax
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rbp
testq %rdx, %rdx
je 0x122bc
cmpq %r13, %rax
jne 0x122bc
cmpl 0x48(%rsp), %r12d
jae 0x122bc
movl 0x4(%r15,%rbx,4), %eax
andl $-0x2, %eax
cmpl $0x2, %eax
jne 0x122bc
movq 0x10(%rsp), %rdi
movq %rdi, 0x60(%rsp)
leaq 0xc(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0xd538
jmp 0x122bc
movq (%rbx), %rax
movq 0x20(%rsp), %rcx
movb $0x1, 0x8(%rax,%rcx,4)
movq %rbp, %rdi
callq 0x2210
movq %rax, %rbp
cmpq %r13, %rax
jne 0x121c3
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x73e8(%rip), %rdi      # 0x197d0
callq 0x2280
nop