// File: 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:
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rdi, 0x1d0(%rsp)
movq %rsi, 0x1c8(%rsp)
movl %edx, 0x1c4(%rsp)
movq %rcx, 0x1b8(%rsp)
movq 0x1d0(%rsp), %rax
movq %rax, 0xa0(%rsp)
leaq 0x188(%rsp), %rdi
callq 0x50e0
movq 0xa0(%rsp), %rax
addq $0x48, %rax
movq %rax, 0xa8(%rsp)
movq 0x1c8(%rsp), %rdi
callq 0x5190
movq 0xa8(%rsp), %rdi
movq %rax, %rsi
callq 0x50f0
jmp 0x3ed6
leaq 0x160(%rsp), %rdi
callq 0x51b0
movl $0x0, 0x15c(%rsp)
movslq 0x15c(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x1b8(%rsp), %rdi
callq 0x5190
movq %rax, %rcx
movq 0x98(%rsp), %rax
cmpq %rcx, %rax
jae 0x3fbb
movq 0x1b8(%rsp), %rdi
movslq 0x15c(%rsp), %rsi
callq 0x5220
movq %rax, %rsi
leaq 0x188(%rsp), %rdi
callq 0x51c0
movb %dl, 0x8f(%rsp)
movq %rax, 0x90(%rsp)
jmp 0x3f55
movb 0x8f(%rsp), %al
movq 0x90(%rsp), %rcx
movq %rcx, 0x148(%rsp)
movb %al, 0x150(%rsp)
movl 0x15c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x15c(%rsp)
jmp 0x3eee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x180(%rsp)
movl %eax, 0x17c(%rsp)
jmp 0x44a5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x180(%rsp)
movl %eax, 0x17c(%rsp)
jmp 0x4498
movl $0x0, 0x144(%rsp)
movslq 0x144(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x1c8(%rsp), %rdi
callq 0x5190
movq %rax, %rcx
movq 0x80(%rsp), %rax
cmpq %rcx, %rax
jae 0x43ef
leaq 0x128(%rsp), %rdi
movq %rdi, 0x78(%rsp)
callq 0x2880
movq 0x1c8(%rsp), %rdi
movslq 0x144(%rsp), %rsi
callq 0x5220
movq 0xa0(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq %rax, %rdx
callq 0x5240
jmp 0x4035
leaq 0xf8(%rsp), %rdi
callq 0x5320
movl $0x0, 0xf4(%rsp)
movslq 0xf4(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x128(%rsp), %rdi
callq 0x5190
movq %rax, %rcx
movq 0x70(%rsp), %rax
cmpq %rcx, %rax
jae 0x42ec
movslq 0xf4(%rsp), %rsi
leaq 0x128(%rsp), %rdi
callq 0x5390
movq %rax, %rsi
leaq 0x188(%rsp), %rdi
callq 0x5350
movq %rax, 0x68(%rsp)
jmp 0x40a4
movq 0x68(%rsp), %rax
movq %rax, 0xe8(%rsp)
leaq 0x188(%rsp), %rdi
callq 0x53b0
movq %rax, 0xe0(%rsp)
leaq 0xe8(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x5330
testb $0x1, %al
jne 0x40e1
jmp 0x4125
jmp 0x42d6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x180(%rsp)
movl %eax, 0x17c(%rsp)
jmp 0x43dd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x180(%rsp)
movl %eax, 0x17c(%rsp)
leaq 0xf8(%rsp), %rdi
callq 0x5860
jmp 0x43dd
movq 0xa0(%rsp), %rax
addq $0x70, %rax
movq %rax, 0x58(%rsp)
movslq 0xf4(%rsp), %rsi
leaq 0x128(%rsp), %rdi
callq 0x5390
movq 0x58(%rsp), %rdi
movq %rax, %rsi
callq 0x5400
movq %rax, 0x60(%rsp)
jmp 0x415f
movq 0xa0(%rsp), %rdi
movq 0x60(%rsp), %rax
movq %rax, 0xd8(%rsp)
addq $0x70, %rdi
callq 0x5430
movq %rax, 0xd0(%rsp)
leaq 0xd8(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x53e0
testb $0x1, %al
jne 0x41a3
jmp 0x424f
movq 0xa0(%rsp), %rdi
addq $0x70, %rdi
movq %rdi, 0x48(%rsp)
callq 0x5460
movl %eax, 0xcc(%rsp)
movl 0xcc(%rsp), %eax
movl %eax, 0x44(%rsp)
movslq 0xf4(%rsp), %rsi
leaq 0x128(%rsp), %rdi
callq 0x5390
movq 0x48(%rsp), %rdi
movq %rax, %rsi
callq 0x5470
movq %rax, 0x50(%rsp)
jmp 0x41f4
movq 0x50(%rsp), %rax
movl 0x44(%rsp), %ecx
movl %ecx, (%rax)
movslq 0xf4(%rsp), %rsi
leaq 0x128(%rsp), %rdi
callq 0x5390
movq 0xa0(%rsp), %rdi
movq %rax, 0x30(%rsp)
addq $0xa0, %rdi
leaq 0xcc(%rsp), %rsi
callq 0x5560
movq %rax, 0x38(%rsp)
jmp 0x423c
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdi
callq 0x2040
jmp 0x424d
jmp 0x424f
movq 0xa0(%rsp), %rax
addq $0x70, %rax
movq %rax, 0x20(%rsp)
movslq 0xf4(%rsp), %rsi
leaq 0x128(%rsp), %rdi
callq 0x5390
movq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x5470
movq %rax, 0x28(%rsp)
jmp 0x4289
movq 0x28(%rsp), %rax
movl (%rax), %eax
movl %eax, 0xc8(%rsp)
leaq 0xf8(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x5650
movq %rax, 0x18(%rsp)
jmp 0x42b3
movq 0xa0(%rsp), %rax
movq 0x18(%rsp), %rcx
movl (%rcx), %edx
addl $0x1, %edx
movl %edx, (%rcx)
movl 0xd0(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0xd0(%rax)
movl 0xf4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xf4(%rsp)
jmp 0x404d
leaq 0xf8(%rsp), %rdi
callq 0x5740
movq %rax, 0xc0(%rsp)
leaq 0xf8(%rsp), %rdi
callq 0x5790
movq %rax, 0xb8(%rsp)
leaq 0xc0(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x5770
testb $0x1, %al
jne 0x4331
jmp 0x43ad
movq 0xa0(%rsp), %rdi
addq $0x48, %rdi
movslq 0x144(%rsp), %rsi
callq 0x4720
movq %rax, (%rsp)
leaq 0xc0(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x57f0
movq 0x8(%rsp), %rdi
movl (%rax), %eax
movl %eax, 0x14(%rsp)
callq 0x57f0
movl 0x14(%rsp), %esi
movl 0x4(%rax), %edx
leaq 0xb0(%rsp), %rdi
callq 0x5810
jmp 0x4386
movq (%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x57c0
jmp 0x4399
jmp 0x439b
leaq 0xc0(%rsp), %rdi
callq 0x5830
jmp 0x4301
leaq 0xf8(%rsp), %rdi
callq 0x5860
leaq 0x128(%rsp), %rdi
callq 0x2c30
movl 0x144(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x144(%rsp)
jmp 0x3fc6
leaq 0x128(%rsp), %rdi
callq 0x2c30
jmp 0x4498
movq 0x1c8(%rsp), %rdi
callq 0x5190
movq 0xa0(%rsp), %rdi
movl %eax, 0x64(%rdi)
addq $0x70, %rdi
callq 0x5460
movq 0xa0(%rsp), %rdi
movl %eax, 0x60(%rdi)
movl 0x1c4(%rsp), %eax
movl %eax, 0x68(%rdi)
movq %rdi, %rsi
addq $0x30, %rsi
movl 0x1c4(%rsp), %edx
callq 0x5870
jmp 0x443a
movq 0xa0(%rsp), %rsi
movl 0x60(%rsi), %edx
movl 0x1c4(%rsp), %ecx
movq %rsi, %rdi
callq 0x59a0
jmp 0x4456
movq 0xa0(%rsp), %rdi
movq %rdi, %rsi
addq $0x18, %rsi
movl 0x64(%rdi), %edx
movl 0x1c4(%rsp), %ecx
callq 0x59a0
jmp 0x4476
leaq 0x160(%rsp), %rdi
callq 0x5a20
leaq 0x188(%rsp), %rdi
callq 0x5a80
addq $0x1d8, %rsp            # imm = 0x1D8
retq
leaq 0x160(%rsp), %rdi
callq 0x5a20
leaq 0x188(%rsp), %rdi
callq 0x5a80
movq 0x180(%rsp), %rdi
callq 0x22e0
nop