// File: /workspace/github_cpp_makefile_star2_O2/iPapatsoris[P]Maximum-Independent-Set/src/Alg.hpp
// Function: Alg::branchOnExtendedGranchildren(Alg::BranchingRule const&, Alg::SearchNode*) const
void branchOnExtendedGranchildren(const BranchingRule &branchingRule, SearchNode *searchNode) const {
        std::unordered_set<uint32_t> extendedGrandchildren;
        Graph::GraphTraversal graphTraversal(searchNode->graph, branchingRule.node1);
        searchNode->graph.getExtendedGrandchildren(graphTraversal, extendedGrandchildren);
        extendedGrandchildren.insert(branchingRule.node1);
        std::vector<uint32_t> &mis = searchNode->mis.getMis();
        mis.insert(mis.end(), extendedGrandchildren.begin(), extendedGrandchildren.end());
        std::unordered_set<uint32_t> neighbors;
        searchNode->graph.gatherAllNeighbors(extendedGrandchildren, neighbors);

        std::unordered_set<uint32_t> *smaller = &neighbors;
        std::unordered_set<uint32_t> *bigger = &extendedGrandchildren;
        if (smaller->size() > bigger->size()) {
            std::unordered_set<uint32_t> *tmp = smaller;
            smaller = bigger;
            bigger = tmp;
        }
        smaller->insert(bigger->begin(), bigger->end());
        searchNode->graph.remove(std::vector<uint32_t>(smaller->begin(), smaller->end()), searchNode->reductions->getReduceInfo());
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r14
movq %rsi, %r15
leaq 0x58(%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)
leaq 0x30(%rdx), %rbx
addq $0x4, %r15
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2720
leaq 0x60(%rsp), %r8
movb $0x0, (%r8)
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x3868
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0xbc1a
leaq 0x80(%r14), %rdi
movq 0x88(%r14), %rsi
movq 0x38(%rsp), %rdx
xorl %ecx, %ecx
callq 0x14504
leaq 0x90(%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)
leaq 0x10(%rsp), %rcx
orl $-0x1, (%rcx)
leaq 0x28(%rsp), %r15
leaq 0x60(%rsp), %r12
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0xa61a
leaq 0x70(%rsp), %rax
movq 0x8(%rax), %r13
leaq 0x38(%rsp), %rcx
movq 0x8(%rcx), %rbp
cmpq %rbp, %r13
movq %r12, %rdi
cmovaq %r15, %rdi
cmovaq %rax, %rcx
movq (%rcx), %rsi
xorl %edx, %edx
callq 0xc7c8
cmpq %rbp, %r13
cmovaq %r15, %r12
movq 0x10(%r12), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rcx
xorl %edx, %edx
callq 0xa660
movq 0x108(%r14), %rdx
addq $0x10, %rdx
xorl %eax, %eax
leaq 0x6(%rsp), %rcx
movb %al, (%rcx)
leaq 0x5(%rsp), %r9
movb %al, (%r9)
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0x9e48
leaq 0x10(%rsp), %rdi
callq 0xb872
leaq 0x60(%rsp), %rdi
callq 0xad26
leaq 0x28(%rsp), %rdi
callq 0xad26
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xb872
jmp 0x144df
jmp 0x144dc
jmp 0x144dc
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0xad26
jmp 0x144f2
jmp 0x144ef
jmp 0x144ef
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xad26
movq %rbx, %rdi
callq 0x22c0