// File: /workspace/github_cpp_makefile_star2_O1/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
movl %esi, %ebp
movq %rdi, %r14
leaq 0x8(%rdi), %rbx
leaq 0x18(%rdi), %rax
movq %rax, 0x48(%rsp)
movq %rax, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb $0x0, 0x18(%rdi)
leaq 0x30(%rdi), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movups %xmm0, 0x80(%rdi)
movups %xmm0, 0x90(%rdi)
movq %rax, 0xa0(%rdi)
movl %esi, (%rdi)
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x51a0
movb %r12b, 0x28(%r14)
leaq 0x31d05(%rip), %r12     # 0x45f50
movl 0x1b0(%r12), %eax
movl %eax, 0x2c(%r14)
movslq %ebp, %rsi
movq %r15, %rdi
callq 0x155f6
movl (%r14), %eax
testl %eax, %eax
jle 0x14293
xorl %ebp, %ebp
movl $0x60, %edi
callq 0x52e0
movq %rax, %r13
movq %rax, %rdi
callq 0x15628
movq 0x30(%r14), %rax
movq %r13, (%rax,%rbp,8)
incq %rbp
movslq (%r14), %rax
cmpq %rax, %rbp
jl 0x1426b
cmpb $0x0, 0x1cc(%r12)
je 0x144e2
movslq %eax, %rsi
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
leaq 0x30(%rsp), %rdi
leaq 0x7(%rsp), %rcx
callq 0xc5b2
leaq 0x50(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movups 0x48(%r14), %xmm0
movq 0x58(%r14), %rax
leaq 0x30(%rsp), %r12
movaps (%r12), %xmm1
movups %xmm1, 0x48(%r14)
movq 0x10(%r12), %rcx
movq %rcx, 0x58(%r14)
movq 0x10(%rdi), %rcx
movq %rax, 0x10(%rdi)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movaps %xmm1, (%r12)
movq %rcx, 0x10(%r12)
callq 0xc642
movq %r12, %rdi
callq 0xc642
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1432f
callq 0x52a0
movslq (%r14), %rsi
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
leaq 0x30(%rsp), %rdi
leaq 0x7(%rsp), %rcx
callq 0xc5b2
leaq 0x50(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movups 0x60(%r14), %xmm0
movq 0x70(%r14), %rax
leaq 0x30(%rsp), %r12
movaps (%r12), %xmm1
movups %xmm1, 0x60(%r14)
movq 0x10(%r12), %rcx
movq %rcx, 0x70(%r14)
movq 0x10(%rdi), %rcx
movq %rax, 0x10(%rdi)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movaps %xmm1, (%r12)
movq %rcx, 0x10(%r12)
callq 0xc642
movq %r12, %rdi
callq 0xc642
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x143bc
callq 0x52a0
movslq (%r14), %rsi
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
leaq 0x30(%rsp), %rdi
leaq 0x7(%rsp), %rcx
callq 0xc5b2
leaq 0x50(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movups 0x78(%r14), %xmm0
movq 0x88(%r14), %rax
leaq 0x30(%rsp), %r12
movaps (%r12), %xmm1
movups %xmm1, 0x78(%r14)
movq 0x10(%r12), %rcx
movq %rcx, 0x88(%r14)
movq 0x10(%rdi), %rcx
movq %rax, 0x10(%rdi)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movaps %xmm1, (%r12)
movq %rcx, 0x10(%r12)
callq 0xc642
movq %r12, %rdi
callq 0xc642
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1444f
callq 0x52a0
movslq (%r14), %rsi
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
leaq 0x30(%rsp), %rdi
leaq 0x7(%rsp), %rcx
callq 0xc5b2
leaq 0x50(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movups 0x90(%r14), %xmm0
movq 0xa0(%r14), %rax
leaq 0x30(%rsp), %rbx
movaps (%rbx), %xmm1
movups %xmm1, 0x90(%r14)
movq 0x10(%rbx), %rcx
movq %rcx, 0xa0(%r14)
movq 0x10(%rdi), %rcx
movq %rax, 0x10(%rdi)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movaps %xmm1, (%rbx)
movq %rcx, 0x10(%rbx)
callq 0xc642
movq %rbx, %rdi
callq 0xc642
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x144e2
callq 0x52a0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x144f7
jmp 0x144f7
jmp 0x144f7
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
jne 0x14519
jmp 0x1451e
jmp 0x1450a
movq %rax, 0x8(%rsp)
jmp 0x1451e
movq %rax, 0x8(%rsp)
movq %r13, %rdi
callq 0x52a0
leaq 0x48(%r14), %r13
leaq 0x60(%r14), %rbp
leaq 0x78(%r14), %r12
addq $0x90, %r14
movq %r14, %rdi
callq 0xc642
movq %r12, %rdi
callq 0xc642
movq %rbp, %rdi
callq 0xc642
movq %r13, %rdi
callq 0xc642
movq (%r15), %rdi
testq %rdi, %rdi
je 0x1455e
callq 0x52a0
movq (%rbx), %rdi
cmpq 0x48(%rsp), %rdi
je 0x1456d
callq 0x52a0
movq 0x8(%rsp), %rdi
callq 0x55a0
nop