// File: /workspace/github_cpp_makefile_star2_O1/matengyue[P]Similar_test_demo/./src/main_.cpp
// Function: main
int main(int argc, char **argv){
    string path_x = "../src/read_x";
    string path_y = "../src/read_y";
    string str_x;
    string str_y;

    if (argc == 4 && string(argv[1]) == "-w"){
        str_x = "python ../src/jiebaCutW.py " + string(argv[2]) + " > ../src/result_x";
        str_y = "python ../src/jiebaCutW.py " + string(argv[3]) + " > ../src/result_y";
    }
    else if (argc == 4 && string(argv[1]) == "-t"){
        path_x = argv[2];
        path_y = argv[3];
        str_x = "python ../src/jiebaCut.py " + path_x + " > ../src/result_x";
        str_y = "python ../src/jiebaCut.py " + path_y + " > ../src/result_y";
    }
    else {
        str_x = "python ../src/jiebaCut.py " + path_x + " > ../src/result_x";
        str_y = "python ../src/jiebaCut.py " + path_y + " > ../src/result_y";
    }

    system(str_x.c_str());
    system(str_y.c_str());
    
    vector<string> x = ReadAllLinesFromFile("../src/result_x");
    vector<string> y = ReadAllLinesFromFile("../src/result_y");

    x = deleteStopWords(x);
    y = deleteStopWords(y);

    int **a = vectorConstruct(x, y);
    double score = cosSimilar(a[2][0], a[0], a[1]);

    //cout << score << endl;

    if (score <= 0.31){
        cout << "不相关。" << endl;
    }
    else if (score <= 0.69){
        cout << "相关。" << endl;
    }
    else if (score <= 0.95){
        cout << "比较相似。" << endl;
    }
    else {
        cout << "非常相似。" << endl;
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rsi, %rbx
movl %edi, %ebp
leaq 0xf0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1476(%rip), %rsi      # 0x4046
leaq 0x147c(%rip), %rdx      # 0x4053
leaq 0xe0(%rsp), %rdi
callq 0x3cba
leaq 0xb0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x145d(%rip), %rsi      # 0x4054
leaq 0x1463(%rip), %rdx      # 0x4061
leaq 0xa0(%rsp), %rdi
callq 0x3cba
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
xorl %r14d, %r14d
movq %r14, -0x8(%rax)
movb %r14b, (%rax)
leaq 0xd0(%rsp), %r13
movq %r13, -0x10(%r13)
movq %r14, -0x8(%r13)
movb %r14b, (%r13)
cmpl $0x4, %ebp
jne 0x2c6a
movq 0x8(%rbx), %rsi
leaq 0x178(%rsp), %rdi
leaq 0x47(%rsp), %rdx
callq 0x37d2
leaq 0x140b(%rip), %rsi      # 0x4062
leaq 0x178(%rsp), %rdi
callq 0x2080
testl %eax, %eax
sete %r14b
cmpl $0x4, %ebp
jne 0x2c90
leaq 0x188(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2c90
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x21a0
testb %r14b, %r14b
je 0x2cf0
movq 0x10(%rbx), %rsi
leaq 0x20(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x37d2
leaq 0x13b6(%rip), %rcx      # 0x4065
leaq 0x20(%rsp), %rdi
movl $0x1b, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x21c0
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2e57
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x2e60
cmpl $0x4, %ebp
jne 0x2d21
movq 0x8(%rbx), %rsi
leaq 0x60(%rsp), %rdi
leaq 0x46(%rsp), %rdx
callq 0x37d2
leaq 0x1398(%rip), %rsi      # 0x40a7
leaq 0x60(%rsp), %rdi
callq 0x2080
testl %eax, %eax
sete %r14b
jmp 0x2d24
xorl %r14d, %r14d
cmpl $0x4, %ebp
jne 0x2d44
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2d44
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21a0
testb %r14b, %r14b
je 0x2e00
movq 0x10(%rbx), %r14
leaq 0xe0(%rsp), %r15
movq %r12, %rbp
movq 0x8(%r15), %r12
movq %r14, %rdi
callq 0x20d0
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %rbp, %r12
movq %r14, %rcx
movq %rax, %r8
callq 0x2210
movq 0x18(%rbx), %rbx
leaq 0xa0(%rsp), %r14
movq 0x8(%r14), %r15
movq %rbx, %rdi
callq 0x20d0
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x2210
leaq 0x12fa(%rip), %rsi      # 0x40aa
leaq 0x20(%rsp), %rdi
leaq 0xe0(%rsp), %rdx
callq 0x380f
leaq 0x12b8(%rip), %rsi      # 0x4081
leaq 0x20(%rsp), %rdi
callq 0x2290
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x30d7
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x30e0
leaq 0x12a3(%rip), %rsi      # 0x40aa
leaq 0x20(%rsp), %rdi
leaq 0xe0(%rsp), %rdx
callq 0x380f
leaq 0x1261(%rip), %rsi      # 0x4081
leaq 0x20(%rsp), %rdi
callq 0x2290
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3045
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x304e
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq %r12, %rbp
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x11fd(%rip), %rsi      # 0x4081
callq 0x2290
leaq 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2eb1
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x2ebb
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x60(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x80(%rsp), %rdi
movq %r14, %rsi
callq 0x21e0
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x2efc
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21a0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2f12
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x30(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x2f2d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x18(%rbx), %rsi
leaq 0x20(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x37d2
leaq 0x111e(%rip), %rcx      # 0x4065
leaq 0x20(%rsp), %rdi
movl $0x1b, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x21c0
movq %r15, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2f7c
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x2f85
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x10ee(%rip), %rsi      # 0x4094
callq 0x2290
movq %r12, 0x60(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2fce
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x2fd8
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x60(%rsp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xc0(%rsp), %rdi
movq %rbx, %rsi
callq 0x21e0
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x3019
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21a0
movq (%rsp), %rdi
cmpq %r15, %rdi
movq %rbp, %r12
je 0x3032
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
jne 0x31d7
jmp 0x31e4
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rsp, %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x80(%rsp), %rdi
movq %rbx, %rsi
callq 0x21e0
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x308d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x30(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x30a8
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0xffb(%rip), %rsi       # 0x40aa
leaq 0x20(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x380f
leaq 0xfcc(%rip), %rsi       # 0x4094
leaq 0x20(%rsp), %rdi
callq 0x2290
jmp 0x3164
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rsp, %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x80(%rsp), %rdi
movq %rbx, %rsi
callq 0x21e0
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x311f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x30(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x313a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0xf69(%rip), %rsi       # 0x40aa
leaq 0x20(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x380f
leaq 0xf3a(%rip), %rsi       # 0x4094
leaq 0x20(%rsp), %rdi
callq 0x2290
movq %r14, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3185
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x318e
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rsp, %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xc0(%rsp), %rdi
movq %rbx, %rsi
callq 0x21e0
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x31cd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x31e4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x80(%rsp), %rdi
callq 0x2160
movq 0xc0(%rsp), %rdi
callq 0x2160
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xe76(%rip), %rsi       # 0x4084
leaq 0xe7e(%rip), %rdx       # 0x4093
movq %rsp, %rdi
callq 0x3cba
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x288d
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x3240
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0xe4a(%rip), %rsi       # 0x4097
leaq 0xe52(%rip), %rdx       # 0x40a6
callq 0x3cba
leaq 0x48(%rsp), %rdi
movq %rsp, %rsi
callq 0x288d
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x327c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x148(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x3898
leaq 0x160(%rsp), %rdi
leaq 0x148(%rsp), %rsi
callq 0x29ec
xorpd %xmm0, %xmm0
movq %rsp, %rdi
movapd %xmm0, (%rdi)
movupd 0x20(%rsp), %xmm0
movq 0x30(%rsp), %rax
leaq 0x160(%rsp), %rbx
movups (%rbx), %xmm1
movups %xmm1, 0x20(%rsp)
movq 0x10(%rbx), %rcx
movq %rcx, 0x30(%rsp)
movapd (%rdi), %xmm1
movapd %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movupd %xmm1, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x3776
movq %rbx, %rdi
callq 0x3776
leaq 0x148(%rsp), %rdi
callq 0x3776
leaq 0x130(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x3898
leaq 0x160(%rsp), %rdi
leaq 0x130(%rsp), %rsi
callq 0x29ec
xorpd %xmm0, %xmm0
movq %rsp, %rdi
movapd %xmm0, (%rdi)
movupd 0x48(%rsp), %xmm0
movq 0x58(%rsp), %rax
leaq 0x160(%rsp), %rbx
movups (%rbx), %xmm1
movups %xmm1, 0x48(%rsp)
movq 0x10(%rbx), %rcx
movq %rcx, 0x58(%rsp)
movapd (%rdi), %xmm1
movapd %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movupd %xmm1, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x3776
movq %rbx, %rdi
callq 0x3776
leaq 0x130(%rsp), %rdi
callq 0x3776
leaq 0x118(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x3898
leaq 0x100(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x3898
leaq 0x118(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x24a1
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0x3776
leaq 0x118(%rsp), %rdi
callq 0x3776
movq 0x10(%rbx), %rax
movl (%rax), %edi
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x23dc
movsd 0xc0c(%rip), %xmm1      # 0x4008
ucomisd %xmm0, %xmm1
jae 0x3435
movsd 0xc06(%rip), %xmm1      # 0x4010
ucomisd %xmm0, %xmm1
jae 0x3443
movsd 0xc00(%rip), %xmm1      # 0x4018
ucomisd %xmm0, %xmm1
leaq 0xcbf(%rip), %rax       # 0x40e2
leaq 0xca8(%rip), %rsi       # 0x40d2
cmovbq %rax, %rsi
movl $0xf, %edx
jmp 0x344f
movl $0xc, %edx
leaq 0xc84(%rip), %rsi       # 0x40c5
jmp 0x344f
movl $0x9, %edx
leaq 0xc79(%rip), %rsi       # 0x40c8
movq 0x2b7a(%rip), %rbx      # 0x5fd0
movq %rbx, %rdi
callq 0x21d0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq 0x2b54(%rip), %rdi      # 0x5fd0
callq 0x2040
movq %rax, %rdi
callq 0x2100
leaq 0x48(%rsp), %rdi
callq 0x3776
leaq 0x20(%rsp), %rdi
callq 0x3776
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0x34ba
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x34df
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x3504
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0xe0(%rsp), %rdi
cmpq %r12, %rdi
je 0x3521
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x21a0
xorl %eax, %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x353f
jmp 0x368d
movq %r12, %rbp
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
jne 0x35d2
jmp 0x36ac
jmp 0x35bd
jmp 0x368a
jmp 0x368d
jmp 0x35ba
jmp 0x368a
jmp 0x368a
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x358b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x358b
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
jne 0x35d2
jmp 0x36ac
jmp 0x368d
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x35c0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x35c0
movq %r12, %rbp
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x36ac
movq 0x30(%rsp), %rsi
jmp 0x3673
jmp 0x368a
jmp 0x368a
movq %r12, %rbp
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0x3776
jmp 0x3601
movq %r12, %rbp
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
jmp 0x3630
jmp 0x3692
movq %r12, %rbp
movq %rax, %rbx
leaq 0x130(%rsp), %rdi
jmp 0x3630
jmp 0x3692
movq %r12, %rbp
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
callq 0x3776
jmp 0x3698
jmp 0x3692
movq %r12, %rbp
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x36a2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x36a2
movq %r12, %rbp
movq %rax, %rbx
jmp 0x36a2
movq %r12, %rbp
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x36ac
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x36ac
jmp 0x368a
movq %r12, %rbp
movq %rax, %rbx
jmp 0x3713
movq %r12, %rbp
movq %rax, %rbx
jmp 0x36ac
movq %r12, %rbp
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x3776
leaq 0x20(%rsp), %rdi
callq 0x3776
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0x36c9
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x36ee
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x3713
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0xe0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3730
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x2260