// File: /workspace/github_cpp_makefile_star2_O3/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 0x31df3(%rip), %r12     # 0x45f50
movl 0x1b0(%r12), %eax
movl %eax, 0x2c(%r14)
movslq %ebp, %rsi
movq %r15, %rdi
callq 0x1546a
movl (%r14), %eax
testl %eax, %eax
jle 0x141a5
xorl %ebp, %ebp
movl $0x60, %edi
callq 0x52f0
movq %rax, %r13
movq %rax, %rdi
callq 0x1549c
movq 0x30(%r14), %rax
movq %r13, (%rax,%rbp,8)
incq %rbp
movslq (%r14), %rax
cmpq %rax, %rbp
jl 0x1417d
cmpb $0x0, 0x1cc(%r12)
je 0x143bc
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 0xc524
movq 0x58(%r14), %rax
leaq 0x30(%rsp), %r12
movaps (%r12), %xmm0
movq 0x10(%r12), %rcx
movq %rcx, 0x58(%r14)
movups 0x48(%r14), %xmm1
movups %xmm0, 0x48(%r14)
leaq 0x50(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq $0x0, 0x10(%r12)
callq 0xc5b4
movq %r12, %rdi
callq 0xc5b4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x14233
callq 0x52b0
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 0xc524
movq 0x70(%r14), %rax
leaq 0x30(%rsp), %r12
movaps (%r12), %xmm0
movq 0x10(%r12), %rcx
movq %rcx, 0x70(%r14)
movups 0x60(%r14), %xmm1
movups %xmm0, 0x60(%r14)
leaq 0x50(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq $0x0, 0x10(%r12)
callq 0xc5b4
movq %r12, %rdi
callq 0xc5b4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x142b2
callq 0x52b0
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 0xc524
movq 0x88(%r14), %rax
leaq 0x30(%rsp), %r12
movaps (%r12), %xmm0
movq 0x10(%r12), %rcx
movq %rcx, 0x88(%r14)
movups 0x78(%r14), %xmm1
movups %xmm0, 0x78(%r14)
leaq 0x50(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq $0x0, 0x10(%r12)
callq 0xc5b4
movq %r12, %rdi
callq 0xc5b4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x14337
callq 0x52b0
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 0xc524
movq 0xa0(%r14), %rax
leaq 0x30(%rsp), %rbx
movaps (%rbx), %xmm0
movq 0x10(%rbx), %rcx
movq %rcx, 0xa0(%r14)
movups 0x90(%r14), %xmm1
movups %xmm0, 0x90(%r14)
leaq 0x50(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0xc5b4
movq %rbx, %rdi
callq 0xc5b4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x143bc
callq 0x52b0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x143d1
jmp 0x143d1
jmp 0x143d1
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
jne 0x143f3
jmp 0x143f8
jmp 0x143e4
movq %rax, 0x8(%rsp)
jmp 0x143f8
movq %rax, 0x8(%rsp)
movq %r13, %rdi
callq 0x52b0
leaq 0x48(%r14), %r13
leaq 0x60(%r14), %rbp
leaq 0x78(%r14), %r12
addq $0x90, %r14
movq %r14, %rdi
callq 0xc5b4
movq %r12, %rdi
callq 0xc5b4
movq %rbp, %rdi
callq 0xc5b4
movq %r13, %rdi
callq 0xc5b4
movq (%r15), %rdi
testq %rdi, %rdi
je 0x14438
callq 0x52b0
movq (%rbx), %rdi
cmpq 0x48(%rsp), %rdi
je 0x14447
callq 0x52b0
movq 0x8(%rsp), %rdi
callq 0x55a0
nop