// File: /workspace/github_cpp_makefile_star2_O3/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 $0x158, %rsp            # imm = 0x158
movq %rsi, %rbx
movl %edi, %ebp
leaq 0xd0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x13af(%rip), %rsi      # 0x4046
leaq 0x13b5(%rip), %rdx      # 0x4053
leaq 0xc0(%rsp), %rdi
callq 0x3db4
leaq 0xb0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1396(%rip), %rsi      # 0x4054
leaq 0x139c(%rip), %rdx      # 0x4061
leaq 0xa0(%rsp), %rdi
callq 0x3db4
leaq 0x90(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x70(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
cmpl $0x4, %ebp
jne 0x2d87
movq 0x8(%rbx), %rsi
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x38fc
leaq 0x134c(%rip), %rsi      # 0x4062
movq %rsp, %r14
movq %r14, %rdi
callq 0x2080
movl %eax, %ebp
movq (%r14), %rdi
leaq 0x10(%rsp), %r13
cmpq %r13, %rdi
je 0x2d3d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
testl %ebp, %ebp
je 0x3222
movq 0x8(%rbx), %rsi
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x38fc
leaq 0x134a(%rip), %rsi      # 0x40a7
movq %rsp, %r14
movq %r14, %rdi
callq 0x2080
movl %eax, %ebp
movq (%r14), %rdi
cmpq %r13, %rdi
je 0x2d7f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
testl %ebp, %ebp
je 0x3281
leaq 0x131c(%rip), %rsi      # 0x40aa
leaq 0x20(%rsp), %rdi
leaq 0xc0(%rsp), %rdx
callq 0x3939
leaq 0x12da(%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 0x2dd7
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x2de0
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 0x2e1f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x30(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x2e3a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x1269(%rip), %rsi      # 0x40aa
leaq 0x20(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x3939
leaq 0x123a(%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 0x2e85
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x2e8e
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 0x60(%rsp), %rdi
movq %rbx, %rsi
callq 0x21e0
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x2eca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x2ee1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x80(%rsp), %rdi
callq 0x2160
movq 0x60(%rsp), %rdi
callq 0x2160
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x117c(%rip), %rsi      # 0x4084
leaq 0x1184(%rip), %rdx      # 0x4093
movq %rsp, %rdi
callq 0x3db4
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x2929
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x2f3a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0x1150(%rip), %rsi      # 0x4097
leaq 0x1158(%rip), %rdx      # 0x40a6
callq 0x3db4
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq 0x2929
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x2f76
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x140(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x39c2
leaq 0xe0(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x2a88
movq 0x30(%rsp), %rax
leaq 0xe0(%rsp), %rbx
movapd (%rbx), %xmm0
movq 0x10(%rbx), %rcx
movq %rcx, 0x30(%rsp)
movapd 0x20(%rsp), %xmm1
movapd %xmm0, 0x20(%rsp)
movq %rsp, %rdi
movapd %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorpd %xmm0, %xmm0
movapd %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x389e
movq %rbx, %rdi
callq 0x389e
leaq 0x140(%rsp), %rdi
callq 0x389e
leaq 0x128(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x39c2
leaq 0xe0(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x2a88
movq 0x50(%rsp), %rax
leaq 0xe0(%rsp), %rbx
movapd (%rbx), %xmm0
movq 0x10(%rbx), %rcx
movq %rcx, 0x50(%rsp)
movapd 0x40(%rsp), %xmm1
movapd %xmm0, 0x40(%rsp)
movq %rsp, %rdi
movapd %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorpd %xmm0, %xmm0
movapd %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x389e
movq %rbx, %rdi
callq 0x389e
leaq 0x128(%rsp), %rdi
callq 0x389e
leaq 0x110(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x39c2
leaq 0xf8(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x39c2
leaq 0x110(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0x24a1
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0x389e
leaq 0x110(%rsp), %rdi
callq 0x389e
movq 0x10(%rbx), %rax
movl (%rax), %edi
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x23dc
movsd 0xf1e(%rip), %xmm1      # 0x4008
ucomisd %xmm0, %xmm1
jae 0x3123
movsd 0xf18(%rip), %xmm1      # 0x4010
ucomisd %xmm0, %xmm1
jae 0x3131
movsd 0xf12(%rip), %xmm1      # 0x4018
ucomisd %xmm0, %xmm1
leaq 0xfd1(%rip), %rax       # 0x40e2
leaq 0xfba(%rip), %rsi       # 0x40d2
cmovbq %rax, %rsi
movl $0xf, %edx
jmp 0x313d
movl $0xc, %edx
leaq 0xf96(%rip), %rsi       # 0x40c5
jmp 0x313d
movl $0x9, %edx
leaq 0xf8b(%rip), %rsi       # 0x40c8
movq 0x2e8c(%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 0x2e66(%rip), %rdi      # 0x5fd0
callq 0x2040
movq %rax, %rdi
callq 0x2100
leaq 0x40(%rsp), %rdi
callq 0x389e
leaq 0x20(%rsp), %rdi
callq 0x389e
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x31a7
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x31cc
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x31f1
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x320e
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x21a0
xorl %eax, %eax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rbx), %rsi
leaq 0x40(%rsp), %rdi
leaq 0xe0(%rsp), %rdx
callq 0x38fc
leaq 0xe26(%rip), %rcx       # 0x4065
leaq 0x40(%rsp), %rdi
movl $0x1b, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x21c0
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x332f
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x3338
movq 0x10(%rbx), %r14
leaq 0xc0(%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 0xdc6(%rip), %rsi       # 0x40aa
leaq 0x20(%rsp), %rdi
leaq 0xc0(%rsp), %rdx
callq 0x3939
leaq 0xd84(%rip), %rsi       # 0x4081
leaq 0x20(%rsp), %rdi
callq 0x2290
movq %r13, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3517
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x3521
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xd26(%rip), %rsi       # 0x4081
callq 0x2290
movq %r13, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3381
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x338b
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %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 %r13, %rdi
je 0x33ca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x33e1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x50(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x33fc
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x18(%rbx), %rsi
leaq 0x40(%rsp), %rdi
leaq 0xe0(%rsp), %rdx
callq 0x38fc
leaq 0xc4c(%rip), %rcx       # 0x4065
leaq 0x40(%rsp), %rdi
movl $0x1b, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x21c0
movq %r15, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3450
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x3459
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xc18(%rip), %rsi       # 0x4094
callq 0x2290
movq %r13, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x34a2
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x34ac
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rsp, %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x60(%rsp), %rdi
movq %rbx, %rsi
callq 0x21e0
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x34e8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x34ff
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x2ee1
movq 0x50(%rsp), %rsi
jmp 0x2ed9
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
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 %r13, %rdi
je 0x3560
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x30(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x357b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0xb28(%rip), %rsi       # 0x40aa
leaq 0x20(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x3939
leaq 0xaf9(%rip), %rsi       # 0x4094
leaq 0x20(%rsp), %rdi
callq 0x2290
movq %r13, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x35c6
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x35d0
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rsp, %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x60(%rsp), %rdi
movq %rbx, %rsi
callq 0x21e0
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x360c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
jne 0x2ed4
jmp 0x2ee1
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
jne 0x36ff
jmp 0x37d4
jmp 0x37b5
jmp 0x36ea
jmp 0x37b5
movq %r12, %rbp
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x3669
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x3669
movq %r12, %rbp
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
jne 0x36b4
jmp 0x37d4
jmp 0x37b2
movq %r12, %rbp
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x36a2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x36a2
movq %r12, %rbp
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37d4
movq 0x50(%rsp), %rsi
jmp 0x379b
jmp 0x37b2
jmp 0x37b2
jmp 0x37b2
movq %r12, %rbp
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
jne 0x36ff
jmp 0x37d4
jmp 0x37b2
movq %r12, %rbp
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37d4
movq 0x30(%rsp), %rsi
jmp 0x379b
jmp 0x37b2
movq %r12, %rbp
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0x389e
jmp 0x3729
movq %r12, %rbp
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
jmp 0x3758
jmp 0x37ba
movq %r12, %rbp
movq %rax, %rbx
leaq 0x128(%rsp), %rdi
jmp 0x3758
jmp 0x37ba
movq %r12, %rbp
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x389e
jmp 0x37c0
jmp 0x37ba
movq %r12, %rbp
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x37ca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x37ca
movq %r12, %rbp
movq %rax, %rbx
jmp 0x37ca
movq %r12, %rbp
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x37d4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x37d4
jmp 0x37b2
movq %r12, %rbp
movq %rax, %rbx
jmp 0x383a
movq %r12, %rbp
movq %rax, %rbx
jmp 0x37d4
movq %r12, %rbp
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x389e
leaq 0x20(%rsp), %rdi
callq 0x389e
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x37f0
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x3815
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x383a
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0xc0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3857
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x2260
nop