// File: /workspace/github_cpp_makefile_star2_O1/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 $0x88, %rsp
movq %rsi, (%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq (%rdi), %rbp
movq %rdi, 0x8(%rsp)
cmpq %rbp, 0x8(%rdi)
je 0x259f
xorl %r12d, %r12d
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %rbx
subq %r15, %rbx
je 0x2531
sarq $0x5, %rbx
movq %r12, %rax
shlq $0x5, %rax
leaq (%rax,%rbp), %r14
movq 0x8(%rbp,%rax), %r13
cmpq $0x1, %rbx
adcq $0x0, %rbx
addq $0x8, %r15
cmpq (%r15), %r13
jne 0x2528
testq %r13, %r13
je 0x2580
movq -0x8(%r15), %rsi
movq (%r14), %rdi
movq %r13, %rdx
callq 0x21b0
testl %eax, %eax
je 0x2580
addq $0x20, %r15
decq %rbx
jne 0x250b
movq %r12, %rax
shlq $0x5, %rax
leaq 0x48(%rsp), %r14
movq %r14, 0x38(%rsp)
movq (%rbp,%rax), %rsi
movq 0x8(%rbp,%rax), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0x392e
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x3738
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x2580
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21a0
incq %r12
movq 0x8(%rsp), %rax
movq (%rax), %rbp
movq 0x8(%rax), %rax
subq %rbp, %rax
sarq $0x5, %rax
cmpq %r12, %rax
ja 0x24dc
movq (%rsp), %rax
movq (%rax), %rbp
movq 0x8(%rax), %r13
subq %rbp, %r13
je 0x267a
xorl %r12d, %r12d
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %rbx
subq %r15, %rbx
je 0x260b
sarq $0x5, %rbx
movq %r12, %rax
shlq $0x5, %rax
leaq (%rax,%rbp), %r14
movq 0x8(%rbp,%rax), %r13
cmpq $0x1, %rbx
adcq $0x0, %rbx
addq $0x8, %r15
cmpq (%r15), %r13
jne 0x2602
testq %r13, %r13
je 0x265a
movq -0x8(%r15), %rsi
movq (%r14), %rdi
movq %r13, %rdx
callq 0x21b0
testl %eax, %eax
je 0x265a
addq $0x20, %r15
decq %rbx
jne 0x25e5
movq %r12, %rax
shlq $0x5, %rax
leaq 0x48(%rsp), %r14
movq %r14, 0x38(%rsp)
movq (%rbp,%rax), %rsi
movq 0x8(%rbp,%rax), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0x392e
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x3738
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x265a
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21a0
incq %r12
movq (%rsp), %rax
movq (%rax), %rbp
movq 0x8(%rax), %r13
subq %rbp, %r13
sarq $0x5, %r13
cmpq %r12, %r13
ja 0x25b6
jmp 0x267e
sarq $0x5, %r13
movq %rbp, 0x60(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x18(%rsp), %r14
movl $0x18, %edi
callq 0x2030
movq %rax, %rbx
movq %r14, %rax
subq 0x30(%rsp), %rax
movq %rax, %r14
shlq $0x1b, %rax
movq %rax, %rcx
sarq $0x1e, %rcx
testq %rax, %rax
movq $-0x1, %r15
cmovnsq %rcx, %r15
movq %r15, %rdi
callq 0x2030
movq %rax, (%rbx)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x8(%rbx)
movl $0x4, %edi
callq 0x2030
shrq $0x5, %r14
movq %rbx, 0x58(%rsp)
movq %rax, 0x10(%rbx)
movl %r14d, (%rax)
movq %r14, 0x28(%rsp)
testl %r14d, %r14d
jle 0x2835
movq 0x58(%rsp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x8(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rax, 0x80(%rsp)
subq %rcx, %rax
sarq $0x5, %rax
cmpq $0x1, %rax
adcq $0x0, %rax
movq %rax, 0x78(%rsp)
movq 0x28(%rsp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, 0x28(%rsp)
movq %rcx, 0x8(%rsp)
leaq 0x8(%rcx), %rax
movq %rax, 0x70(%rsp)
addq $0x8, 0x60(%rsp)
xorl %r12d, %r12d
movq (%rsp), %rax
xorl %ecx, %ecx
movl %ecx, (%rax,%r12,4)
movq 0x68(%rsp), %rax
movl %ecx, (%rax,%r12,4)
movq 0x80(%rsp), %rax
cmpq 0x8(%rsp), %rax
je 0x27d5
movq %r12, %rax
shlq $0x5, %rax
movq 0x30(%rsp), %rcx
leaq (%rcx,%rax), %rbp
movq 0x8(%rcx,%rax), %rbx
movq 0x78(%rsp), %r15
movq 0x70(%rsp), %r14
cmpq (%r14), %rbx
jne 0x27cc
testq %rbx, %rbx
je 0x27c4
movq -0x8(%r14), %rsi
movq (%rbp), %rdi
movq %rbx, %rdx
callq 0x21b0
testl %eax, %eax
jne 0x27cc
movq (%rsp), %rax
incl (%rax,%r12,4)
addq $0x20, %r14
decq %r15
jne 0x27a6
testq %r13, %r13
je 0x2827
movq %r12, %rax
shlq $0x5, %rax
movq 0x30(%rsp), %rcx
leaq (%rcx,%rax), %rbp
movq 0x8(%rcx,%rax), %rbx
movq %r13, %r15
movq 0x60(%rsp), %r14
cmpq (%r14), %rbx
jne 0x281e
testq %rbx, %rbx
je 0x2815
movq -0x8(%r14), %rsi
movq (%rbp), %rdi
movq %rbx, %rdx
callq 0x21b0
testl %eax, %eax
jne 0x281e
movq 0x68(%rsp), %rax
incl (%rax,%r12,4)
addq $0x20, %r14
decq %r15
jne 0x27f7
incq %r12
cmpq 0x28(%rsp), %r12
jne 0x2765
leaq 0x10(%rsp), %rdi
callq 0x3776
movq 0x58(%rsp), %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x285c
jmp 0x285c
jmp 0x2861
movq %rax, %rbx
jmp 0x287b
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x287b
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x10(%rsp), %rdi
callq 0x3776
movq %rbx, %rdi
callq 0x2260