// File: /workspace/github_cpp_makefile_star2_O1/gvaumour[P]cache-simulator/src/PHC.cc
// Function: PHCPredictor::drawFeatureMaps()
void
PHCPredictor::drawFeatureMaps()
{

	ofstream file("output_PHC.out");
	for(unsigned i = 0 ; i < stats_global_error.size() ; i++)
	{
		for(unsigned j =  0 ; j < stats_global_error[i].size() ; j++)
		{
			file << stats_global_error[i][j] << ",";
		}
		file << endl;
	}
	file.close();

	ofstream file1("output_PHC1.out");
	for(unsigned i = 0 ; i < stats_local_error.size() ; i++)
	{
		for(unsigned j =  0 ; j < stats_local_error[i].size() ; j++)
		{
			file1 << stats_local_error[i][j] << ",";
		}
		file1 << endl;
	}
	file1.close();

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rdi, %rbx
leaq 0x11d05(%rip), %rsi     # 0x346e2
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x10, %edx
callq 0x5310
movq 0x420(%rbx), %rax
cmpq 0x418(%rbx), %rax
je 0x22abd
xorl %r12d, %r12d
leaq 0x11635(%rip), %r15     # 0x34042
movq 0x418(%rbx), %rcx
leaq (%r12,%r12,2), %rbp
movq (%rcx,%rbp,8), %rax
cmpq %rax, 0x8(%rcx,%rbp,8)
je 0x22a68
movl $0x1, %r13d
xorl %ecx, %ecx
movl (%rax,%rcx,4), %esi
movq %r14, %rdi
callq 0x5580
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5350
movl %r13d, %ecx
movq 0x418(%rbx), %rdx
movq (%rdx,%rbp,8), %rax
movq 0x8(%rdx,%rbp,8), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %r13d
cmpq %rcx, %rdx
ja 0x22a2b
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51f0
movq 0x420(%rbx), %rax
subq 0x418(%rbx), %rax
incl %r12d
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
cmpq %r12, %rax
ja 0x22a0d
leaq 0x8(%rsp), %rdi
callq 0x5430
leaq 0x11c23(%rip), %rsi     # 0x346f1
leaq 0x208(%rsp), %r15
movq %r15, %rdi
movl $0x10, %edx
callq 0x5310
movq 0x408(%rbx), %rax
cmpq 0x400(%rbx), %rax
je 0x22bb9
xorl %ebp, %ebp
leaq 0x11542(%rip), %r12     # 0x34042
movq 0x400(%rbx), %rcx
leaq (,%rbp,2), %r14
addq %rbp, %r14
movq (%rcx,%r14,8), %rax
cmpq %rax, 0x8(%rcx,%r14,8)
je 0x22b62
movl $0x1, %r13d
xorl %ecx, %ecx
movl (%rax,%rcx,4), %esi
movq %r15, %rdi
callq 0x5580
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x5350
movl %r13d, %ecx
movq 0x400(%rbx), %rdx
movq (%rdx,%r14,8), %rax
movq 0x8(%rdx,%r14,8), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %r13d
cmpq %rcx, %rdx
ja 0x22b25
movq 0x208(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51f0
movq 0x408(%rbx), %rax
subq 0x400(%rbx), %rax
incl %ebp
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
cmpq %rbp, %rax
ja 0x22b00
leaq 0x208(%rsp), %rbx
movq %rbx, %rdi
callq 0x5430
movq 0x223f0(%rip), %rax     # 0x44fc0
movq (%rax), %r14
movq 0x18(%rax), %r15
leaq 0x210(%rsp), %rdi
movq %r14, -0x8(%rdi)
movq -0x18(%r14), %rax
movq %r15, 0x208(%rsp,%rax)
callq 0x5270
movl $0xf8, %r12d
addq %r12, %rbx
movq %rbx, %rdi
callq 0x5120
leaq 0x10(%rsp), %rdi
movq %r14, -0x8(%rdi)
movq -0x18(%r14), %rax
movq %r15, 0x8(%rsp,%rax)
callq 0x5270
leaq 0x8(%rsp), %rdi
addq %r12, %rdi
callq 0x5120
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x22c45
jmp 0x22c57
jmp 0x22c57
jmp 0x22c45
jmp 0x22c57
movq %rax, %rbx
leaq 0x208(%rsp), %rdi
callq 0x5628
jmp 0x22c5a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x5628
movq %rbx, %rdi
callq 0x55a0