// File: /workspace/github_cpp_makefile_star2_O2/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 $0x1a8, %rsp            # imm = 0x1A8
movq %rcx, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, (%rsp)
andq $0x0, 0x10(%rdi)
movq %rsi, 0x28(%rsp)
movq %rsi, %rdi
callq 0x223ae
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x12b1e
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rax
xorl %r12d, %r12d
leaq 0x68(%rsp), %rdi
leaq 0x118(%rsp), %rbx
leaq 0xe8(%rsp), %rbp
movl %r12d, %r12d
movq %rax, %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
cmpq %r12, %rcx
jbe 0x241c0
xorl %r15d, %r15d
movq %r12, %rcx
shlq $0x5, %rcx
movq %rcx, 0x8(%rsp)
movq %r12, 0x40(%rsp)
movl %r15d, %r15d
movq %rax, %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
cmpq %r15, %rcx
jbe 0x241b8
cmpl %r15d, %r12d
je 0x241b0
addq 0x8(%rsp), %rsi
callq 0x54a0
movq %r15, %r14
shlq $0x5, %r14
movq 0x10(%rsp), %rsi
addq %r14, %rsi
movq %rbx, %rdi
callq 0x54a0
movq %rbp, %rdi
movq 0x38(%rsp), %rsi
callq 0x20c16
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %r13
movq %r13, %rsi
movq %rbx, %rdx
movq %rbp, %rcx
movq 0x28(%rsp), %r8
callq 0x230b0
movq %rbp, %rdi
callq 0x20be0
movq %rbx, %r12
movq %rbx, %rdi
callq 0x56f8
movq %r13, %rdi
callq 0x56f8
movq 0x10(%rsp), %rsi
addq 0x8(%rsp), %rsi
leaq 0xc8(%rsp), %r13
movq %r13, %rdi
callq 0x54a0
movq 0x10(%rsp), %rsi
addq %r14, %rsi
leaq 0xa8(%rsp), %rdi
callq 0x54a0
leaq 0x138(%rsp), %rbx
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
callq 0x20c16
leaq 0x48(%rsp), %rdi
movq %r13, %rsi
movq %r13, %rbp
leaq 0xa8(%rsp), %r13
movq %r13, %rdx
movq %rbx, %rcx
movq 0x28(%rsp), %r8
callq 0x230b0
movq %rbx, %rdi
callq 0x20be0
movq %r13, %rdi
callq 0x56f8
movq %rbp, %rdi
callq 0x56f8
cmpl $0x2, 0x88(%rsp)
movq %r12, %rbx
movq 0x40(%rsp), %r12
leaq 0xe8(%rsp), %rbp
jne 0x2418a
cmpl $0x2, 0x48(%rsp)
jne 0x2418a
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
leaq (%rax,%rcx), %rsi
addq %rax, %r14
leaq 0x168(%rsp), %r13
movq %r13, %rdi
movq %r14, %rdx
callq 0x26040
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x15714
movq %r13, %rdi
callq 0x12f10
leaq 0x50(%rsp), %rdi
callq 0x709c
leaq 0x90(%rsp), %rdi
callq 0x709c
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rax
leaq 0x68(%rsp), %rdi
incl %r15d
jmp 0x2402a
incl %r12d
jmp 0x24000
movq (%rsp), %rax
movq (%rax), %r14
movq 0x8(%rax), %rax
cmpq %rax, %r14
je 0x24215
movq (%rsp), %rcx
movq (%rcx), %r15
cmpq %rax, %r15
je 0x2420f
cmpq %r15, %r14
je 0x24201
movq %r14, %rdi
movq %r15, %rsi
callq 0x23bfb
testb %al, %al
je 0x24201
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x25de4
movq %rax, %r15
jmp 0x24205
addq $0x40, %r15
movq (%rsp), %rax
movq 0x8(%rax), %rax
jmp 0x241d7
addq $0x40, %r14
jmp 0x241cb
leaq 0x10(%rsp), %rdi
callq 0x709c
movq (%rsp), %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x242ea
movq %rax, %r14
leaq 0x168(%rsp), %rdi
callq 0x12f10
jmp 0x24252
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x709c
jmp 0x242a5
jmp 0x242dd
movq %rax, %r14
jmp 0x242c4
movq %rax, %r14
jmp 0x242d1
jmp 0x242dd
movq %rax, %r14
leaq 0x138(%rsp), %rdi
callq 0x20be0
jmp 0x24286
movq %rax, %r14
jmp 0x242a5
movq %rax, %r14
leaq 0xa8(%rsp), %rdi
callq 0x56f8
jmp 0x24298
movq %rax, %r14
leaq 0xc8(%rsp), %rdi
callq 0x56f8
leaq 0x90(%rsp), %rdi
callq 0x709c
jmp 0x242e0
movq %rax, %r14
leaq 0xe8(%rsp), %rdi
callq 0x20be0
leaq 0x118(%rsp), %rdi
callq 0x56f8
leaq 0x68(%rsp), %rdi
callq 0x56f8
jmp 0x242e0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x709c
movq (%rsp), %rdi
callq 0x12eaa
movq %r14, %rdi
callq 0x5610