// File: /workspace/github_cpp_makefile_star2_O3/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 0x11e8d(%rip), %rsi     # 0x346b6
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x10, %edx
callq 0x5320
movq 0x418(%rbx), %rax
cmpq %rax, 0x420(%rbx)
je 0x22905
xorl %r12d, %r12d
leaq 0x117bd(%rip), %r15     # 0x34016
leaq (%r12,%r12,2), %rbp
movq (%rax,%rbp,8), %rcx
cmpq %rcx, 0x8(%rax,%rbp,8)
je 0x228ad
movl $0x1, %r13d
xorl %eax, %eax
movl (%rcx,%rax,4), %esi
movq %r14, %rdi
callq 0x5580
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5360
movl %r13d, %eax
movq 0x418(%rbx), %rdx
movq (%rdx,%rbp,8), %rcx
movq 0x8(%rdx,%rbp,8), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
incl %r13d
cmpq %rax, %rdx
ja 0x22870
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
incl %r12d
movq 0x418(%rbx), %rax
movq 0x420(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
cmpq %r12, %rcx
ja 0x22859
leaq 0x8(%rsp), %rdi
callq 0x5430
leaq 0x11daf(%rip), %rsi     # 0x346c5
leaq 0x208(%rsp), %r15
movq %r15, %rdi
movl $0x10, %edx
callq 0x5320
movq 0x400(%rbx), %rax
cmpq %rax, 0x408(%rbx)
je 0x229fd
xorl %ebp, %ebp
leaq 0x116ce(%rip), %r12     # 0x34016
leaq (,%rbp,2), %r14
addq %rbp, %r14
movq (%rax,%r14,8), %rcx
cmpq %rcx, 0x8(%rax,%r14,8)
je 0x229a3
movl $0x1, %r13d
xorl %eax, %eax
movl (%rcx,%rax,4), %esi
movq %r15, %rdi
callq 0x5580
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x5360
movl %r13d, %eax
movq 0x400(%rbx), %rdx
movq (%rdx,%r14,8), %rcx
movq 0x8(%rdx,%r14,8), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
incl %r13d
cmpq %rax, %rdx
ja 0x22966
movq 0x208(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
incl %ebp
movq 0x400(%rbx), %rax
movq 0x408(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
cmpq %rbp, %rcx
ja 0x22948
leaq 0x208(%rsp), %rbx
movq %rbx, %rdi
callq 0x5430
movq 0x225ac(%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 0x5280
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 0x5280
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 0x22a89
jmp 0x22a9b
jmp 0x22a9b
jmp 0x22a89
jmp 0x22a9b
movq %rax, %rbx
leaq 0x208(%rsp), %rdi
callq 0x5628
jmp 0x22a9e
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x5628
movq %rbx, %rdi
callq 0x55a0