// File: /workspace/github_cpp_makefile_star2_O2/gvaumour[P]cache-simulator/src/FeatureTable.cc
// Function: FeatureTable::FeatureTable(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
FeatureTable::FeatureTable( int size, string name, bool isBP)
{
	m_size = size;
	m_name = name;
	m_isBP = isBP;
	m_counter_size = simu_parameters.perceptron_counter_size;
	
	m_table.resize(size);
	for(int i = 0 ; i < m_size; i++)
		m_table[i] = new FeatureEntry();

	if(simu_parameters.perceptron_drawFeatureMaps)
	{
		stats_heatmap_weight = vector<vector<int> >(m_size, vector<int>());
		stats_heatmap_allocation = vector<vector<int> >(m_size, vector<int>());
		stats_allocation_buffer = vector<vector<int> >(m_size, vector<int>());
		stats_weight_buffer = vector<vector<int> >(m_size, vector<int>());

	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, %r12d
movq %rdi, %r15
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
andq $0x0, 0x10(%rdi)
movl %esi, %r13d
addq $0x8, %rdi
movb $0x0, 0x18(%r15)
leaq 0x30(%r15), %r14
leaq 0x48(%r15), %rax
movq %rax, 0x40(%rsp)
leaq 0x60(%r15), %rax
movq %rax, 0x30(%rsp)
leaq 0x78(%r15), %rax
movq %rax, 0x38(%rsp)
leaq 0x90(%r15), %rax
movq %rax, 0x28(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r15)
movups %xmm0, 0x40(%r15)
movups %xmm0, 0x50(%r15)
movups %xmm0, 0x60(%r15)
movups %xmm0, 0x70(%r15)
movups %xmm0, 0x80(%r15)
movups %xmm0, 0x90(%r15)
andq $0x0, 0xa0(%r15)
movl %esi, (%r15)
movq %rdi, 0x60(%rsp)
movq %rdx, %rsi
callq 0x51b0
movb %r12b, 0x28(%r15)
leaq 0x2d31d(%rip), %rbp     # 0x3df50
movl 0x1b0(%rbp), %eax
movl %eax, 0x2c(%r15)
movslq %r13d, %rsi
movq %r14, %rdi
callq 0x118f8
xorl %ebx, %ebx
pushq $0x60
popq %r12
movslq (%r15), %rsi
cmpq %rsi, %rbx
jge 0x10c75
movq %r12, %rdi
callq 0x52e0
movq %rax, %r13
movq %rax, %rdi
callq 0x1192a
movq (%r14), %rax
movq %r13, (%rax,%rbx,8)
incq %rbx
jmp 0x10c4e
cmpb $0x0, 0x1cc(%rbp)
je 0x10dac
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
leaq 0x48(%rsp), %rdi
leaq 0xf(%rsp), %rcx
callq 0x9ce0
leaq 0x48(%rsp), %r12
movq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0xa710
movq %r12, %rdi
callq 0x9d36
leaq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0xa49a
movslq (%r15), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
andq $0x0, 0x10(%r12)
leaq 0x48(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0xf(%rsp), %rcx
movq 0x38(%rsp), %rbx
callq 0x9ce0
leaq 0x48(%rsp), %r12
movq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0xa710
movq %r12, %rdi
callq 0x9d36
leaq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0xa49a
movslq (%r15), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
andq $0x0, 0x10(%r12)
leaq 0x48(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0xf(%rsp), %rcx
callq 0x9ce0
leaq 0x48(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa710
movq %r12, %rdi
callq 0x9d36
leaq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0xa49a
movslq (%r15), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
andq $0x0, 0x10(%r12)
leaq 0x48(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0xf(%rsp), %rcx
callq 0x9ce0
leaq 0x48(%rsp), %rbx
movq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0xa710
movq %rbx, %rdi
callq 0x9d36
leaq 0x10(%rsp), %rdi
callq 0xa49a
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x10dc1
jmp 0x10dc1
jmp 0x10dc1
movq %rax, %r15
leaq 0x10(%rsp), %rdi
callq 0xa49a
jmp 0x10de2
jmp 0x10ddf
movq %rax, %r15
movq %r13, %rdi
callq 0x52a0
jmp 0x10de2
movq %rax, %r15
movq 0x28(%rsp), %rdi
callq 0x9d36
movq 0x38(%rsp), %rdi
callq 0x9d36
movq 0x30(%rsp), %rdi
callq 0x9d36
movq 0x40(%rsp), %rdi
callq 0x9d36
movq %r14, %rdi
callq 0x11bc0
movq 0x60(%rsp), %rdi
callq 0x5618
movq %r15, %rdi
callq 0x5570