// File: gvaumour[P]cache-simulator/src/DBAMBPredictor.cc
// Function: DBAMBPredictor::printConfig(std::ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void 
DBAMBPredictor::printConfig(std::ostream& out, string entete1)
{
	string entete =entete1 + ":DBAMBPredictor:";
	
	out << entete << "DHPTableAssoc\t" << m_RAP_assoc << endl;
	out << entete << "DHPTableNBSets\t" << m_RAP_sets << endl;
	out << entete << "Windowsize\t" << simu_parameters.window_size << endl;
	out << entete << "InacurracyThreshold\t" << simu_parameters.rap_innacuracy_th << endl;

	string a =  simu_parameters.enableBP ? "TRUE" : "FALSE"; 
	out << entete << "BypassEnable\t" << a << endl;
	out << entete << "DEADCOUNTERSaturation\t" << simu_parameters.deadSaturationCouter << endl;
	out << entete << "LearningThreshold\t" << simu_parameters.learningTH << endl;
	a =  simu_parameters.enableMigration ? "TRUE" : "FALSE"; 
	out << entete << "MigrationEnable\t" << a << endl;
	a =  simu_parameters.enableDatasetSpilling ? "TRUE" : "FALSE"; 
	out << entete << "DatasetSpilling\t" << a << endl;
	if(simu_parameters.ratio_RWcost != -1)
		out << entete << "CostRWRatio\t" << simu_parameters.ratio_RWcost << endl;
	out << entete << "CostReadNVM\t" << m_costParameters.costNVM[READ_ACCESS] << endl;
	out << entete << "CostWriteNVM\t" << m_costParameters.costNVM[WRITE_ACCESS] << endl;
	out << entete << "HashingFunction\t" << simu_parameters.DBAMB_signature << endl;
	out << entete << "HashingBeginBit\t" << simu_parameters.DBAMB_begin_bit << endl;
	out << entete << "HashingEndBit\t" << simu_parameters.DBAMB_end_bit << endl;
	
	Predictor::printConfig(out, entete1);
}

// Assembly:
subq $0x238, %rsp            # imm = 0x238
movq %rdx, 0x180(%rsp)
movq %rsi, %rax
movq 0x180(%rsp), %rsi
movq %rsi, 0x188(%rsp)
movq %rdi, 0x230(%rsp)
movq %rax, 0x228(%rsp)
movq %rsi, 0x220(%rsp)
movq 0x230(%rsp), %rax
movq %rax, 0x190(%rsp)
leaq 0x534d3(%rip), %rdx     # 0x71bd4
leaq 0x200(%rsp), %rdi
movq %rdi, 0x198(%rsp)
callq 0xfd20
movq 0x198(%rsp), %rsi
movq 0x228(%rsp), %rdi
callq 0x5330
movq %rax, 0x1a0(%rsp)
jmp 0x1e735
movq 0x1a0(%rsp), %rdi
leaq 0x534a1(%rip), %rsi     # 0x71be5
callq 0x5380
movq %rax, 0x178(%rsp)
jmp 0x1e753
movq 0x178(%rsp), %rdi
movq 0x190(%rsp), %rax
movl 0x338(%rax), %esi
callq 0x5510
movq %rax, 0x170(%rsp)
jmp 0x1e778
movq 0x170(%rsp), %rdi
movq 0x74831(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1e78e
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0x168(%rsp)
jmp 0x1e7ad
movq 0x168(%rsp), %rdi
leaq 0x53438(%rip), %rsi     # 0x71bf4
callq 0x5380
movq %rax, 0x160(%rsp)
jmp 0x1e7cb
movq 0x160(%rsp), %rdi
movq 0x190(%rsp), %rax
movl 0x33c(%rax), %esi
callq 0x5510
movq %rax, 0x158(%rsp)
jmp 0x1e7f0
movq 0x158(%rsp), %rdi
movq 0x747b9(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1e806
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0x150(%rsp)
jmp 0x1e825
movq 0x150(%rsp), %rdi
leaq 0x533d0(%rip), %rsi     # 0x71c04
callq 0x5380
movq %rax, 0x148(%rsp)
jmp 0x1e843
movq 0x148(%rsp), %rdi
leaq 0x7579e(%rip), %rax     # 0x93ff0
movl 0xa0(%rax), %esi
callq 0x5680
movq %rax, 0x140(%rsp)
jmp 0x1e867
movq 0x140(%rsp), %rdi
movq 0x74742(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1e87d
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0x138(%rsp)
jmp 0x1e89c
movq 0x138(%rsp), %rdi
leaq 0x53365(%rip), %rsi     # 0x71c10
callq 0x5380
movq %rax, 0x130(%rsp)
jmp 0x1e8ba
movq 0x130(%rsp), %rdi
leaq 0x75727(%rip), %rax     # 0x93ff0
movss 0x98(%rax), %xmm0
callq 0x52b0
movq %rax, 0x128(%rsp)
jmp 0x1e8e0
movq 0x128(%rsp), %rdi
movq 0x746c9(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1e8f6
leaq 0x756f3(%rip), %rax     # 0x93ff0
movb 0xa8(%rax), %dl
leaq 0x52bce(%rip), %rcx     # 0x714d8
leaq 0x52bcc(%rip), %rax     # 0x714dd
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0x118(%rsp)
leaq 0x1cf(%rsp), %rdi
movq %rdi, 0x120(%rsp)
callq 0x56a0
movq 0x118(%rsp), %rsi
movq 0x120(%rsp), %rdx
leaq 0x1d0(%rsp), %rdi
callq 0x5530
jmp 0x1e954
leaq 0x1cf(%rsp), %rdi
callq 0x53e0
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0x110(%rsp)
jmp 0x1e980
movq 0x110(%rsp), %rdi
leaq 0x53296(%rip), %rsi     # 0x71c25
callq 0x5380
movq %rax, 0x108(%rsp)
jmp 0x1e99e
movq 0x108(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
callq 0x5330
movq %rax, 0x100(%rsp)
jmp 0x1e9bd
movq 0x100(%rsp), %rdi
movq 0x745ec(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1e9d3
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0xf8(%rsp)
jmp 0x1e9f2
movq 0xf8(%rsp), %rdi
leaq 0x53232(%rip), %rsi     # 0x71c33
callq 0x5380
movq %rax, 0xf0(%rsp)
jmp 0x1ea10
movq 0xf0(%rsp), %rdi
leaq 0x755d1(%rip), %rax     # 0x93ff0
movl 0x9c(%rax), %esi
callq 0x5680
movq %rax, 0xe8(%rsp)
jmp 0x1ea34
movq 0xe8(%rsp), %rdi
movq 0x74575(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1ea4a
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0xe0(%rsp)
jmp 0x1ea69
movq 0xe0(%rsp), %rdi
leaq 0x553f0(%rip), %rsi     # 0x73e68
callq 0x5380
movq %rax, 0xd8(%rsp)
jmp 0x1ea87
movq 0xd8(%rsp), %rdi
leaq 0x7555a(%rip), %rax     # 0x93ff0
movl 0xa4(%rax), %esi
callq 0x5680
movq %rax, 0xd0(%rsp)
jmp 0x1eaab
movq 0xd0(%rsp), %rdi
movq 0x744fe(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1eac1
leaq 0x75528(%rip), %rax     # 0x93ff0
movb 0xa9(%rax), %cl
leaq 0x52a03(%rip), %rax     # 0x714d8
leaq 0x52a01(%rip), %rsi     # 0x714dd
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x1d0(%rsp), %rdi
callq 0x5520
jmp 0x1eaf2
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0xc8(%rsp)
jmp 0x1eb11
movq 0xc8(%rsp), %rdi
leaq 0x5312a(%rip), %rsi     # 0x71c4a
callq 0x5380
movq %rax, 0xc0(%rsp)
jmp 0x1eb2f
movq 0xc0(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
callq 0x5330
movq %rax, 0xb8(%rsp)
jmp 0x1eb4e
movq 0xb8(%rsp), %rdi
movq 0x7445b(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1eb64
leaq 0x75485(%rip), %rax     # 0x93ff0
movb 0x158(%rax), %cl
leaq 0x52960(%rip), %rax     # 0x714d8
leaq 0x5295e(%rip), %rsi     # 0x714dd
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x1d0(%rsp), %rdi
callq 0x5520
jmp 0x1eb95
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0xb0(%rsp)
jmp 0x1ebb4
movq 0xb0(%rsp), %rdi
leaq 0x53098(%rip), %rsi     # 0x71c5b
callq 0x5380
movq %rax, 0xa8(%rsp)
jmp 0x1ebd2
movq 0xa8(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
callq 0x5330
movq %rax, 0xa0(%rsp)
jmp 0x1ebf1
movq 0xa0(%rsp), %rdi
movq 0x743b8(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1ec07
leaq 0x753e2(%rip), %rax     # 0x93ff0
movss 0xe0(%rax), %xmm0
movss 0x52d5e(%rip), %xmm1    # 0x7197c
ucomiss %xmm1, %xmm0
jne 0x1ec2a
jp 0x1ec2a
jmp 0x1ecfd
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0x98(%rsp)
jmp 0x1ec49
movq 0x98(%rsp), %rdi
leaq 0x53014(%rip), %rsi     # 0x71c6c
callq 0x5380
movq %rax, 0x90(%rsp)
jmp 0x1ec67
movq 0x90(%rsp), %rdi
leaq 0x7537a(%rip), %rax     # 0x93ff0
movss 0xe0(%rax), %xmm0
callq 0x52b0
movq %rax, 0x88(%rsp)
jmp 0x1ec8d
movq 0x88(%rsp), %rdi
movq 0x7431c(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1eca3
jmp 0x1ecfd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
jmp 0x1efb5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
leaq 0x1cf(%rsp), %rdi
callq 0x53e0
jmp 0x1efb5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
jmp 0x1efa8
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0x80(%rsp)
jmp 0x1ed1c
movq 0x80(%rsp), %rdi
leaq 0x52f4e(%rip), %rsi     # 0x71c79
callq 0x5380
movq %rax, 0x78(%rsp)
jmp 0x1ed37
movq 0x190(%rsp), %rdi
addq $0x2a0, %rdi            # imm = 0x2A0
xorl %eax, %eax
movl %eax, %esi
callq 0xef90
movq 0x78(%rsp), %rdi
movl (%rax), %esi
callq 0x5680
movq %rax, 0x70(%rsp)
jmp 0x1ed62
movq 0x70(%rsp), %rdi
movq 0x7424a(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1ed75
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0x68(%rsp)
jmp 0x1ed91
movq 0x68(%rsp), %rdi
leaq 0x52ee9(%rip), %rsi     # 0x71c86
callq 0x5380
movq %rax, 0x60(%rsp)
jmp 0x1eda9
movq 0x190(%rsp), %rdi
addq $0x2a0, %rdi            # imm = 0x2A0
movl $0x1, %esi
callq 0xef90
movq 0x60(%rsp), %rdi
movl (%rax), %esi
callq 0x5680
movq %rax, 0x58(%rsp)
jmp 0x1edd5
movq 0x58(%rsp), %rdi
movq 0x741d7(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1ede8
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0x50(%rsp)
jmp 0x1ee04
movq 0x50(%rsp), %rdi
leaq 0x52e84(%rip), %rsi     # 0x71c94
callq 0x5380
movq %rax, 0x48(%rsp)
jmp 0x1ee1c
movq 0x48(%rsp), %rdi
leaq 0x751c8(%rip), %rsi     # 0x93ff0
addq $0x130, %rsi            # imm = 0x130
callq 0x5330
movq %rax, 0x40(%rsp)
jmp 0x1ee3b
movq 0x40(%rsp), %rdi
movq 0x74171(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1ee4e
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0x38(%rsp)
jmp 0x1ee6a
movq 0x38(%rsp), %rdi
leaq 0x52e2f(%rip), %rsi     # 0x71ca5
callq 0x5380
movq %rax, 0x30(%rsp)
jmp 0x1ee82
movq 0x30(%rsp), %rdi
leaq 0x75162(%rip), %rax     # 0x93ff0
movl 0x150(%rax), %esi
callq 0x5680
movq %rax, 0x28(%rsp)
jmp 0x1eea0
movq 0x28(%rsp), %rdi
movq 0x7410c(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1eeb3
movq 0x228(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x5330
movq %rax, 0x20(%rsp)
jmp 0x1eecf
movq 0x20(%rsp), %rdi
leaq 0x52ddb(%rip), %rsi     # 0x71cb6
callq 0x5380
movq %rax, 0x18(%rsp)
jmp 0x1eee7
movq 0x18(%rsp), %rdi
leaq 0x750fd(%rip), %rax     # 0x93ff0
movl 0x154(%rax), %esi
callq 0x5680
movq %rax, 0x10(%rsp)
jmp 0x1ef05
movq 0x10(%rsp), %rdi
movq 0x740a7(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x1ef18
movq 0x188(%rsp), %rsi
movq 0x228(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x1a8(%rsp), %rdi
callq 0x51b0
jmp 0x1ef3c
movq 0x8(%rsp), %rsi
movq 0x190(%rsp), %rdi
leaq 0x1a8(%rsp), %rdx
callq 0x579f0
jmp 0x1ef58
leaq 0x1a8(%rsp), %rdi
callq 0x5768
leaq 0x1d0(%rsp), %rdi
callq 0x5768
leaq 0x200(%rsp), %rdi
callq 0x5768
addq $0x238, %rsp            # imm = 0x238
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
leaq 0x1a8(%rsp), %rdi
callq 0x5768
leaq 0x1d0(%rsp), %rdi
callq 0x5768
leaq 0x200(%rsp), %rdi
callq 0x5768
movq 0x1f8(%rsp), %rdi
callq 0x5690
nop