// File: /workspace/github_cpp_makefile_star2_O1/aleperno[P]Datos/HashingPerceptron.cpp
// Function: HashingPerceptron::getVector(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
vector<unsigned int> HashingPerceptron::getVector(vector<string> tokenized_words)
{
	vector<unsigned int> vec_pos;
	vector<string> phrase_vec;
	//Primero debo generar las frases
	for(unsigned int i=0; i < tokenized_words.size(); i++)
	{
		string str = tokenized_words[i];
		phrase_vec.push_back(str);

		for (int j=1; j< this->phrase_lenght; j++)
		{
			if (i+j < tokenized_words.size())
			{
				if (tokenized_words[i+j] != "")
				{
					str.append(" ");
					str.append(tokenized_words[i+j]);
					phrase_vec.push_back(str);
				}
			}
		}
	}
	hash<string> hash_fn;
	for(unsigned int i=0; i < phrase_vec.size(); i++)
	{
		unsigned int pos = hash_fn(phrase_vec[i])%this->hash_size;
		vec_pos.push_back(pos);
	}
	return vec_pos;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, -0x40(%rbp)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movq %rdi, -0x38(%rbp)
movups %xmm0, (%rdi)
movq %rax, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movq (%rdx), %rax
cmpq %rax, 0x8(%rdx)
je 0x74bb
movq %rdx, %r15
leaq -0x70(%rbp), %rbx
xorl %r13d, %r13d
leaq -0x80(%rbp), %r12
xorl %ecx, %ecx
shlq $0x5, %rcx
movq %rbx, -0x80(%rbp)
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x3cb2
leaq -0x60(%rbp), %rdi
movq %r12, %r14
movq %r12, %rsi
callq 0x4b56
movq -0x40(%rbp), %rax
cmpl $0x2, 0x30(%rax)
jl 0x7489
movl $0x1, %ebx
leal (%rbx,%r13), %r12d
movq (%r15), %rdi
movq 0x8(%r15), %rax
subq %rdi, %rax
sarq $0x5, %rax
cmpq %r12, %rax
jbe 0x7479
shlq $0x5, %r12
addq %r12, %rdi
leaq 0x2c2c(%rip), %rsi      # 0xa06d
callq 0x30f0
testl %eax, %eax
je 0x7479
movq %r14, %rdi
leaq 0x2f29(%rip), %rsi      # 0xa37d
callq 0x3430
movq (%r15), %rax
movq (%rax,%r12), %rsi
movq 0x8(%rax,%r12), %rdx
movq %r14, %rdi
callq 0x3100
leaq -0x60(%rbp), %rdi
movq %r14, %rsi
callq 0x4b56
incq %rbx
movq -0x40(%rbp), %rax
movslq 0x30(%rax), %rax
cmpq %rax, %rbx
jl 0x741c
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rbx
cmpq %rbx, %rdi
je 0x749b
callq 0x3210
incq %r13
movl %r13d, %ecx
movq (%r15), %rax
movq 0x8(%r15), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %rcx, %rdx
movq %r14, %r12
ja 0x73e2
movq -0x60(%rbp), %rax
cmpq %rax, -0x58(%rbp)
je 0x752f
movl $0x1, %r12d
xorl %esi, %esi
leaq -0x29(%rbp), %rbx
leaq -0x80(%rbp), %r15
shlq $0x5, %rsi
addq %rax, %rsi
movq %rbx, %rdi
callq 0x8266
movq -0x40(%rbp), %rcx
movl 0x34(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movl %edx, -0x80(%rbp)
movq -0x38(%rbp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x750d
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x7515
movq %r15, %rdx
callq 0x8cb8
movl %r12d, %esi
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
incl %r12d
cmpq %rsi, %rcx
ja 0x74d5
leaq -0x60(%rbp), %rdi
callq 0x4b08
movq -0x38(%rbp), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x754d
movq %rax, %rbx
jmp 0x7569
jmp 0x7554
movq %rax, %rbx
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x7569
callq 0x3210
leaq -0x60(%rbp), %rdi
callq 0x4b08
movq -0x38(%rbp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x7583
callq 0x3210
movq %rbx, %rdi
callq 0x33e0
nop