// File: 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
subq $0xc0, %rsp
movq %rdx, -0xa0(%rbp)
movq %rdi, -0x98(%rbp)
movq %rdi, %rax
movq %rax, -0x90(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
movb $0x0, -0x19(%rbp)
callq 0xfb60
leaq -0x38(%rbp), %rdi
callq 0x6720
movl $0x0, -0x3c(%rbp)
movq -0xa0(%rbp), %rdi
movl -0x3c(%rbp), %eax
movq %rax, -0xa8(%rbp)
callq 0x4df0
movq %rax, %rcx
movq -0xa8(%rbp), %rax
cmpq %rcx, %rax
jae 0xe416
movq -0xa0(%rbp), %rdi
movl -0x3c(%rbp), %eax
movl %eax, %esi
callq 0x4e10
movq %rax, %rsi
leaq -0x60(%rbp), %rdi
callq 0x4130
jmp 0xe2eb
leaq -0x38(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x6bc0
jmp 0xe2fa
movl $0x1, -0x70(%rbp)
movq -0x88(%rbp), %rcx
movl -0x70(%rbp), %eax
cmpl 0x30(%rcx), %eax
jge 0xe3ff
movq -0xa0(%rbp), %rdi
movl -0x3c(%rbp), %eax
addl -0x70(%rbp), %eax
movl %eax, %eax
movq %rax, -0xb0(%rbp)
callq 0x4df0
movq %rax, %rcx
movq -0xb0(%rbp), %rax
cmpq %rcx, %rax
jae 0xe3ef
movq -0xa0(%rbp), %rdi
movl -0x3c(%rbp), %eax
movl -0x70(%rbp), %ecx
addl %ecx, %eax
movl %eax, %esi
callq 0x4e10
movq %rax, %rdi
leaq 0x8ce7(%rip), %rsi      # 0x17049
callq 0x6b90
movb %al, -0xb1(%rbp)
jmp 0xe36f
movb -0xb1(%rbp), %al
testb $0x1, %al
jne 0xe37b
jmp 0xe3ed
leaq 0x8e9d(%rip), %rsi      # 0x1721f
leaq -0x60(%rbp), %rdi
callq 0x45c0
jmp 0xe38d
movq -0xa0(%rbp), %rdi
movl -0x3c(%rbp), %eax
movl -0x70(%rbp), %ecx
addl %ecx, %eax
movl %eax, %esi
callq 0x4e10
movq %rax, %rsi
leaq -0x60(%rbp), %rdi
callq 0x45d0
jmp 0xe3b1
leaq -0x38(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x6bc0
jmp 0xe3c0
jmp 0xe3ed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0xe4a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x41a0
jmp 0xe4a1
jmp 0xe3ef
jmp 0xe3f1
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0xe301
leaq -0x60(%rbp), %rdi
callq 0x41a0
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xe2a3
movl $0x0, -0x78(%rbp)
movl -0x78(%rbp), %eax
movq %rax, -0xc0(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x4df0
movq %rax, %rcx
movq -0xc0(%rbp), %rax
cmpq %rcx, %rax
jae 0xe48c
movl -0x78(%rbp), %eax
movl %eax, %esi
leaq -0x38(%rbp), %rdi
callq 0x4e10
movq %rax, %rsi
leaq -0x71(%rbp), %rdi
callq 0xfb80
movq -0x88(%rbp), %rcx
movq -0x98(%rbp), %rdi
movl 0x34(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movl %edx, %eax
movl %eax, -0x7c(%rbp)
leaq -0x7c(%rbp), %rsi
callq 0xfbd0
jmp 0xe47f
jmp 0xe481
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0xe41d
movb $0x1, -0x19(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x69d0
testb $0x1, -0x19(%rbp)
jne 0xe4c4
jmp 0xe4b8
leaq -0x38(%rbp), %rdi
callq 0x69d0
movq -0x98(%rbp), %rdi
callq 0xf8d0
jmp 0xe4d4
movq -0x98(%rbp), %rdi
callq 0xf8d0
movq -0x90(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
movq -0x68(%rbp), %rdi
callq 0x4550
nopl (%rax)