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

	out << entete << ":SimplePerceptron:TableSize\t" << m_tableSize << endl; 
	out << entete << ":SimplePerceptron:CounterRange\t" << simu_parameters.perceptron_counter_size << endl; 
		
	
	out << entete << ":SimplePerceptron:Features\t"; 
	for(auto p : m_feature_names)
		out << p << ",";
	out << endl;

	out << entete << ":SimplePerceptron:LearningThreshold\t" << simu_parameters.simple_perceptron_learningTreshold << endl;
	out << entete << ":SimplePerceptron:FastLearning\t" << convertBool(simu_parameters.simple_perceptron_fastLearning) << endl;
	out << entete << ":SimplePerceptron:IndependantLearning\t" << convertBool(simu_parameters.simple_perceptron_independantLearning) << endl;
	out << entete << ":SimplePerceptron:enableMigration\t" << convertBool(simu_parameters.simple_perceptron_enableMigration) << endl;
	
	Predictor::printConfig(out, entete);
}

// Assembly:
subq $0x178, %rsp            # imm = 0x178
movq %rdx, 0x80(%rsp)
movq %rsi, %rax
movq 0x80(%rsp), %rsi
movq %rsi, 0x88(%rsp)
movq %rdi, 0x170(%rsp)
movq %rax, 0x168(%rsp)
movq %rsi, 0x160(%rsp)
movq 0x170(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x168(%rsp), %rdi
callq 0x5330
movq %rax, %rdi
leaq 0xfbfc(%rip), %rsi      # 0x73dfd
callq 0x5380
movq %rax, %rdi
movq 0x90(%rsp), %rax
movl 0x2b8(%rax), %esi
callq 0x5680
movq %rax, %rdi
movq 0x2ed92(%rip), %rsi     # 0x92fb8
callq 0x53d0
movq 0x88(%rsp), %rsi
movq 0x168(%rsp), %rdi
callq 0x5330
movq %rax, %rdi
leaq 0xfbd0(%rip), %rsi      # 0x73e1a
callq 0x5380
movq %rax, %rdi
leaq 0x2fd97(%rip), %rax     # 0x93ff0
movl 0x1b0(%rax), %esi
callq 0x5680
movq %rax, %rdi
movq 0x2ed4a(%rip), %rsi     # 0x92fb8
callq 0x53d0
movq 0x88(%rsp), %rsi
movq 0x168(%rsp), %rdi
callq 0x5330
movq %rax, %rdi
leaq 0xfba8(%rip), %rsi      # 0x73e3a
callq 0x5380
movq 0x90(%rsp), %rax
addq $0x2a0, %rax            # imm = 0x2A0
movq %rax, 0x158(%rsp)
movq 0x158(%rsp), %rdi
callq 0xebf0
movq %rax, 0x150(%rsp)
movq 0x158(%rsp), %rdi
callq 0xec20
movq %rax, 0x148(%rsp)
leaq 0x150(%rsp), %rdi
leaq 0x148(%rsp), %rsi
callq 0xec50
testb $0x1, %al
jne 0x642f5
jmp 0x64388
leaq 0x150(%rsp), %rdi
callq 0xec90
movq %rax, %rsi
leaq 0x128(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0x51b0
movq 0x70(%rsp), %rsi
movq 0x168(%rsp), %rdi
callq 0x5330
movq %rax, 0x78(%rsp)
jmp 0x64330
movq 0x78(%rsp), %rdi
leaq 0xcd06(%rip), %rsi      # 0x71042
callq 0x5380
jmp 0x64343
leaq 0x128(%rsp), %rdi
callq 0x5768
leaq 0x150(%rsp), %rdi
callq 0xeca0
jmp 0x642d7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x120(%rsp)
movl %eax, 0x11c(%rsp)
leaq 0x128(%rsp), %rdi
callq 0x5768
jmp 0x64652
movq 0x168(%rsp), %rdi
movq 0x2ec21(%rip), %rsi     # 0x92fb8
movq %rsi, 0x48(%rsp)
callq 0x53d0
movq 0x88(%rsp), %rsi
movq 0x168(%rsp), %rdi
callq 0x5330
movq %rax, %rdi
leaq 0xfa96(%rip), %rsi      # 0x73e56
callq 0x5380
movq %rax, %rdi
leaq 0x2fc21(%rip), %rax     # 0x93ff0
movq %rax, 0x50(%rsp)
movl 0x248(%rax), %esi
callq 0x5680
movq 0x48(%rsp), %rsi
movq %rax, %rdi
callq 0x53d0
movq 0x88(%rsp), %rsi
movq 0x168(%rsp), %rdi
callq 0x5330
movq %rax, %rdi
leaq 0xfa70(%rip), %rsi      # 0x73e7b
callq 0x5380
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x58(%rsp)
movzbl 0x24c(%rax), %esi
andl $0x1, %esi
leaq 0xf8(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0x66470
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x5330
movq %rax, 0x68(%rsp)
jmp 0x6444f
movq 0x68(%rsp), %rdi
movq 0x2eb5d(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x64462
leaq 0xf8(%rsp), %rdi
callq 0x5768
movq 0x88(%rsp), %rsi
movq 0x168(%rsp), %rdi
callq 0x5330
movq %rax, %rdi
leaq 0xfa0d(%rip), %rsi      # 0x73e9b
callq 0x5380
movq %rax, 0x30(%rsp)
leaq 0x2fb51(%rip), %rax     # 0x93ff0
movzbl 0x24d(%rax), %esi
andl $0x1, %esi
leaq 0xd8(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x66470
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x5330
movq %rax, 0x40(%rsp)
jmp 0x644d1
movq 0x40(%rsp), %rdi
movq 0x2eadb(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x644e4
leaq 0xd8(%rsp), %rdi
callq 0x5768
movq 0x88(%rsp), %rsi
movq 0x168(%rsp), %rdi
callq 0x5330
movq %rax, %rdi
leaq 0xf9b2(%rip), %rsi      # 0x73ec2
callq 0x5380
movq %rax, 0x18(%rsp)
leaq 0x2facf(%rip), %rax     # 0x93ff0
movzbl 0x24e(%rax), %esi
andl $0x1, %esi
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x66470
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x5330
movq %rax, 0x28(%rsp)
jmp 0x64553
movq 0x28(%rsp), %rdi
movq 0x2ea59(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x64566
leaq 0xb8(%rsp), %rdi
callq 0x5768
movq 0x88(%rsp), %rsi
movq 0x168(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x98(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x51b0
movq 0x90(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x579f0
jmp 0x645b3
leaq 0x98(%rsp), %rdi
callq 0x5768
addq $0x178, %rsp            # imm = 0x178
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x120(%rsp)
movl %eax, 0x11c(%rsp)
leaq 0xf8(%rsp), %rdi
callq 0x5768
jmp 0x64652
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x120(%rsp)
movl %eax, 0x11c(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0x5768
jmp 0x64652
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x120(%rsp)
movl %eax, 0x11c(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x5768
jmp 0x64652
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x120(%rsp)
movl %eax, 0x11c(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x5768
movq 0x120(%rsp), %rdi
callq 0x5690
nop