// File: /workspace/github_cpp_makefile_star2_O1/fei3189[P]PLSI/./plsi.hpp
// Function: PLSI::_preprocess(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>>>> const&, int, 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>>>> const&)
void _preprocess(const vector<string> &docs, int k, const vector<string> &_w_stop) {
        set<string> w_stop;
        n_wd.resize(docs.size());
        vector<vector<int> > _tmp_n_wd;
        for (int i = 0; i < _w_stop.size(); ++i) {
            w_stop.insert(_w_stop[i]);
        }
        for (int i = 0; i < docs.size(); ++i) {
            vector<string> tokens;
            _split(tokens, docs[i]);
            map<int, int> id2freq;
            for (int j = 0; j < tokens.size(); ++j) {
                if (w_stop.find(tokens[j]) != w_stop.end()) {
                    continue;
                }
                if (word2id.find(tokens[j]) == word2id.end()) {
                    int size = word2id.size();
                    word2id[tokens[j]] = size;
                    id2word[size] = tokens[j];
                }
                int id = word2id[tokens[j]];
                id2freq[id]++;
                _all_words++;
            }
            for (map<int, int>::iterator it = id2freq.begin(); it != id2freq.end(); ++it)
                n_wd[i].push_back(Index(it->first, it->second));
        }

        c_doc = docs.size();
        c_word = word2id.size();
        k_z = k;
        _resize1d(p_z, k);
        _resize2d(p_wz, c_word, k);
        _resize2d(p_dz, c_doc, k);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %rcx
leaq 0xa0(%rsp), %rdx
movl $0x0, (%rdx)
xorl %eax, %eax
movq %rax, 0x8(%rdx)
movq %rdx, 0x10(%rdx)
movq %rdx, 0x18(%rdx)
movq %rax, 0x20(%rdx)
movq %rdi, 0x8(%rsp)
leaq 0x48(%rdi), %r12
movq 0x8(%rsi), %rsi
movq %rcx, 0x38(%rsp)
subq (%rcx), %rsi
sarq $0x5, %rsi
movq %r12, %rdi
callq 0x3a5e
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
movq (%rbx), %rsi
cmpq %rsi, 0x8(%rbx)
je 0x350d
xorl %r14d, %r14d
leaq 0x98(%rsp), %r15
xorl %r13d, %r13d
addq %r14, %rsi
movq %r15, %rdi
callq 0x401c
incq %r13
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
subq %rsi, %rax
sarq $0x5, %rax
addq $0x20, %r14
cmpq %r13, %rax
ja 0x34e8
movl %ebp, 0x34(%rsp)
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
je 0x36ec
leaq 0x58(%rsp), %r14
movq 0x8(%rsp), %rbx
leaq 0x70(%rbx), %r13
leaq 0x78(%rbx), %rcx
movq %rcx, 0x48(%rsp)
leaq 0xa0(%rbx), %rcx
movq %rcx, 0x40(%rsp)
leaq 0x10(%rsp), %r15
xorl %ebp, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq %rbp, %rdx
shlq $0x5, %rdx
addq %rax, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3a9a
movl $0x0, 0x58(%rsp)
xorl %eax, %eax
movq %rax, 0x60(%rsp)
movq %r14, 0x68(%rsp)
movq %r14, 0x70(%rsp)
movq %rax, 0x78(%rsp)
movq 0x10(%rsp), %rsi
cmpq %rsi, 0x18(%rsp)
je 0x366d
xorl %r14d, %r14d
xorl %r15d, %r15d
addq %r14, %rsi
leaq 0x98(%rsp), %rdi
callq 0x4254
leaq 0xa0(%rsp), %rcx
cmpq %rcx, %rax
jne 0x364c
movq 0x10(%rsp), %rsi
addq %r14, %rsi
movq %r13, %rdi
callq 0x42de
cmpq 0x48(%rsp), %rax
jne 0x3622
movl 0x98(%rbx), %ebx
movl %ebx, (%rsp)
movq 0x10(%rsp), %rsi
addq %r14, %rsi
movq %r13, %rdi
callq 0x3b88
movl %ebx, (%rax)
movq 0x10(%rsp), %rbx
movq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq 0x3c04
addq %r14, %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x20f0
movq 0x8(%rsp), %rbx
movq 0x10(%rsp), %rsi
addq %r14, %rsi
movq %r13, %rdi
callq 0x3b88
movl (%rax), %eax
movl %eax, (%rsp)
leaq 0x50(%rsp), %rdi
movq %rsp, %rsi
callq 0x3c68
incl (%rax)
incl 0xd0(%rbx)
incq %r15
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
addq $0x20, %r14
cmpq %r15, %rax
ja 0x35aa
movq 0x68(%rsp), %rbx
leaq 0x58(%rsp), %r14
cmpq %r14, %rbx
leaq 0x10(%rsp), %r15
je 0x36b4
leaq (,%rbp,2), %rdi
addq %rbp, %rdi
shlq $0x3, %rdi
addq (%r12), %rdi
movq 0x20(%rbx), %rax
movq %rax, (%rsp)
movq %rsp, %rsi
callq 0x4ae4
movq %rbx, %rdi
callq 0x2140
movq %rax, %rbx
cmpq %r14, %rax
jne 0x3681
leaq 0x50(%rsp), %rdi
callq 0x4c5a
movq %r15, %rdi
callq 0x2ab0
incq %rbp
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %rbp, %rcx
movq 0x8(%rsp), %rbx
ja 0x3550
jmp 0x36f5
sarq $0x5, %rcx
movq 0x8(%rsp), %rbx
movl %ecx, 0x64(%rbx)
movl 0x98(%rbx), %eax
movl %eax, 0x60(%rbx)
movq %rbx, %r14
movl 0x34(%rsp), %ebx
movl %ebx, 0x68(%r14)
leaq 0x30(%r14), %rsi
movq %r14, %rdi
movl %ebx, %edx
callq 0x3ccc
movl 0x60(%r14), %edx
movq %r14, %rdi
movq %r14, %rsi
movl %ebx, %ecx
callq 0x3d74
leaq 0x18(%r14), %rsi
movl 0x64(%r14), %edx
movq %r14, %rdi
movl %ebx, %ecx
callq 0x3d74
leaq 0x80(%rsp), %rdi
callq 0x3dd2
leaq 0x98(%rsp), %rdi
callq 0x5538
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x37a6
jmp 0x3775
movq %rax, %rbx
jmp 0x378f
movq %rax, %rbx
jmp 0x3799
jmp 0x3782
jmp 0x3782
jmp 0x3782
jmp 0x3782
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x4c5a
leaq 0x10(%rsp), %rdi
callq 0x2ab0
leaq 0x80(%rsp), %rdi
callq 0x3dd2
leaq 0x98(%rsp), %rdi
callq 0x5538
movq %rbx, %rdi
callq 0x22d0
nop