// File: /workspace/github_cpp_makefile_star2_O3/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 $0xd8, %rsp
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %rcx
leaq 0xb0(%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)
addq $0x48, %rdi
movq 0x8(%rsi), %rsi
movq %rcx, 0x40(%rsp)
subq (%rcx), %rsi
sarq $0x5, %rsi
movq %rdi, 0x48(%rsp)
callq 0x3a8a
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
movq $0x0, 0xa0(%rsp)
movq (%rbx), %rsi
cmpq %rsi, 0x8(%rbx)
je 0x3529
xorl %r14d, %r14d
leaq 0xa8(%rsp), %r15
xorl %r12d, %r12d
addq %r14, %rsi
movq %r15, %rdi
callq 0x4052
incq %r12
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
subq %rsi, %rax
sarq $0x5, %rax
addq $0x20, %r14
cmpq %r12, %rax
ja 0x3504
movl %ebp, 0x3c(%rsp)
movq 0x40(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
je 0x3716
leaq 0x68(%rsp), %r12
movq 0x8(%rsp), %rdi
leaq 0x70(%rdi), %r13
leaq 0x78(%rdi), %rcx
movq %rcx, 0x58(%rsp)
leaq 0xa0(%rdi), %rcx
movq %rcx, 0x50(%rsp)
leaq 0x10(%rsp), %rbx
leaq 0x30(%rsp), %rbp
xorl %r14d, %r14d
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq %r14, %rdx
shlq $0x5, %rdx
addq %rax, %rdx
movq %rbx, %rsi
callq 0x3ac6
movl $0x0, 0x68(%rsp)
xorl %eax, %eax
movq %rax, 0x70(%rsp)
movq %r12, 0x78(%rsp)
movq %r12, 0x80(%rsp)
movq %rax, 0x88(%rsp)
movq 0x10(%rsp), %rsi
cmpq %rsi, 0x18(%rsp)
je 0x36d9
xorl %r12d, %r12d
xorl %r15d, %r15d
movq 0x8(%rsp), %rbx
addq %r12, %rsi
leaq 0xa8(%rsp), %rdi
callq 0x4290
leaq 0xb0(%rsp), %rcx
cmpq %rcx, %rax
jne 0x3678
movq 0x10(%rsp), %rsi
addq %r12, %rsi
movq %r13, %rdi
callq 0x431a
cmpq 0x58(%rsp), %rax
jne 0x364d
movl 0x98(%rbx), %ebx
movl %ebx, 0x30(%rsp)
movq 0x10(%rsp), %rsi
addq %r12, %rsi
movq %r13, %rdi
callq 0x3bb4
movl %ebx, (%rax)
movq 0x10(%rsp), %rbx
movq 0x50(%rsp), %rdi
movq %rbp, %rsi
callq 0x3c30
addq %r12, %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x20f0
movq 0x8(%rsp), %rbx
movq 0x10(%rsp), %rsi
addq %r12, %rsi
movq %r13, %rdi
callq 0x3bb4
movl (%rax), %eax
movl %eax, 0x30(%rsp)
leaq 0x60(%rsp), %rdi
movq %rbp, %rsi
callq 0x3c96
incl (%rax)
incl 0xd0(%rbx)
incq %r15
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
addq $0x20, %r12
cmpq %r15, %rax
ja 0x35d4
movq 0x78(%rsp), %rbx
leaq 0x68(%rsp), %r12
cmpq %r12, %rbx
movq 0x48(%rsp), %r15
je 0x36d9
leaq (%r14,%r14,2), %rdi
shlq $0x3, %rdi
addq (%r15), %rdi
movq 0x20(%rbx), %rax
movq %rax, 0x30(%rsp)
movq %rbp, %rsi
callq 0x4b1c
movq %rbx, %rdi
callq 0x2140
movq %rax, %rbx
cmpq %r12, %rax
jne 0x36ad
leaq 0x60(%rsp), %rdi
callq 0x4c9a
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x2ab0
incq %r14
movq 0x40(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %r14, %rcx
movq 0x8(%rsp), %rdi
ja 0x3572
jmp 0x371f
sarq $0x5, %rcx
movq 0x8(%rsp), %rdi
movl %ecx, 0x64(%rdi)
movl 0x98(%rdi), %eax
movl %eax, 0x60(%rdi)
movq %rdi, %r14
movl 0x3c(%rsp), %ebx
movl %ebx, 0x68(%rdi)
leaq 0x30(%rdi), %rsi
movl %ebx, %edx
callq 0x3cfc
movl 0x60(%r14), %edx
movq %r14, %rdi
movq %r14, %rsi
movl %ebx, %ecx
callq 0x3da4
leaq 0x18(%r14), %rsi
movl 0x64(%r14), %edx
movq %r14, %rdi
movl %ebx, %ecx
callq 0x3da4
leaq 0x90(%rsp), %rdi
callq 0x3e02
leaq 0xa8(%rsp), %rdi
callq 0x557c
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x37cc
jmp 0x379b
movq %rax, %rbx
jmp 0x37b5
movq %rax, %rbx
jmp 0x37bf
jmp 0x37a8
jmp 0x37a8
jmp 0x37a8
jmp 0x37a8
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x4c9a
leaq 0x10(%rsp), %rdi
callq 0x2ab0
leaq 0x90(%rsp), %rdi
callq 0x3e02
leaq 0xa8(%rsp), %rdi
callq 0x557c
movq %rbx, %rdi
callq 0x22d0
nop