// File: GAStudyGroup[P]GPX2/src/cross/gpx/sources/Partition.cpp
// Function: operator<<(std::ostream&, Partition const&)
ostream& operator<<(ostream& output, const Partition& partition)
{
    output << "Partition " << partition.id << "\n";
    output << "Nodes: ";
    for (string i : partition.nodes) {
        output << i << " ";
    }
    output << "\n";
    output << "Access List: ";
    for (string i : partition.accessNodes) {
        output << i << " ";
    }
    output << "connectedTo: \n";
    for (auto a : partition.connectedTo) {
        //output << "partition " << a.first << " by node " << a.second.first << " wity " << a.second.second << "\n";
        output << "partition " << a.connectedPartition << " by node " << a.node << " with " << a.connectedNode << "\n";
    }
    output << "connections: \n";
    for (auto a : partition.connections) {
        output << a.first << " with " << a.second << "\n";
    }
    output.flush();
    return (output);
}

// Assembly:
subq $0x168, %rsp            # imm = 0x168
movq %rdi, 0x160(%rsp)
movq %rsi, 0x158(%rsp)
movq 0x160(%rsp), %rdi
leaq 0xd918(%rip), %rsi      # 0x7593e
callq 0x64a0
movq %rax, %rdi
movq 0x158(%rsp), %rax
movl (%rax), %esi
callq 0x6820
movq %rax, %rdi
leaq 0xd807(%rip), %rsi      # 0x7584e
callq 0x64a0
movq 0x160(%rsp), %rdi
leaq 0xd8ee(%rip), %rsi      # 0x75949
callq 0x64a0
movq 0x158(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x150(%rsp)
movq 0x150(%rsp), %rdi
callq 0x2e6d0
movq %rax, 0x148(%rsp)
movq 0x150(%rsp), %rdi
callq 0x2e700
movq %rax, 0x140(%rsp)
leaq 0x148(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x2e630
testb $0x1, %al
jne 0x680bc
jmp 0x6814f
leaq 0x148(%rsp), %rdi
callq 0x2f130
movq %rax, %rsi
leaq 0x120(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0x6200
movq 0x48(%rsp), %rsi
movq 0x160(%rsp), %rdi
callq 0x6440
movq %rax, 0x50(%rsp)
jmp 0x680f7
movq 0x50(%rsp), %rdi
leaq 0xc251(%rip), %rsi      # 0x74354
callq 0x64a0
jmp 0x6810a
leaq 0x120(%rsp), %rdi
callq 0x6988
leaq 0x148(%rsp), %rdi
callq 0x2f070
jmp 0x6809e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
leaq 0x120(%rsp), %rdi
callq 0x6988
jmp 0x684a2
movq 0x160(%rsp), %rdi
leaq 0xd6f0(%rip), %rsi      # 0x7584e
callq 0x64a0
movq 0x160(%rsp), %rdi
leaq 0xd7df(%rip), %rsi      # 0x75951
callq 0x64a0
movq 0x158(%rsp), %rax
addq $0x20, %rax
movq %rax, 0x108(%rsp)
movq 0x108(%rsp), %rdi
callq 0x2e6d0
movq %rax, 0x100(%rsp)
movq 0x108(%rsp), %rdi
callq 0x2e700
movq %rax, 0xf8(%rsp)
leaq 0x100(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0x2e630
testb $0x1, %al
jne 0x681d3
jmp 0x68266
leaq 0x100(%rsp), %rdi
callq 0x2f130
movq %rax, %rsi
leaq 0xd8(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x6200
movq 0x38(%rsp), %rsi
movq 0x160(%rsp), %rdi
callq 0x6440
movq %rax, 0x40(%rsp)
jmp 0x6820e
movq 0x40(%rsp), %rdi
leaq 0xc13a(%rip), %rsi      # 0x74354
callq 0x64a0
jmp 0x68221
leaq 0xd8(%rsp), %rdi
callq 0x6988
leaq 0x100(%rsp), %rdi
callq 0x2f070
jmp 0x681b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0x6988
jmp 0x684a2
movq 0x160(%rsp), %rdi
leaq 0xd6ea(%rip), %rsi      # 0x7595f
callq 0x64a0
movq 0x158(%rsp), %rax
addq $0x50, %rax
movq %rax, 0xd0(%rsp)
movq 0xd0(%rsp), %rdi
callq 0x68d10
movq %rax, 0xc8(%rsp)
movq 0xd0(%rsp), %rdi
callq 0x68d40
movq %rax, 0xc0(%rsp)
leaq 0xc8(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x68d70
testb $0x1, %al
jne 0x682d6
jmp 0x683d4
leaq 0xc8(%rsp), %rdi
callq 0x68db0
movq %rax, %rsi
leaq 0x78(%rsp), %rdi
callq 0x54f20
movq 0x160(%rsp), %rdi
leaq 0xd66f(%rip), %rsi      # 0x7596e
callq 0x64a0
movq %rax, 0x30(%rsp)
jmp 0x6830b
movq 0x30(%rsp), %rdi
movl 0x78(%rsp), %esi
callq 0x6820
movq %rax, 0x28(%rsp)
jmp 0x68320
movq 0x28(%rsp), %rdi
leaq 0xd64d(%rip), %rsi      # 0x75979
callq 0x64a0
movq %rax, 0x20(%rsp)
jmp 0x68338
movq 0x20(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x6440
movq %rax, 0x18(%rsp)
jmp 0x68351
movq 0x18(%rsp), %rdi
leaq 0xd626(%rip), %rsi      # 0x75983
callq 0x64a0
movq %rax, 0x10(%rsp)
jmp 0x68369
movq 0x10(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x6440
movq %rax, 0x8(%rsp)
jmp 0x68382
movq 0x8(%rsp), %rdi
leaq 0xd4c0(%rip), %rsi      # 0x7584e
callq 0x64a0
jmp 0x68395
leaq 0x78(%rsp), %rdi
callq 0x55110
leaq 0xc8(%rsp), %rdi
callq 0x68dc0
jmp 0x682b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x55110
jmp 0x684a2
movq 0x160(%rsp), %rdi
leaq 0xd5a7(%rip), %rsi      # 0x7598a
callq 0x64a0
movq 0x158(%rsp), %rax
addq $0x68, %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rdi
callq 0x68de0
movq %rax, 0x68(%rsp)
movq 0x70(%rsp), %rdi
callq 0x68e10
movq %rax, 0x60(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x68e40
testb $0x1, %al
jne 0x6842c
jmp 0x68485
leaq 0x68(%rsp), %rdi
callq 0x68e80
movq (%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x160(%rsp), %rdi
movl 0x58(%rsp), %esi
callq 0x6820
movq %rax, %rdi
leaq 0xd52a(%rip), %rsi      # 0x75983
callq 0x64a0
movq %rax, %rdi
movl 0x5c(%rsp), %esi
callq 0x6820
movq %rax, %rdi
leaq 0xd3da(%rip), %rsi      # 0x7584e
callq 0x64a0
leaq 0x68(%rsp), %rdi
callq 0x68e90
jmp 0x68417
movq 0x160(%rsp), %rdi
callq 0x6340
movq 0x160(%rsp), %rax
addq $0x168, %rsp            # imm = 0x168
retq
movq 0x118(%rsp), %rdi
callq 0x6850
nop