// File: /workspace/github_cpp_makefile_star2_O1/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 0x6731
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 0x65f9
movq -0x50(%rbp), %rax
cmpq %rax, -0x48(%rbp)
je 0x65d1
movq %rax, -0x48(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x667e
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x6689
leaq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
movq 0x20(%r12), %rsi
movq 0x28(%r12), %rdx
addq %rsi, %rdx
leaq -0x78(%rbp), %rdi
callq 0x79a6
movq -0x50(%rbp), %rax
cmpq %rax, -0x48(%rbp)
je 0x6625
movq %rax, -0x48(%rbp)
movl $0x0, -0x2c(%rbp)
cmpq $-0x1, -0x70(%rbp)
je 0x666a
xorl %eax, %eax
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x664b
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x6656
movq %r13, %rdi
movq %r14, %rdx
callq 0x6b82
movl -0x2c(%rbp), %eax
incl %eax
movl %eax, -0x2c(%rbp)
movq -0x70(%rbp), %rcx
incq %rcx
cmpq %rax, %rcx
ja 0x6635
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x66ee
callq 0x4350
jmp 0x66ee
movq %r13, %rdi
movq %r14, %rdx
callq 0x6a4a
movl $0x0, -0x2c(%rbp)
cmpq $0x0, 0x28(%r12)
je 0x66ee
xorl %eax, %eax
movq (%rbx), %rcx
movb (%rcx,%rax), %dl
movl $0x1, %ecx
testb %dl, %dl
jns 0x66be
movl $0x4, %ecx
cmpb $-0x11, %dl
ja 0x66be
cmpb $-0x20, %dl
movl $0x2, %ecx
sbbl $-0x1, %ecx
addl %eax, %ecx
movl %ecx, -0x2c(%rbp)
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x66d9
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x66e4
movq %r13, %rdi
movq %r14, %rdx
callq 0x6b82
movl -0x2c(%rbp), %eax
cmpq %rax, 0x28(%r12)
ja 0x669a
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
sarq $0x2, %rax
decq %rax
cmpq $0x1, %rax
ja 0x670f
movq -0x80(%rbp), %rdi
movq %rbx, %rsi
callq 0x6c56
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x671d
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 0x6742
movq %rax, %rbx
jmp 0x675c
movq %rax, %rbx
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x675c
callq 0x4350
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x676a
callq 0x4350
movq %rbx, %rdi
callq 0x4650