// File: /workspace/github_cpp_makefile_star2_O3/aalto-speech[P]ftk/src/defs.hh
// Function: find_short_factors(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, double, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, double>>> const&, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, unsigned int, bool)
static void find_short_factors(const std::map<std::string, flt_type> &vocab,
                               std::set<std::string> &short_factors,
                               unsigned int min_removal_length,
                               bool utf8)
{
    for (auto it = vocab.cbegin(); it != vocab.end(); ++it) {
        std::vector<unsigned int> char_positions;
        get_character_positions(it->first, char_positions, utf8);
        if (char_positions.size()-1 < min_removal_length)
            short_factors.insert(it->first);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %edx, -0x54(%rbp)
movq %rsi, -0x80(%rbp)
movq %rdi, %r15
movq 0x18(%rdi), %r12
addq $0x8, %r15
cmpq %r15, %r12
je 0x671f
leaq -0x50(%rbp), %r13
leaq -0x2c(%rbp), %r14
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
leaq 0x20(%r12), %rbx
cmpb $0x0, -0x54(%rbp)
je 0x6652
movl $0x0, -0x2c(%rbp)
movq %r13, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x6a42
movl $0x0, -0x2c(%rbp)
movq 0x28(%r12), %rax
testq %rax, %rax
je 0x66d9
xorl %ecx, %ecx
movq (%rbx), %rdx
movb (%rdx,%rcx), %sil
movl $0x1, %edx
testb %sil, %sil
jns 0x661a
movl $0x4, %edx
cmpb $-0x11, %sil
ja 0x661a
cmpb $-0x20, %sil
movl $0x2, %edx
sbbl $-0x1, %edx
addl %ecx, %edx
movl %edx, -0x2c(%rbp)
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x6635
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x6645
movq %r13, %rdi
movq %r14, %rdx
callq 0x6b7a
movq 0x28(%r12), %rax
movl -0x2c(%rbp), %ecx
cmpq %rcx, %rax
ja 0x65f2
jmp 0x66d9
leaq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
movq 0x20(%r12), %rsi
movq 0x28(%r12), %rdx
addq %rsi, %rdx
leaq -0x78(%rbp), %rdi
callq 0x79b0
movq -0x50(%rbp), %rax
cmpq %rax, -0x48(%rbp)
je 0x667e
movq %rax, -0x48(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x70(%rbp), %rax
cmpq $-0x1, %rax
je 0x66c7
xorl %ecx, %ecx
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x66a7
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x66b6
movq %r13, %rdi
movq %r14, %rdx
callq 0x6b7a
movq -0x70(%rbp), %rax
movl -0x2c(%rbp), %ecx
incl %ecx
movl %ecx, -0x2c(%rbp)
leaq 0x1(%rax), %rdx
cmpq %rcx, %rdx
ja 0x6691
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x66d9
callq 0x4350
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rax
subq %rdi, %rax
sarq $0x2, %rax
decq %rax
cmpq $0x1, %rax
ja 0x6701
movq -0x80(%rbp), %rdi
movq %rbx, %rsi
callq 0x6c4e
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x670b
callq 0x4350
movq %r12, %rdi
callq 0x4410
movq %rax, %r12
cmpq %r15, %rax
jne 0x65a9
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6730
movq %rax, %rbx
jmp 0x674a
movq %rax, %rbx
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x674a
callq 0x4350
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x6758
callq 0x4350
movq %rbx, %rdi
callq 0x4650