// File: gvaumour[P]cache-simulator/src/PHC.cc
// Function: PHCPredictor::printConfig(std::ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void PHCPredictor::printConfig(std::ostream& out, std::string entete) { 

	out << entete << ":PHC:TableSize\t" << m_tableSize << endl; 
	
	string a = m_enableAllocation ? "TRUE" : "FALSE";
	out << entete << ":PHC:EnableAllocation\t" << a << endl;
	
	out << entete << ":PHC:CostValueThreshold\t" << simu_parameters.PHC_cost_threshold  << endl;
	out << entete << ":PHC:AllocationThreshold\t" << simu_parameters.perceptron_allocation_threshold  << endl;
//	out << entete << ":PHC:CostLearning\t" << simu_parameters.perceptron_allocation_learning << endl; 
	out << entete << ":PHC:AllocFeatures\t"; 
	for(auto p : m_criterias_names)
		out << p << ",";
	out << endl;	
	out << entete << ":PHC:CostModel" << endl;
	out << entete << ":PHC:ShortRead\t" << m_costAccess[false][RD_SHORT] << endl; 		
	out << entete << ":PHC:ShortWrite\t" << m_costAccess[true][RD_SHORT] << endl; 		
	out << entete << ":PHC:MediumRead\t" << m_costAccess[false][RD_MEDIUM] << endl; 		
	out << entete << ":PHC:MediumWrite\t" << m_costAccess[true][RD_MEDIUM] << endl; 		

	Predictor::printConfig(out, entete);
}

// Assembly:
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdx, 0xe8(%rsp)
movq %rsi, %rax
movq 0xe8(%rsp), %rsi
movq %rsi, 0xf0(%rsp)
movq %rdi, 0x1b0(%rsp)
movq %rax, 0x1a8(%rsp)
movq %rsi, 0x1a0(%rsp)
movq 0x1b0(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq 0x1a8(%rsp), %rdi
callq 0x5330
movq %rax, %rdi
leaq 0x269c4(%rip), %rsi     # 0x73315
callq 0x5380
movq %rax, %rdi
movq 0xf8(%rsp), %rax
movl 0x2d0(%rax), %esi
callq 0x5680
movq %rax, %rdi
movq 0x46642(%rip), %rsi     # 0x92fb8
callq 0x53d0
movq 0xf8(%rsp), %rax
movb 0x318(%rax), %dl
leaq 0x24b48(%rip), %rcx     # 0x714d8
leaq 0x24b46(%rip), %rax     # 0x714dd
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0x100(%rsp)
leaq 0x17f(%rsp), %rdi
movq %rdi, 0x108(%rsp)
callq 0x56a0
movq 0x100(%rsp), %rsi
movq 0x108(%rsp), %rdx
leaq 0x180(%rsp), %rdi
callq 0x5530
jmp 0x4c9da
leaq 0x17f(%rsp), %rdi
callq 0x53e0
movq 0xf0(%rsp), %rsi
movq 0x1a8(%rsp), %rdi
callq 0x5330
movq %rax, 0xe0(%rsp)
jmp 0x4ca06
movq 0xe0(%rsp), %rdi
leaq 0x26910(%rip), %rsi     # 0x73325
callq 0x5380
movq %rax, 0xd8(%rsp)
jmp 0x4ca24
movq 0xd8(%rsp), %rdi
leaq 0x180(%rsp), %rsi
callq 0x5330
movq %rax, 0xd0(%rsp)
jmp 0x4ca43
movq 0xd0(%rsp), %rdi
movq 0x46566(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x4ca59
movq 0xf0(%rsp), %rsi
movq 0x1a8(%rsp), %rdi
callq 0x5330
movq %rax, 0xc8(%rsp)
jmp 0x4ca78
movq 0xc8(%rsp), %rdi
leaq 0x268b5(%rip), %rsi     # 0x7333c
callq 0x5380
movq %rax, 0xc0(%rsp)
jmp 0x4ca96
movq 0xc0(%rsp), %rdi
leaq 0x4754b(%rip), %rax     # 0x93ff0
movl 0x1e8(%rax), %esi
callq 0x5680
movq %rax, 0xb8(%rsp)
jmp 0x4caba
movq 0xb8(%rsp), %rdi
movq 0x464ef(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x4cad0
movq 0xf0(%rsp), %rsi
movq 0x1a8(%rsp), %rdi
callq 0x5330
movq %rax, 0xb0(%rsp)
jmp 0x4caef
movq 0xb0(%rsp), %rdi
leaq 0x26857(%rip), %rsi     # 0x73355
callq 0x5380
movq %rax, 0xa8(%rsp)
jmp 0x4cb0d
movq 0xa8(%rsp), %rdi
leaq 0x474d4(%rip), %rax     # 0x93ff0
movl 0x1c0(%rax), %esi
callq 0x5680
movq %rax, 0xa0(%rsp)
jmp 0x4cb31
movq 0xa0(%rsp), %rdi
movq 0x46478(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x4cb47
movq 0xf0(%rsp), %rsi
movq 0x1a8(%rsp), %rdi
callq 0x5330
movq %rax, 0x98(%rsp)
jmp 0x4cb66
movq 0x98(%rsp), %rdi
leaq 0x267fa(%rip), %rsi     # 0x7336f
callq 0x5380
jmp 0x4cb7c
movq 0xf8(%rsp), %rax
addq $0x2a0, %rax            # imm = 0x2A0
movq %rax, 0x160(%rsp)
movq 0x160(%rsp), %rdi
callq 0xebf0
movq %rax, 0x158(%rsp)
movq 0x160(%rsp), %rdi
callq 0xec20
movq %rax, 0x150(%rsp)
leaq 0x158(%rsp), %rdi
leaq 0x150(%rsp), %rsi
callq 0xec50
testb $0x1, %al
jne 0x4cbda
jmp 0x4ccb2
leaq 0x158(%rsp), %rdi
callq 0xec90
movq %rax, %rsi
leaq 0x130(%rsp), %rdi
callq 0x51b0
jmp 0x4cbf9
movq 0x1a8(%rsp), %rdi
leaq 0x130(%rsp), %rsi
callq 0x5330
movq %rax, 0x90(%rsp)
jmp 0x4cc18
movq 0x90(%rsp), %rdi
leaq 0x2441b(%rip), %rsi     # 0x71042
callq 0x5380
jmp 0x4cc2e
leaq 0x130(%rsp), %rdi
callq 0x5768
leaq 0x158(%rsp), %rdi
callq 0xeca0
jmp 0x4cbbc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x170(%rsp)
movl %eax, 0x16c(%rsp)
leaq 0x17f(%rsp), %rdi
callq 0x53e0
jmp 0x4cfb2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x170(%rsp)
movl %eax, 0x16c(%rsp)
jmp 0x4cfa5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x170(%rsp)
movl %eax, 0x16c(%rsp)
leaq 0x130(%rsp), %rdi
callq 0x5768
jmp 0x4cfa5
movq 0x1a8(%rsp), %rdi
movq 0x462f7(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x4ccc8
movq 0xf0(%rsp), %rsi
movq 0x1a8(%rsp), %rdi
callq 0x5330
movq %rax, 0x88(%rsp)
jmp 0x4cce7
movq 0x88(%rsp), %rdi
leaq 0x2668d(%rip), %rsi     # 0x73383
callq 0x5380
movq %rax, 0x80(%rsp)
jmp 0x4cd05
movq 0x80(%rsp), %rdi
movq 0x462a4(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x4cd1b
movq 0xf0(%rsp), %rsi
movq 0x1a8(%rsp), %rdi
callq 0x5330
movq %rax, 0x78(%rsp)
jmp 0x4cd37
movq 0x78(%rsp), %rdi
leaq 0x2664f(%rip), %rsi     # 0x73392
callq 0x5380
movq %rax, 0x70(%rsp)
jmp 0x4cd4f
movq 0xf8(%rsp), %rdi
addq $0x2b8, %rdi            # imm = 0x2B8
xorl %eax, %eax
movl %eax, %esi
movq %rsi, 0x60(%rsp)
callq 0xef70
movq 0x60(%rsp), %rsi
movq %rax, %rdi
callq 0xef90
movq 0x70(%rsp), %rdi
movl (%rax), %esi
callq 0x5680
movq %rax, 0x68(%rsp)
jmp 0x4cd8c
movq 0x68(%rsp), %rdi
movq 0x46220(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x4cd9f
movq 0xf0(%rsp), %rsi
movq 0x1a8(%rsp), %rdi
callq 0x5330
movq %rax, 0x58(%rsp)
jmp 0x4cdbb
movq 0x58(%rsp), %rdi
leaq 0x265db(%rip), %rsi     # 0x733a2
callq 0x5380
movq %rax, 0x50(%rsp)
jmp 0x4cdd3
movq 0xf8(%rsp), %rdi
addq $0x2b8, %rdi            # imm = 0x2B8
movl $0x1, %esi
callq 0xef70
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xef90
movq 0x50(%rsp), %rdi
movl (%rax), %esi
callq 0x5680
movq %rax, 0x48(%rsp)
jmp 0x4ce0b
movq 0x48(%rsp), %rdi
movq 0x461a1(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x4ce1e
movq 0xf0(%rsp), %rsi
movq 0x1a8(%rsp), %rdi
callq 0x5330
movq %rax, 0x40(%rsp)
jmp 0x4ce3a
movq 0x40(%rsp), %rdi
leaq 0x2656d(%rip), %rsi     # 0x733b3
callq 0x5380
movq %rax, 0x38(%rsp)
jmp 0x4ce52
movq 0xf8(%rsp), %rdi
addq $0x2b8, %rdi            # imm = 0x2B8
xorl %eax, %eax
movl %eax, %esi
callq 0xef70
movq %rax, %rdi
movl $0x1, %esi
callq 0xef90
movq 0x38(%rsp), %rdi
movl (%rax), %esi
callq 0x5680
movq %rax, 0x30(%rsp)
jmp 0x4ce8a
movq 0x30(%rsp), %rdi
movq 0x46122(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x4ce9d
movq 0xf0(%rsp), %rsi
movq 0x1a8(%rsp), %rdi
callq 0x5330
movq %rax, 0x28(%rsp)
jmp 0x4ceb9
movq 0x28(%rsp), %rdi
leaq 0x264ff(%rip), %rsi     # 0x733c4
callq 0x5380
movq %rax, 0x20(%rsp)
jmp 0x4ced1
movq 0xf8(%rsp), %rdi
addq $0x2b8, %rdi            # imm = 0x2B8
movl $0x1, %esi
movq %rsi, 0x10(%rsp)
callq 0xef70
movq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0xef90
movq 0x20(%rsp), %rdi
movl (%rax), %esi
callq 0x5680
movq %rax, 0x18(%rsp)
jmp 0x4cf0f
movq 0x18(%rsp), %rdi
movq 0x4609d(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x4cf22
movq 0xf0(%rsp), %rsi
movq 0x1a8(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x110(%rsp), %rdi
callq 0x51b0
jmp 0x4cf46
movq 0x8(%rsp), %rsi
movq 0xf8(%rsp), %rdi
leaq 0x110(%rsp), %rdx
callq 0x579f0
jmp 0x4cf62
leaq 0x110(%rsp), %rdi
callq 0x5768
leaq 0x180(%rsp), %rdi
callq 0x5768
addq $0x1b8, %rsp            # imm = 0x1B8
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x170(%rsp)
movl %eax, 0x16c(%rsp)
leaq 0x110(%rsp), %rdi
callq 0x5768
leaq 0x180(%rsp), %rdi
callq 0x5768
movq 0x170(%rsp), %rdi
callq 0x5690
nop