// File: /workspace/github_cpp_makefile_star2_O2/matengyue[P]Similar_test_demo/./src/vectorConstruct.h
// Function: vectorConstruct(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>>>>, 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>>>>)
int ** vectorConstruct(vector<string> vector_A, vector<string> vector_B){
    vector<string> words;
    //统计所有词
    for (int i = 0; i < vector_A.size(); i++){
        int flag = 1;
        for (int j = 0; j < words.size(); j++){
            if (vector_A[i] == words[j]){
                flag = 0;
                break;
            }
        }
        if (flag){
            string word = vector_A[i];
            words.push_back(word);    
        }
    }

    for (int i = 0; i < vector_B.size(); i++){
        int flag = 1;
        for (int j = 0; j < words.size(); j++){
            if (vector_B[i] == words[j]){
                flag = 0;
                break;
            }
        }
        if (flag){
            string word = vector_B[i];
            words.push_back(word);    
        }
    }

    //词频统计
    int count = words.size();
    int **a;
    a = new int *[3];
    a[0] = new int[count];
    a[1] = new int[count];
    a[2] = new int[1];
    a[2][0] = count;
    for (int i = 0; i < count; i++){
        a[0][i] = 0;
        a[1][i] = 0;
        
        for (int j = 0; j < vector_A.size(); j++){
            if (words[i] == vector_A[j]){
                a[0][i]++;
            }
        }
        
        for (int j = 0; j < vector_B.size(); j++){
            if (words[i] == vector_B[j]){
                a[1][i]++;
            }
        }
    }

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
movq %rsp, %rax
andq $0x0, 0x10(%rax)
movaps %xmm0, (%rax)
xorl %ebp, %ebp
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x5, %rax
cmpq %rbp, %rax
jbe 0x2530
movq %rbp, %r13
shlq $0x5, %r13
xorl %r15d, %r15d
pushq $-0x1
popq %r12
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
incq %r12
cmpq %r12, %rax
jbe 0x2505
movq (%r14), %rdi
addq %r13, %rdi
addq %r15, %rsi
addq $0x20, %r15
callq 0x2fb9
testb %al, %al
je 0x24d5
jmp 0x252b
addq (%r14), %r13
leaq 0x38(%rsp), %r15
movq %r15, %rdi
movq %r13, %rsi
callq 0x21f0
movq %rsp, %rdi
movq %r15, %rsi
callq 0x2fe2
movq %r15, %rdi
callq 0x20f0
incq %rbp
jmp 0x24b7
xorl %ebp, %ebp
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x5, %rax
cmpq %rbp, %rax
jbe 0x25ab
movq %rbp, %r13
shlq $0x5, %r13
xorl %r12d, %r12d
pushq $-0x1
popq %r15
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
incq %r15
cmpq %r15, %rax
jbe 0x2580
movq (%rbx), %rdi
addq %r13, %rdi
addq %r12, %rsi
addq $0x20, %r12
callq 0x2fb9
testb %al, %al
je 0x2550
jmp 0x25a6
addq (%rbx), %r13
leaq 0x38(%rsp), %r15
movq %r15, %rdi
movq %r13, %rsi
callq 0x21f0
movq %rsp, %rdi
movq %r15, %rsi
callq 0x2fe2
movq %r15, %rdi
callq 0x20f0
incq %rbp
jmp 0x2532
movq 0x8(%rsp), %r15
subq (%rsp), %r15
pushq $0x18
popq %rdi
callq 0x2030
movq %rax, %r12
movq %r15, %rax
shlq $0x1b, %rax
movq %rax, %rcx
sarq $0x1e, %rcx
testq %rax, %rax
pushq $-0x1
popq %r13
cmovnsq %rcx, %r13
movq %r13, %rdi
callq 0x2030
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, (%r12)
movq %r13, %rdi
callq 0x2030
movq %rax, %r13
movq %rax, 0x8(%r12)
pushq $0x4
popq %rdi
callq 0x2030
shrq $0x5, %r15
movq %r12, 0x28(%rsp)
movq %rax, 0x10(%r12)
movl %r15d, (%rax)
xorl %ebp, %ebp
testl %r15d, %r15d
cmovlel %ebp, %r15d
movq %r15, 0x30(%rsp)
movq %r13, 0x20(%rsp)
cmpq 0x30(%rsp), %rbp
je 0x26d2
movq 0x18(%rsp), %rax
andl $0x0, (%rax,%rbp,4)
andl $0x0, (%r13,%rbp,4)
movq %rbp, %r15
shlq $0x5, %r15
xorl %r12d, %r12d
xorl %r13d, %r13d
movq (%r14), %rsi
movq 0x8(%r14), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %r13, %rax
jbe 0x2688
movq (%rsp), %rdi
addq %r15, %rdi
addq %r12, %rsi
callq 0x2fb9
testb %al, %al
je 0x267f
movq 0x18(%rsp), %rax
incl (%rax,%rbp,4)
incq %r13
addq $0x20, %r12
jmp 0x2651
xorl %r12d, %r12d
xorl %r13d, %r13d
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %r13, %rax
jbe 0x26c5
movq (%rsp), %rdi
addq %r15, %rdi
addq %r12, %rsi
callq 0x2fb9
testb %al, %al
je 0x26bc
movq 0x20(%rsp), %rax
incl (%rax,%rbp,4)
incq %r13
addq $0x20, %r12
jmp 0x268e
incq %rbp
movq 0x20(%rsp), %r13
jmp 0x262a
movq %rsp, %rdi
callq 0x300e
movq 0x28(%rsp), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2703
jmp 0x26f4
jmp 0x2703
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x20f0
jmp 0x2706
movq %rax, %rbx
movq %rsp, %rdi
callq 0x300e
movq %rbx, %rdi
callq 0x2260