// File: /workspace/github_cpp_makefile_star2_O2/BGI-Qingdao[P]metaSLR/classify.cpp
// Function: load_kmers(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
void load_kmers(const std::string & file,int index){
    assert( g_kmers.size() == index );
    g_kmers.push_back(std::unordered_set<Kmer>());
    std::ifstream ifs(file);
    std::string line;
    int total_kmer = 0 ;
    if(index==0){
        std::getline(ifs,line);
        g_K = line.size();
        Kmer::InitFilter(g_K);
        g_kmers[index].insert(Kmer::str2Kmer(BaseStr::str2BaseStr(line)));
        total_kmer++;
    }
    while(!std::getline(ifs,line).eof()){
        g_kmers[index].insert(Kmer::str2Kmer(BaseStr::str2BaseStr(line)));
        total_kmer++;
    }
    std::cerr<<"Recorded "<<total_kmer<<" haplotype "<<index<<" specific "<<g_K<<"-mers\n"; 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq 0xace1(%rip), %rax      # 0xe330
subq 0xacd2(%rip), %rax      # 0xe328
pushq $0x38
popq %rcx
movq %rax, -0x38(%rbp)
cqto
idivq %rcx
movslq %esi, %rcx
cmpq %rcx, %rax
jne 0x383e
movl %esi, %r14d
movq %rdi, %rbx
leaq -0x258(%rbp), %rax
andq $0x0, -0x10(%rax)
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
leaq 0xac83(%rip), %rdi      # 0xe328
leaq -0x288(%rbp), %rsi
callq 0x7e90
leaq -0x288(%rbp), %rdi
callq 0x567c
leaq -0x288(%rbp), %rdi
pushq $0x8
popq %rdx
movq %rbx, %rsi
callq 0x33b0
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorl %r15d, %r15d
testl %r14d, %r14d
jne 0x3746
leaq -0x288(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x3070
movl -0x78(%rbp), %edi
movl %edi, 0xac40(%rip)      # 0xe340
callq 0x4c66
movq 0xac1c(%rip), %rbx      # 0xe328
addq -0x38(%rbp), %rbx
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x4d56
leaq -0x50(%rbp), %rdi
callq 0x4c8e
leaq -0x60(%rbp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x812c
leaq -0x50(%rbp), %rdi
callq 0x7e2e
pushq $0x1
popq %r15
movl %r14d, -0x2c(%rbp)
leaq -0x80(%rbp), %r13
leaq -0x50(%rbp), %rbx
leaq -0x60(%rbp), %r14
leaq -0x288(%rbp), %rdi
movq %r13, %rsi
callq 0x3070
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x2, 0x20(%rax,%rcx)
jne 0x37b1
movq 0xabae(%rip), %r12      # 0xe328
addq -0x38(%rbp), %r12
movq %rbx, %rdi
movq %r13, %rsi
callq 0x4d56
movq %rbx, %rdi
callq 0x4c8e
movq %rax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movq %r12, %rdi
movq %r14, %rsi
callq 0x812c
movq %rbx, %rdi
callq 0x7e2e
incl %r15d
jmp 0x3756
movq 0xa838(%rip), %rdi      # 0xdff0
leaq 0x5894(%rip), %rsi      # 0x9053
callq 0x3240
movl -0x2c(%rbp), %ebx
movq %rax, %rdi
movl %r15d, %esi
callq 0x3420
leaq 0x5884(%rip), %rsi      # 0x905d
movq %rax, %rdi
callq 0x3240
movq %rax, %rdi
movl %ebx, %esi
callq 0x3420
leaq 0x5877(%rip), %rsi      # 0x9069
movq %rax, %rdi
callq 0x3240
movl 0xab40(%rip), %esi      # 0xe340
movq %rax, %rdi
callq 0x3420
leaq 0x5865(%rip), %rsi      # 0x9074
movq %rax, %rdi
callq 0x3240
leaq -0x80(%rbp), %rdi
callq 0x3130
leaq -0x288(%rbp), %rdi
callq 0x3080
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x57bf(%rip), %rdi      # 0x9004
leaq 0x57d0(%rip), %rsi      # 0x901c
leaq 0x57d6(%rip), %rcx      # 0x9029
pushq $0x1d
popq %rdx
callq 0x3190
jmp 0x3874
jmp 0x3879
movq %rax, %rbx
leaq -0x288(%rbp), %rdi
callq 0x567c
jmp 0x389a
jmp 0x3874
jmp 0x3874
movq %rax, %rbx
jmp 0x3885
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x7e2e
leaq -0x80(%rbp), %rdi
callq 0x3130
leaq -0x288(%rbp), %rdi
callq 0x3080
movq %rbx, %rdi
callq 0x3440