// File: /workspace/github_cpp_makefile_star2_O3/GAStudyGroup[P]GPX2/src/cross/gpx/sources/GPX2Support.cpp
// Function: GPX2Support::getEntryAndExitList(Partition*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Node*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, Node*>>>&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Node*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, Node*>>>&)
vector<pair<string, string>> GPX2Support::getEntryAndExitList(Partition* p, GPX2Structs::NodeMap &red, GPX2Structs::NodeMap &blue)
{
    vector<pair<string, string>> entryAndExit;
    vector<string> accessVec = p->getAccessNodes();
    for (unsigned i = 0; i < accessVec.size(); i++) {
        for (unsigned j = 0; j < accessVec.size(); j++) {
            if (i != j) {
                pair<GPX2Structs::SearchResult, vector<string>> resultRed = GPX2Support::DFS_inside(accessVec[i], accessVec[j], red, p);
                pair<GPX2Structs::SearchResult, vector<string>> resultBlue = GPX2Support::DFS_inside(accessVec[i], accessVec[j], blue, p);
                if (resultRed.first == GPX2Structs::SearchResult::IS_CONNECTED && resultBlue.first == GPX2Structs::SearchResult::IS_CONNECTED) {
                    entryAndExit.push_back(make_pair(accessVec[i], accessVec[j]));
                }
            }
        }
    }

    for (auto itOut = entryAndExit.begin(); itOut != entryAndExit.end(); itOut++) {
        for (auto itIn = entryAndExit.begin(); itIn != entryAndExit.end();) {
            if (itOut != itIn) {
                if (comparePairString(*itOut, *itIn)) {
                    itIn = entryAndExit.erase(itIn);
                } else {
                    itIn++;
                }
            } else {
                itIn++;
            }
        }
    }
    return (entryAndExit);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rcx, 0xc0(%rsp)
movq %rdx, 0xc8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, 0x8(%rsp)
movq $0x0, 0x10(%rdi)
movq %rsi, 0x30(%rsp)
movq %rsi, %rdi
callq 0x2a8d6
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x17d42
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq %rax, %rcx
je 0x2d045
xorl %esi, %esi
leaq 0x188(%rsp), %r13
leaq 0x158(%rsp), %r15
movq $0x0, 0x28(%rsp)
xorl %edi, %edi
movq %rdi, 0xb8(%rsp)
cmpq %rax, %rcx
je 0x2d01e
movl $0x1, %ebp
xorl %r12d, %r12d
movq %rsi, 0xd0(%rsp)
leal (%rsi,%rbp), %edx
cmpl $0x1, %edx
je 0x2d004
movq 0x28(%rsp), %r14
shlq $0x5, %r14
leaq 0xa8(%rsp), %rcx
movq %rcx, 0x98(%rsp)
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x82fa
movq 0x10(%rsp), %rax
shlq $0x5, %r12
leaq 0x88(%rsp), %rcx
movq %rcx, 0x78(%rsp)
movq (%rax,%r12), %rsi
movq 0x8(%rax,%r12), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0x82fa
movq %r13, %rbx
movq %r13, %rdi
movq 0xc8(%rsp), %rsi
callq 0x29098
leaq 0x138(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x78(%rsp), %rdx
movq %rbx, %rcx
movq 0x30(%rsp), %r8
callq 0x2b96e
movq %rbx, %rdi
callq 0x29084
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x2ce67
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x2ce8c
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x10(%rsp), %rax
leaq 0x68(%rsp), %rcx
movq %rcx, 0x58(%rsp)
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0x82fa
movq 0x10(%rsp), %rax
leaq 0x48(%rsp), %rcx
movq %rcx, 0x38(%rsp)
movq (%rax,%r12), %rsi
movq 0x8(%rax,%r12), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x82fa
movq %r15, %rbx
movq %r15, %rdi
movq 0xc0(%rsp), %rsi
callq 0x29098
leaq 0x118(%rsp), %rdi
leaq 0x58(%rsp), %rsi
leaq 0x38(%rsp), %rdx
movq %rbx, %rcx
movq 0x30(%rsp), %r8
callq 0x2b96e
movq %rbx, %rdi
callq 0x29084
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x2cf2c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x2cf48
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x53b0
cmpl $0x2, 0x138(%rsp)
jne 0x2cfd8
cmpl $0x2, 0x118(%rsp)
jne 0x2cfd8
movq 0x10(%rsp), %rax
addq %rax, %r14
addq %rax, %r12
leaq 0xd8(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2fc5e
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x1b4fa
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x2cfb3
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x2cfd8
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x53b0
leaq 0x120(%rsp), %rdi
callq 0x8206
leaq 0x140(%rsp), %rdi
callq 0x8206
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0xd0(%rsp), %rsi
movl %ebp, %r12d
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x5, %rdx
incl %ebp
cmpq %r12, %rdx
ja 0x2cd9e
jmp 0x2d021
movq %rax, %rcx
movq 0xb8(%rsp), %rdi
incl %edi
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x5, %rdx
decl %esi
movq %rdi, 0x28(%rsp)
cmpq %rdi, %rdx
ja 0x2cd7d
movq 0x8(%rsp), %rax
movq (%rax), %r14
movq 0x8(%rax), %rax
cmpq %rax, %r14
je 0x2d0a1
movq 0x8(%rsp), %rcx
movq (%rcx), %r15
cmpq %rax, %r15
je 0x2d09b
cmpq %r15, %r14
je 0x2d086
movq %r14, %rdi
movq %r15, %rsi
callq 0x2c86c
testb %al, %al
je 0x2d086
movq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x30580
jmp 0x2d08d
addq $0x40, %r15
movq %r15, %rax
movq %rax, %r15
movq 0x8(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x2d063
addq $0x40, %r14
jmp 0x2d051
leaq 0x10(%rsp), %rdi
callq 0x8206
movq 0x8(%rsp), %rax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x2d1d1
movq %rax, %r14
leaq 0xd8(%rsp), %rdi
callq 0x18278
jmp 0x2d0df
movq %rax, %r14
leaq 0x120(%rsp), %rdi
callq 0x8206
jmp 0x2d1b5
jmp 0x2d1c4
movq %rax, %r14
jmp 0x2d199
movq %rax, %r14
jmp 0x2d14c
movq %rax, %r14
leaq 0x188(%rsp), %rdi
callq 0x29084
jmp 0x2d12a
movq %rax, %r14
leaq 0x158(%rsp), %rdi
callq 0x29084
jmp 0x2d17d
movq %rax, %r14
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x2d14c
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x2d1c7
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x2d1c7
jmp 0x2d1c4
movq %rax, %r14
jmp 0x2d1b5
movq %rax, %r14
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x2d199
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x2d1b5
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x53b0
leaq 0x140(%rsp), %rdi
callq 0x8206
jmp 0x2d1c7
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x8206
movq 0x8(%rsp), %rdi
callq 0x181f0
movq %r14, %rdi
callq 0x5660