// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x150, %rsp            # imm = 0x150
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x16d0(%rip), %rsi      # 0x4046
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rdx
callq 0x3036
leaq 0x16c2(%rip), %rsi      # 0x4054
leaq 0xb0(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x3036
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0xa0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
xorl %edx, %edx
movb %dl, (%rax)
movb %dl, (%rcx)
cmpl $0x4, %ebp
jne 0x2bcf
movq 0x8(%rbx), %rsi
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x3036
leaq 0x1673(%rip), %rsi      # 0x4062
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x3071
movl %eax, %ebp
movq %r14, %rdi
callq 0x20f0
testb %bpl, %bpl
je 0x2aec
movq 0x10(%rbx), %rsi
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x3036
leaq 0x163c(%rip), %rsi      # 0x4065
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x309d
leaq 0x1642(%rip), %rdx      # 0x4081
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x307e
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %r14
movq %r14, %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x20f0
leaq 0x10(%rsp), %rdi
callq 0x20f0
leaq 0x50(%rsp), %rdi
callq 0x20f0
movq 0x18(%rbx), %rsi
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x3036
leaq 0x15cf(%rip), %rsi      # 0x4065
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x309d
leaq 0x15e8(%rip), %rdx      # 0x4094
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x307e
leaq 0x90(%rsp), %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x20f0
leaq 0x10(%rsp), %rdi
callq 0x20f0
leaq 0x50(%rsp), %rdi
jmp 0x2c73
movq 0x8(%rbx), %rsi
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x3036
leaq 0x15a1(%rip), %rsi      # 0x40a7
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x3071
movl %eax, %ebp
movq %r14, %rdi
callq 0x20f0
testb %bpl, %bpl
je 0x2bcf
movq 0x10(%rbx), %rsi
leaq 0xd0(%rsp), %rdi
callq 0x2290
movq 0x18(%rbx), %rsi
leaq 0xb0(%rsp), %rdi
callq 0x2290
leaq 0x155b(%rip), %rsi      # 0x40aa
leaq 0x10(%rsp), %rdi
leaq 0xd0(%rsp), %rdx
callq 0x30c1
leaq 0x1519(%rip), %rdx      # 0x4081
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x307e
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x20f0
leaq 0x10(%rsp), %rdi
callq 0x20f0
leaq 0x1508(%rip), %rsi      # 0x40aa
leaq 0x10(%rsp), %rdi
leaq 0xb0(%rsp), %rdx
callq 0x30c1
leaq 0x14d9(%rip), %rdx      # 0x4094
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x307e
jmp 0x2c51
leaq 0x14d4(%rip), %rsi      # 0x40aa
leaq 0x10(%rsp), %rdi
leaq 0xd0(%rsp), %rdx
callq 0x30c1
leaq 0x1492(%rip), %rdx      # 0x4081
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x307e
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x20f0
leaq 0x10(%rsp), %rdi
callq 0x20f0
leaq 0x1481(%rip), %rsi      # 0x40aa
leaq 0x10(%rsp), %rdi
leaq 0xb0(%rsp), %rdx
callq 0x30c1
leaq 0x1452(%rip), %rdx      # 0x4094
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x307e
leaq 0x90(%rsp), %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x20f0
leaq 0x10(%rsp), %rdi
callq 0x20f0
movq 0x70(%rsp), %rdi
callq 0x2180
movq 0x90(%rsp), %rdi
callq 0x2180
leaq 0x13ee(%rip), %rsi      # 0x4084
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x3036
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x2716
leaq 0x30(%rsp), %rdi
callq 0x20f0
leaq 0x13d2(%rip), %rsi      # 0x4097
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x3036
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x2716
leaq 0x30(%rsp), %rdi
callq 0x20f0
leaq 0x138(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3138
leaq 0x30(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0x2834
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, %rsi
callq 0x3586
movq %rbx, %rdi
callq 0x300e
leaq 0x138(%rsp), %rdi
callq 0x300e
leaq 0x120(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x3138
leaq 0x30(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x2834
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, %rsi
callq 0x3586
movq %rbx, %rdi
callq 0x300e
leaq 0x120(%rsp), %rdi
callq 0x300e
leaq 0x108(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3138
leaq 0xf0(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x3138
leaq 0x108(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x2493
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x300e
leaq 0x108(%rsp), %rdi
callq 0x300e
movq 0x10(%rbx), %rax
movl (%rax), %edi
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x23dc
movsd 0x1215(%rip), %xmm1     # 0x4008
ucomisd %xmm0, %xmm1
jae 0x2e27
movsd 0x120f(%rip), %xmm1     # 0x4010
ucomisd %xmm0, %xmm1
jae 0x2e30
movsd 0x1209(%rip), %xmm1     # 0x4018
ucomisd %xmm0, %xmm1
leaq 0x12c8(%rip), %rax      # 0x40e2
leaq 0x12b1(%rip), %rsi      # 0x40d2
cmovbq %rax, %rsi
jmp 0x2e37
leaq 0x1297(%rip), %rsi      # 0x40c5
jmp 0x2e37
leaq 0x1291(%rip), %rsi      # 0x40c8
movq 0x3192(%rip), %rdi      # 0x5fd0
callq 0x21a0
movq %rax, %rdi
callq 0x2100
leaq 0x50(%rsp), %rdi
callq 0x300e
leaq 0x10(%rsp), %rdi
callq 0x300e
leaq 0x90(%rsp), %rdi
callq 0x20f0
leaq 0x70(%rsp), %rdi
callq 0x20f0
leaq 0xb0(%rsp), %rdi
callq 0x20f0
leaq 0xd0(%rsp), %rdi
callq 0x20f0
xorl %eax, %eax
addq $0x150, %rsp            # imm = 0x150
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x2ee7
jmp 0x2f7d
jmp 0x2ee7
jmp 0x2f7d
jmp 0x2eb5
jmp 0x2ec4
jmp 0x2f7d
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x20f0
jmp 0x2ec7
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
jmp 0x2f56
jmp 0x2f7d
jmp 0x2f7d
jmp 0x2f7d
jmp 0x2ee7
jmp 0x2f7d
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x2f56
jmp 0x2f7d
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x300e
jmp 0x2f0b
movq %rax, %rbx
leaq 0x108(%rsp), %rdi
jmp 0x2f31
jmp 0x2f64
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
jmp 0x2f31
jmp 0x2f64
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
callq 0x300e
jmp 0x2f67
jmp 0x2f64
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x20f0
jmp 0x2f71
movq %rax, %rbx
jmp 0x2f71
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x20f0
jmp 0x2f80
jmp 0x2f7d
movq %rax, %rbx
jmp 0x2fa4
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x300e
leaq 0x10(%rsp), %rdi
callq 0x300e
jmp 0x2f80
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x20f0
leaq 0x70(%rsp), %rdi
callq 0x20f0
leaq 0xb0(%rsp), %rdi
callq 0x20f0
leaq 0xd0(%rsp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x2260