// File: /workspace/github_cpp_makefile_star2_O2/BGI-Qingdao[P]metaSLR/classify.cpp
// Function: TestAll()
void TestAll(){
    assert(parseName("VSDSDS#XXX_xxx_s/1")=="XXX_xxx_s");
    Kmer::InitFilter(5);
    auto str1=BaseStr::str2BaseStr("AGCTC");
    int  t1[] = { '\000','\003','\001','\002','\001'};
    for( int i = 0 ; i <5 ; i++ ) assert(str1[i] == t1[i]);
    auto str2 = BaseStr::str2BaseStr("GAGCT");
    int  t2[] = {'\003','\000','\003','\001','\002'};
    for( int i = 0 ; i <5 ; i++ ) assert(str2[i] == t2[i]);
                         // 00 1101 1001
    assert(Kmer::str2Kmer(BaseStr::str2BaseStr("AGCTC")).low == 0xD9);
    assert(Kmer::str2Kmer(BaseStr::str2BaseStr("AGCTC")).high == 0);
    assert(Kmer::str2Kmer(BaseStr::str2BaseStr("GAGCT")).low == 0xD9);
    assert(Kmer::str2Kmer(BaseStr::str2BaseStr("GAGCT")).high == 0);
    auto kmers = Kmer::chopRead2Kmer(BaseStr::str2BaseStr("GAGCTA"));
    assert(kmers.size() == 2 );
    // GAGCT->AGCTC 00 1101 1001 -> 0xD9
    // AGCTA        00 1101 1000 -> 0xD8
    assert(kmers[0].high == 0 );
    assert(kmers[0].low == 0xD9 );
    assert(kmers[1].high == 0 );
    assert(kmers[1].low == 0xD8 );
    std::string k1 = BaseStr::BaseStr2Str(Kmer::ToBaseStr(kmers[0]));
    std::string k2 = BaseStr::BaseStr2Str(Kmer::ToBaseStr(kmers[1]));
    assert(k1 == "AGCTC");
    assert(k2 == "AGCTA");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0xa8, %rsp
leaq 0x4f73(%rip), %rsi      # 0x924d
leaq -0x48(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x3110
leaq -0x28(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x3bd4
leaq 0x4f62(%rip), %rsi      # 0x9260
leaq -0x28(%rbp), %rdi
callq 0x4dd9
testb %al, %al
je 0x4666
leaq -0x28(%rbp), %rdi
callq 0x3130
leaq -0x48(%rbp), %rdi
callq 0x3130
pushq $0x5
popq %rdi
callq 0x4c66
leaq 0x4f76(%rip), %rsi      # 0x92a6
leaq -0x28(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x3110
leaq -0x90(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x4d56
leaq -0x28(%rbp), %rdi
callq 0x3130
xorl %ecx, %ecx
movq -0x90(%rbp), %rax
leaq 0x52fa(%rip), %rdx      # 0x9660
cmpq $0x14, %rcx
je 0x439d
movsbl (%rax), %esi
leaq 0x4(%rcx), %rdi
incq %rax
cmpl %esi, (%rcx,%rdx)
movq %rdi, %rcx
je 0x4366
leaq 0x4f27(%rip), %rdi      # 0x92ac
leaq 0x4c90(%rip), %rsi      # 0x901c
leaq 0x4f04(%rip), %rcx      # 0x9297
movl $0x151, %edx            # imm = 0x151
callq 0x3190
leaq 0x4f19(%rip), %rsi      # 0x92bd
leaq -0x28(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x3110
leaq -0xa8(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x4d56
leaq -0x28(%rbp), %rdi
callq 0x3130
xorl %ecx, %ecx
movq -0xa8(%rbp), %rax
leaq 0x52a6(%rip), %rdx      # 0x9680
cmpq $0x14, %rcx
je 0x4411
movsbl (%rax), %esi
leaq 0x4(%rcx), %rdi
incq %rax
cmpl %esi, (%rcx,%rdx)
movq %rdi, %rcx
je 0x43da
leaq 0x4eca(%rip), %rdi      # 0x92c3
leaq 0x4c1c(%rip), %rsi      # 0x901c
leaq 0x4e90(%rip), %rcx      # 0x9297
movl $0x154, %edx            # imm = 0x154
callq 0x3190
leaq 0x4e8e(%rip), %rsi      # 0x92a6
leaq -0x28(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0x3110
leaq -0x48(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x4d56
leaq -0x48(%rbp), %rdi
callq 0x4c8e
cmpq $0xd9, %rdx
jne 0x4685
leaq -0x48(%rbp), %rdi
callq 0x7e2e
leaq -0x28(%rbp), %rdi
callq 0x3130
leaq 0x4e45(%rip), %rsi      # 0x92a6
leaq -0x28(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0x3110
leaq -0x48(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x4d56
leaq -0x48(%rbp), %rdi
callq 0x4c8e
testq %rax, %rax
jne 0x46a4
leaq -0x48(%rbp), %rdi
callq 0x7e2e
leaq -0x28(%rbp), %rdi
callq 0x3130
leaq 0x4e17(%rip), %rsi      # 0x92bd
leaq -0x28(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0x3110
leaq -0x48(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x4d56
leaq -0x48(%rbp), %rdi
callq 0x4c8e
cmpq $0xd9, %rdx
jne 0x46c3
leaq -0x48(%rbp), %rdi
callq 0x7e2e
leaq -0x28(%rbp), %rdi
callq 0x3130
leaq 0x4dce(%rip), %rsi      # 0x92bd
leaq -0x28(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0x3110
leaq -0x48(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x4d56
leaq -0x48(%rbp), %rdi
callq 0x4c8e
testq %rax, %rax
jne 0x46e2
leaq -0x48(%rbp), %rdi
callq 0x7e2e
leaq -0x28(%rbp), %rdi
callq 0x3130
leaq 0x4e84(%rip), %rsi      # 0x93b8
leaq -0x28(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x3110
leaq -0x48(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x4d56
leaq -0x60(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x533a
leaq -0x48(%rbp), %rdi
callq 0x7e2e
leaq -0x28(%rbp), %rdi
callq 0x3130
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rax
subq %rsi, %rax
cmpq $0x20, %rax
jne 0x4701
cmpq $0x0, (%rsi)
jne 0x4720
cmpq $0xd9, 0x8(%rsi)
jne 0x473f
cmpq $0x0, 0x10(%rsi)
jne 0x475e
cmpq $0xd8, 0x18(%rsi)
jne 0x477d
leaq -0x48(%rbp), %rdi
callq 0x55d2
leaq -0x28(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x5534
leaq -0x48(%rbp), %rdi
callq 0x7e2e
movq -0x60(%rbp), %rsi
addq $0x10, %rsi
leaq -0x78(%rbp), %rdi
callq 0x55d2
leaq -0x48(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x5534
leaq -0x78(%rbp), %rdi
callq 0x7e2e
leaq 0x4ca6(%rip), %rsi      # 0x92a6
leaq -0x28(%rbp), %rdi
callq 0x4dd9
testb %al, %al
je 0x479c
leaq 0x4da1(%rip), %rsi      # 0x93b9
leaq -0x48(%rbp), %rdi
callq 0x4dd9
testb %al, %al
je 0x47bb
leaq -0x48(%rbp), %rdi
callq 0x3130
leaq -0x28(%rbp), %rdi
callq 0x3130
leaq -0x60(%rbp), %rdi
callq 0x7e42
leaq -0xa8(%rbp), %rdi
callq 0x7e2e
leaq -0x90(%rbp), %rdi
callq 0x7e2e
addq $0xa8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x4bfd(%rip), %rdi      # 0x926a
leaq 0x49a8(%rip), %rsi      # 0x901c
leaq 0x4c1c(%rip), %rcx      # 0x9297
movl $0x14d, %edx            # imm = 0x14D
callq 0x3190
leaq 0x4c48(%rip), %rdi      # 0x92d4
leaq 0x4989(%rip), %rsi      # 0x901c
leaq 0x4bfd(%rip), %rcx      # 0x9297
movl $0x156, %edx            # imm = 0x156
callq 0x3190
leaq 0x4c63(%rip), %rdi      # 0x930e
leaq 0x496a(%rip), %rsi      # 0x901c
leaq 0x4bde(%rip), %rcx      # 0x9297
movl $0x157, %edx            # imm = 0x157
callq 0x3190
leaq 0x4c7c(%rip), %rdi      # 0x9346
leaq 0x494b(%rip), %rsi      # 0x901c
leaq 0x4bbf(%rip), %rcx      # 0x9297
movl $0x158, %edx            # imm = 0x158
callq 0x3190
leaq 0x4c97(%rip), %rdi      # 0x9380
leaq 0x492c(%rip), %rsi      # 0x901c
leaq 0x4ba0(%rip), %rcx      # 0x9297
movl $0x159, %edx            # imm = 0x159
callq 0x3190
leaq 0x4cb7(%rip), %rdi      # 0x93bf
leaq 0x490d(%rip), %rsi      # 0x901c
leaq 0x4b81(%rip), %rcx      # 0x9297
movl $0x15b, %edx            # imm = 0x15B
callq 0x3190
leaq 0x4caa(%rip), %rdi      # 0x93d1
leaq 0x48ee(%rip), %rsi      # 0x901c
leaq 0x4b62(%rip), %rcx      # 0x9297
movl $0x15e, %edx            # imm = 0x15E
callq 0x3190
leaq 0x4c9e(%rip), %rdi      # 0x93e4
leaq 0x48cf(%rip), %rsi      # 0x901c
leaq 0x4b43(%rip), %rcx      # 0x9297
movl $0x15f, %edx            # imm = 0x15F
callq 0x3190
leaq 0x4c94(%rip), %rdi      # 0x93f9
leaq 0x48b0(%rip), %rsi      # 0x901c
leaq 0x4b24(%rip), %rcx      # 0x9297
movl $0x160, %edx            # imm = 0x160
callq 0x3190
leaq 0x4c88(%rip), %rdi      # 0x940c
leaq 0x4891(%rip), %rsi      # 0x901c
leaq 0x4b05(%rip), %rcx      # 0x9297
movl $0x161, %edx            # imm = 0x161
callq 0x3190
leaq 0x4c7e(%rip), %rdi      # 0x9421
leaq 0x4872(%rip), %rsi      # 0x901c
leaq 0x4ae6(%rip), %rcx      # 0x9297
movl $0x164, %edx            # imm = 0x164
callq 0x3190
leaq 0x4c6d(%rip), %rdi      # 0x942f
leaq 0x4853(%rip), %rsi      # 0x901c
leaq 0x4ac7(%rip), %rcx      # 0x9297
movl $0x165, %edx            # imm = 0x165
callq 0x3190
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x7e2e
jmp 0x47eb
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x3130
jmp 0x4807
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x7e2e
jmp 0x4807
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x7e42
jmp 0x4849
jmp 0x482a
jmp 0x4838
jmp 0x4846
jmp 0x482a
jmp 0x4838
jmp 0x4846
jmp 0x482a
jmp 0x4838
jmp 0x4846
jmp 0x482a
jmp 0x4838
jmp 0x4846
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x7e2e
jmp 0x483b
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x3130
jmp 0x4849
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x7e2e
leaq -0x90(%rbp), %rdi
callq 0x7e2e
movq %rbx, %rdi
callq 0x3440
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x3130
jmp 0x4855
movq %rax, %rbx
jmp 0x4855
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
jmp 0x488e
jmp 0x4895
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x3130
jmp 0x4861
movq %rax, %rbx
jmp 0x4861