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

	out << entete << ":Perceptron:TableSize\t" << m_tableSize << endl; 
	
	string a = m_enableAllocation ? "TRUE" : "FALSE";
	out << entete << ":Perceptron:EnableAllocation\t" << a << endl;
	a = m_enableBP ? "TRUE" : "FALSE";
	out << entete << ":Perceptron:EnableBP\t" << a << endl;
	
	out << entete << ":Perceptron:BypassThreshold\t" << simu_parameters.perceptron_bypass_threshold  << endl;
	out << entete << ":Perceptron:BypassLearning\t" << simu_parameters.perceptron_bypass_learning << endl; 
	out << entete << ":Perceptron:AllocThreshold\t" << simu_parameters.perceptron_allocation_threshold  << endl;
	out << entete << ":Perceptron:AllocLearning\t" << simu_parameters.perceptron_allocation_learning << endl; 
	out << entete << ":Perceptron:BypassFeatures\t"; 
	for(auto p : m_BP_criterias_names)
		out << p << ",";
	out << endl;	
	out << entete << ":Perceptron:AllocFeatures\t"; 
	for(auto p : m_Allocation_criterias_names)
		out << p << ",";
	out << endl;	

	Predictor::printConfig(out, entete);
}

// Assembly:
subq $0x1c8, %rsp            # imm = 0x1C8
movq %rdx, 0xc0(%rsp)
movq %rsi, %rax
movq 0xc0(%rsp), %rsi
movq %rsi, 0xc8(%rsp)
movq %rdi, 0x1c0(%rsp)
movq %rax, 0x1b8(%rsp)
movq %rsi, 0x1b0(%rsp)
movq 0x1c0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x1b8(%rsp), %rdi
callq 0x5330
movq %rax, %rdi
leaq 0x20724(%rip), %rsi     # 0x735c5
callq 0x5380
movq %rax, %rdi
movq 0xd0(%rsp), %rax
movl 0x300(%rax), %esi
callq 0x5680
movq %rax, %rdi
movq 0x400f2(%rip), %rsi     # 0x92fb8
callq 0x53d0
movq 0xd0(%rsp), %rax
movb 0x349(%rax), %dl
leaq 0x1e5f8(%rip), %rcx     # 0x714d8
leaq 0x1e5f6(%rip), %rax     # 0x714dd
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0xd8(%rsp)
leaq 0x18f(%rsp), %rdi
movq %rdi, 0xe0(%rsp)
callq 0x56a0
movq 0xd8(%rsp), %rsi
movq 0xe0(%rsp), %rdx
leaq 0x190(%rsp), %rdi
callq 0x5530
jmp 0x52f2a
leaq 0x18f(%rsp), %rdi
callq 0x53e0
movq 0xc8(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5330
movq %rax, 0xb8(%rsp)
jmp 0x52f56
movq 0xb8(%rsp), %rdi
leaq 0x20677(%rip), %rsi     # 0x735dc
callq 0x5380
movq %rax, 0xb0(%rsp)
jmp 0x52f74
movq 0xb0(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x5330
movq %rax, 0xa8(%rsp)
jmp 0x52f93
movq 0xa8(%rsp), %rdi
movq 0x40016(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x52fa9
movq 0xd0(%rsp), %rax
movb 0x348(%rax), %cl
leaq 0x1e51a(%rip), %rax     # 0x714d8
leaq 0x1e518(%rip), %rsi     # 0x714dd
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x190(%rsp), %rdi
callq 0x5520
jmp 0x52fdb
movq 0xc8(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5330
movq %rax, 0xa0(%rsp)
jmp 0x52ffa
movq 0xa0(%rsp), %rdi
leaq 0x205f1(%rip), %rsi     # 0x735fa
callq 0x5380
movq %rax, 0x98(%rsp)
jmp 0x53018
movq 0x98(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x5330
movq %rax, 0x90(%rsp)
jmp 0x53037
movq 0x90(%rsp), %rdi
movq 0x3ff72(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x5304d
movq 0xc8(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5330
movq %rax, 0x88(%rsp)
jmp 0x5306c
movq 0x88(%rsp), %rdi
leaq 0x20595(%rip), %rsi     # 0x73610
callq 0x5380
movq %rax, 0x80(%rsp)
jmp 0x5308a
movq 0x80(%rsp), %rdi
leaq 0x40f57(%rip), %rax     # 0x93ff0
movl 0x1b8(%rax), %esi
callq 0x5680
movq %rax, 0x78(%rsp)
jmp 0x530ab
movq 0x78(%rsp), %rdi
movq 0x3ff01(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x530be
movq 0xc8(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5330
movq %rax, 0x70(%rsp)
jmp 0x530da
movq 0x70(%rsp), %rdi
leaq 0x20547(%rip), %rsi     # 0x7362d
callq 0x5380
movq %rax, 0x68(%rsp)
jmp 0x530f2
movq 0x68(%rsp), %rdi
leaq 0x40ef2(%rip), %rax     # 0x93ff0
movl 0x1bc(%rax), %esi
callq 0x5680
movq %rax, 0x60(%rsp)
jmp 0x53110
movq 0x60(%rsp), %rdi
movq 0x3fe9c(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x53123
movq 0xc8(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5330
movq %rax, 0x58(%rsp)
jmp 0x5313f
movq 0x58(%rsp), %rdi
leaq 0x204fe(%rip), %rsi     # 0x73649
callq 0x5380
movq %rax, 0x50(%rsp)
jmp 0x53157
movq 0x50(%rsp), %rdi
leaq 0x40e8d(%rip), %rax     # 0x93ff0
movl 0x1c0(%rax), %esi
callq 0x5680
movq %rax, 0x48(%rsp)
jmp 0x53175
movq 0x48(%rsp), %rdi
movq 0x3fe37(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x53188
movq 0xc8(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5330
movq %rax, 0x40(%rsp)
jmp 0x531a4
movq 0x40(%rsp), %rdi
leaq 0x204b5(%rip), %rsi     # 0x73665
callq 0x5380
movq %rax, 0x38(%rsp)
jmp 0x531bc
movq 0x38(%rsp), %rdi
leaq 0x40e28(%rip), %rax     # 0x93ff0
movl 0x1c4(%rax), %esi
callq 0x5680
movq %rax, 0x30(%rsp)
jmp 0x531da
movq 0x30(%rsp), %rdi
movq 0x3fdd2(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x531ed
movq 0xc8(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5330
movq %rax, 0x28(%rsp)
jmp 0x53209
movq 0x28(%rsp), %rdi
leaq 0x2046b(%rip), %rsi     # 0x73680
callq 0x5380
jmp 0x5321c
movq 0xd0(%rsp), %rax
addq $0x2e8, %rax            # imm = 0x2E8
movq %rax, 0x170(%rsp)
movq 0x170(%rsp), %rdi
callq 0xebf0
movq %rax, 0x168(%rsp)
movq 0x170(%rsp), %rdi
callq 0xec20
movq %rax, 0x160(%rsp)
leaq 0x168(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0xec50
testb $0x1, %al
jne 0x5327a
jmp 0x5334c
leaq 0x168(%rsp), %rdi
callq 0xec90
movq %rax, %rsi
leaq 0x140(%rsp), %rdi
callq 0x51b0
jmp 0x53299
movq 0x1b8(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x5330
movq %rax, 0x20(%rsp)
jmp 0x532b5
movq 0x20(%rsp), %rdi
leaq 0x1dd81(%rip), %rsi     # 0x71042
callq 0x5380
jmp 0x532c8
leaq 0x140(%rsp), %rdi
callq 0x5768
leaq 0x168(%rsp), %rdi
callq 0xeca0
jmp 0x5325c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x180(%rsp)
movl %eax, 0x17c(%rsp)
leaq 0x18f(%rsp), %rdi
callq 0x53e0
jmp 0x53528
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x180(%rsp)
movl %eax, 0x17c(%rsp)
jmp 0x5351b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x180(%rsp)
movl %eax, 0x17c(%rsp)
leaq 0x140(%rsp), %rdi
callq 0x5768
jmp 0x5351b
movq 0x1b8(%rsp), %rdi
movq 0x3fc5d(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x53362
movq 0xc8(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
callq 0x5330
movq %rax, 0x18(%rsp)
jmp 0x5337e
movq 0x18(%rsp), %rdi
leaq 0x20312(%rip), %rsi     # 0x7369c
callq 0x5380
jmp 0x53391
movq 0xd0(%rsp), %rax
addq $0x2a0, %rax            # imm = 0x2A0
movq %rax, 0x138(%rsp)
movq 0x138(%rsp), %rdi
callq 0xebf0
movq %rax, 0x130(%rsp)
movq 0x138(%rsp), %rdi
callq 0xec20
movq %rax, 0x128(%rsp)
leaq 0x130(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0xec50
testb $0x1, %al
jne 0x533ef
jmp 0x53482
leaq 0x130(%rsp), %rdi
callq 0xec90
movq %rax, %rsi
leaq 0x108(%rsp), %rdi
callq 0x51b0
jmp 0x5340e
movq 0x1b8(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x5330
movq %rax, 0x10(%rsp)
jmp 0x5342a
movq 0x10(%rsp), %rdi
leaq 0x1dc0c(%rip), %rsi     # 0x71042
callq 0x5380
jmp 0x5343d
leaq 0x108(%rsp), %rdi
callq 0x5768
leaq 0x130(%rsp), %rdi
callq 0xeca0
jmp 0x533d1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x180(%rsp)
movl %eax, 0x17c(%rsp)
leaq 0x108(%rsp), %rdi
callq 0x5768
jmp 0x5351b
movq 0x1b8(%rsp), %rdi
movq 0x3fb27(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x53498
movq 0xc8(%rsp), %rsi
movq 0x1b8(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0xe8(%rsp), %rdi
callq 0x51b0
jmp 0x534bc
movq 0x8(%rsp), %rsi
movq 0xd0(%rsp), %rdi
leaq 0xe8(%rsp), %rdx
callq 0x579f0
jmp 0x534d8
leaq 0xe8(%rsp), %rdi
callq 0x5768
leaq 0x190(%rsp), %rdi
callq 0x5768
addq $0x1c8, %rsp            # imm = 0x1C8
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x180(%rsp)
movl %eax, 0x17c(%rsp)
leaq 0xe8(%rsp), %rdi
callq 0x5768
leaq 0x190(%rsp), %rdi
callq 0x5768
movq 0x180(%rsp), %rdi
callq 0x5690
nopw %cs:(%rax,%rax)