// File: /workspace/github_cpp_makefile_star2_O3/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 $0x98, %rsp
movq %rsi, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq (%rdi), %r12
movq %rdi, 0x38(%rsp)
movq 0x8(%rdi), %rcx
cmpq %r12, %rcx
je 0x25cb
leaq 0x28(%rsp), %rbp
xorl %ebx, %ebx
movq 0x40(%rsp), %r15
movq 0x48(%rsp), %r14
subq %r15, %r14
je 0x254a
movq %rcx, 0x8(%rsp)
sarq $0x5, %r14
movq %rbx, %rax
shlq $0x5, %rax
leaq (%r12,%rax), %rbp
movq 0x8(%r12,%rax), %r13
cmpq $0x1, %r14
adcq $0x0, %r14
addq $0x8, %r15
cmpq (%r15), %r13
jne 0x253a
testq %r13, %r13
je 0x25ab
movq -0x8(%r15), %rsi
movq (%rbp), %rdi
movq %r13, %rdx
callq 0x21b0
testl %eax, %eax
je 0x25ab
addq $0x20, %r15
decq %r14
jne 0x2518
leaq 0x28(%rsp), %rbp
jmp 0x2556
movq %rbx, %rax
shlq $0x5, %rax
movq 0x8(%r12,%rax), %r13
movq %rbx, %rax
shlq $0x5, %rax
movq %rbp, 0x18(%rsp)
movq (%r12,%rax), %rsi
addq %rsi, %r13
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %r13, %rdx
callq 0x3a58
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x3860
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0x259d
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x38(%rsp), %rax
movq (%rax), %r12
movq 0x8(%rax), %rcx
jmp 0x25b5
leaq 0x28(%rsp), %rbp
movq 0x8(%rsp), %rcx
incq %rbx
movq %rcx, %rax
subq %r12, %rax
sarq $0x5, %rax
cmpq %rbx, %rax
ja 0x24e4
movq 0x10(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rdx
movq %rdx, %rax
subq %rcx, %rax
je 0x26e6
leaq 0x28(%rsp), %r15
xorl %ebx, %ebx
leaq 0x18(%rsp), %r12
movq 0x40(%rsp), %rbp
movq 0x48(%rsp), %r14
subq %rbp, %r14
je 0x2660
movq %rdx, 0x8(%rsp)
sarq $0x5, %r14
movq %rbx, %rax
shlq $0x5, %rax
leaq (%rcx,%rax), %r15
movq %rcx, %r12
movq 0x8(%rcx,%rax), %r13
cmpq $0x1, %r14
adcq $0x0, %r14
addq $0x8, %rbp
cmpq (%rbp), %r13
jne 0x2648
testq %r13, %r13
je 0x26bc
movq -0x8(%rbp), %rsi
movq (%r15), %rdi
movq %r13, %rdx
callq 0x21b0
testl %eax, %eax
je 0x26bc
addq $0x20, %rbp
decq %r14
jne 0x2626
movq %r12, %rcx
leaq 0x28(%rsp), %r15
leaq 0x18(%rsp), %r12
jmp 0x266c
movq %rbx, %rax
shlq $0x5, %rax
movq 0x8(%rcx,%rax), %r13
movq %rbx, %rax
shlq $0x5, %rax
movq %r15, 0x18(%rsp)
movq (%rcx,%rax), %rsi
addq %rsi, %r13
movq %r12, %rdi
movq %r13, %rdx
callq 0x3a58
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x3860
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x26ae
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x10(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rdx
jmp 0x26ce
movq %r12, %rcx
leaq 0x28(%rsp), %r15
leaq 0x18(%rsp), %r12
movq 0x8(%rsp), %rdx
incq %rbx
movq %rdx, %rax
subq %rcx, %rax
sarq $0x5, %rax
cmpq %rbx, %rax
ja 0x25ef
jmp 0x26ea
sarq $0x5, %rax
movq %rax, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x48(%rsp), %r14
movl $0x18, %edi
callq 0x2030
movq %rax, %rbx
movq %r14, %rax
subq 0x60(%rsp), %rax
movq %rax, %r14
shlq $0x1b, %rax
movq %rax, %rcx
sarq $0x1e, %rcx
testq %rax, %rax
movq $-0x1, %r12
cmovnsq %rcx, %r12
movq %r12, %rdi
callq 0x2030
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, (%rbx)
movq %r12, %rdi
callq 0x2030
movq %rax, %r15
movq %rax, 0x8(%rbx)
movl $0x4, %edi
callq 0x2030
shrq $0x5, %r14
movq %rbx, 0x78(%rsp)
movq %rax, 0x10(%rbx)
movl %r14d, (%rax)
movq %r14, 0x58(%rsp)
testl %r14d, %r14d
jle 0x28c4
movq 0x38(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rax, 0x90(%rsp)
subq %rcx, %rax
sarq $0x5, %rax
cmpq $0x1, %rax
adcq $0x0, %rax
movq %rax, 0x88(%rsp)
movq 0x58(%rsp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, 0x58(%rsp)
movq %rcx, 0x38(%rsp)
leaq 0x8(%rcx), %rax
movq %rax, 0x80(%rsp)
addq $0x8, 0x68(%rsp)
xorl %r14d, %r14d
movq %r15, 0x10(%rsp)
movq 0x8(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, (%rax,%r14,4)
movl %ecx, (%r15,%r14,4)
movq 0x90(%rsp), %rax
cmpq 0x38(%rsp), %rax
je 0x2853
movq %r14, %rax
shlq $0x5, %rax
movq 0x60(%rsp), %rcx
leaq (%rcx,%rax), %rbp
movq 0x8(%rcx,%rax), %rbx
xorl %r15d, %r15d
movq 0x88(%rsp), %r12
movq 0x80(%rsp), %r13
cmpq (%r13), %rbx
jne 0x284a
testq %rbx, %rbx
je 0x283e
movq -0x8(%r13), %rsi
movq (%rbp), %rdi
movq %rbx, %rdx
callq 0x21b0
testl %eax, %eax
jne 0x284a
incl %r15d
movq 0x8(%rsp), %rax
movl %r15d, (%rax,%r14,4)
addq $0x20, %r13
decq %r12
jne 0x281f
cmpq $0x0, 0x70(%rsp)
je 0x28b1
movq %r14, %rax
shlq $0x5, %rax
movq 0x60(%rsp), %rcx
leaq (%rcx,%rax), %rbp
movq 0x8(%rcx,%rax), %rbx
xorl %r15d, %r15d
movq 0x70(%rsp), %r12
movq 0x68(%rsp), %r13
cmpq (%r13), %rbx
jne 0x28a8
testq %rbx, %rbx
je 0x289c
movq -0x8(%r13), %rsi
movq (%rbp), %rdi
movq %rbx, %rdx
callq 0x21b0
testl %eax, %eax
jne 0x28a8
incl %r15d
movq 0x10(%rsp), %rax
movl %r15d, (%rax,%r14,4)
addq $0x20, %r13
decq %r12
jne 0x287d
incq %r14
cmpq 0x58(%rsp), %r14
movq 0x10(%rsp), %r15
jne 0x27d9
leaq 0x40(%rsp), %rdi
callq 0x389e
movq 0x78(%rsp), %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x28f8
jmp 0x28f8
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
jne 0x290a
jmp 0x2917
movq %rax, %rbx
jmp 0x2917
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2917
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x40(%rsp), %rdi
callq 0x389e
movq %rbx, %rdi
callq 0x2260