// File: CMU-SAFARI[P]ramulator/src/Memory.h
// Function: ramulator::Memory<ramulator::DDR3, ramulator::Controller>::dump_mapping_scheme()
void dump_mapping_scheme(){
        cout << "Mapping Scheme: " << endl;
        for (MapScheme::iterator mapit = mapping_scheme.begin(); mapit != mapping_scheme.end(); mapit++)
        {
            int level = mapit->first;
            for (MapSchemeEntry::iterator entit = mapit->second.begin(); entit != mapit->second.end(); entit++){
                cout << T::level_str[level] << "[" << entit->first << "] := ";
                cout << "PhysicalAddress[" << *(entit->second.begin()) << "]";
                entit->second.erase(entit->second.begin());
                for (MapSrcVector::iterator it = entit->second.begin() ; it != entit->second.end(); it ++)
                    cout << " xor PhysicalAddress[" << *it << "]";
                cout << endl;
            }
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq 0x31341a(%rip), %rdi    # 0x34dfc8
leaq 0x2164f7(%rip), %rsi    # 0x2510ac
callq 0xc350
movq %rax, %rdi
movq 0x3133dc(%rip), %rsi    # 0x34dfa0
callq 0xc3a0
movq -0x80(%rbp), %rdi
addq $0xb50, %rdi            # imm = 0xB50
callq 0x3de00
movq %rax, -0x10(%rbp)
movq -0x80(%rbp), %rdi
addq $0xb50, %rdi            # imm = 0xB50
callq 0x3b040
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x3de30
testb $0x1, %al
jne 0x3ac07
jmp 0x3ae31
leaq -0x10(%rbp), %rdi
callq 0x3de60
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x3de60
movq %rax, %rdi
addq $0x8, %rdi
callq 0x3de80
movq %rax, -0x28(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x3de60
movq %rax, %rdi
addq $0x8, %rdi
callq 0x3c840
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3deb0
testb $0x1, %al
jne 0x3ac5d
jmp 0x3ae1b
movslq -0x1c(%rbp), %rax
leaq 0x313888(%rip), %rsi    # 0x34e4f0
shlq $0x5, %rax
addq %rax, %rsi
movq 0x313352(%rip), %rdi    # 0x34dfc8
callq 0xc330
movq %rax, %rdi
leaq 0x216452(%rip), %rsi    # 0x2510d7
callq 0xc350
movq %rax, -0x98(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3dee0
movq -0x98(%rbp), %rdi
movl (%rax), %esi
callq 0xc450
movq %rax, %rdi
leaq 0x21640b(%rip), %rsi    # 0x2510bd
callq 0xc350
movq 0x31330a(%rip), %rdi    # 0x34dfc8
leaq 0x216403(%rip), %rsi    # 0x2510c8
callq 0xc350
movq %rax, -0x90(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3dee0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x3da10
movq %rax, -0x38(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x3dde0
movq -0x90(%rbp), %rdi
movl (%rax), %esi
callq 0xc450
movq %rax, %rdi
leaq 0x2163fa(%rip), %rsi    # 0x251105
callq 0xc350
leaq -0x28(%rbp), %rdi
callq 0x3dee0
addq $0x8, %rax
movq %rax, -0x88(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3dee0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x3da10
movq %rax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x3df70
movq -0x88(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x3df00
movq %rax, -0x50(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3dee0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x3da10
movq %rax, -0x58(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3dee0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x3d860
movq %rax, -0x60(%rbp)
leaq -0x58(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x3dfb0
testb $0x1, %al
jne 0x3ada3
jmp 0x3adf4
movq 0x31321e(%rip), %rdi    # 0x34dfc8
leaq 0x216312(%rip), %rsi    # 0x2510c3
callq 0xc350
movq %rax, -0xa0(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x3dde0
movq -0xa0(%rbp), %rdi
movl (%rax), %esi
callq 0xc450
movq %rax, %rdi
leaq 0x216327(%rip), %rsi    # 0x251105
callq 0xc350
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
callq 0x3dff0
movq %rax, -0x68(%rbp)
jmp 0x3ad77
movq 0x3131cd(%rip), %rdi    # 0x34dfc8
movq 0x31319e(%rip), %rsi    # 0x34dfa0
callq 0xc3a0
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
callq 0x3e030
movq %rax, -0x70(%rbp)
jmp 0x3ac2e
jmp 0x3ae1d
leaq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x3e070
movq %rax, -0x78(%rbp)
jmp 0x3abdd
addq $0xa0, %rsp
popq %rbp
retq
nopw (%rax,%rax)