// File: /workspace/github_cpp_makefile_star2_O2/establishment[P]sandman/src/bin.cpp
// Function: ClosestOption(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string ClosestOption(const string& wrong_option) {
    int mn_distance = 1e9;
    string result = "";

    for (const string& option : all_options) {
        vector<string> small_words;
        string current_word = "";
        for (char itr : option) {
            if (itr == '-') {
                small_words.push_back(current_word);
                current_word = "";
            } else {
                current_word += itr;
            }
        }

        small_words.push_back(current_word);
        vector<int> perm;
        for (int i = 0; i < (int)small_words.size(); i += 1) {
            perm.push_back(i);
        }

        do {
            string new_option = "";
            for (auto itr : perm) {
                new_option += small_words[itr] + "-";
            }
            new_option.pop_back();
            auto current_distance = LevenshteinDistance(wrong_option, new_option);
            if (current_distance < mn_distance) {
                mn_distance = current_distance;
                result = option;
            }
        } while (next_permutation(perm.begin(), perm.end()));
    }

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %r12
leaq 0x1eaf5(%rip), %rsi     # 0x5b148
leaq 0x68(%rsp), %rdx
movq %rdi, 0x8(%rsp)
callq 0x40b24
movq 0x394ef(%rip), %r14     # 0x75b58
movl $0x3b9aca00, 0x4(%rsp)  # imm = 0x3B9ACA00
movq 0x394e8(%rip), %rax     # 0x75b60
movq %rax, 0x50(%rsp)
leaq 0x88(%rsp), %rbp
leaq 0xa8(%rsp), %rbx
leaq 0x1ff35(%rip), %r13     # 0x5c5c9
movq %r12, 0x48(%rsp)
cmpq 0x50(%rsp), %r14
je 0x3c842
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
andq $0x0, 0x40(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0x1ea8a(%rip), %rsi     # 0x5b148
movq %rbp, %rdx
callq 0x40b24
movq (%r14), %rax
movq %rax, 0x58(%rsp)
movq %r14, 0x60(%rsp)
movq 0x8(%r14), %r14
xorl %r12d, %r12d
cmpq %r12, %r14
leaq 0x68(%rsp), %rcx
je 0x3c722
movq 0x58(%rsp), %rax
movb (%rax,%r12), %al
cmpb $0x2d, %al
jne 0x3c712
leaq 0x30(%rsp), %rdi
movq %rcx, %rsi
movq %rcx, %r15
callq 0x413de
movq %r15, %rdi
leaq 0x1ea3d(%rip), %rsi     # 0x5b148
callq 0x378f0
jmp 0x3c71d
movsbl %al, %esi
movq %rcx, %rdi
callq 0x373a0
incq %r12
jmp 0x3c6da
leaq 0x30(%rsp), %rdi
movq %rcx, %rsi
callq 0x413de
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
xorl %eax, %eax
movq 0x48(%rsp), %r12
leaq 0x10(%rsp), %r14
movl %eax, 0x88(%rsp)
movq 0x38(%rsp), %rcx
subq 0x30(%rsp), %rcx
shrq $0x5, %rcx
cmpl %ecx, %eax
jge 0x3c778
movq %r14, %rdi
movq %rbp, %rsi
callq 0x41d56
movl 0x88(%rsp), %eax
incl %eax
jmp 0x3c749
movq %rbp, %rdi
leaq 0x1e9c6(%rip), %rsi     # 0x5b148
movq %rbx, %rdx
callq 0x40b24
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %r15
cmpq %r15, %r14
je 0x3c7c9
movslq (%r14), %rsi
shlq $0x5, %rsi
addq 0x30(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
callq 0x41d74
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x37910
movq %rbx, %rdi
callq 0x37958
addq $0x4, %r14
jmp 0x3c794
movq %rbp, %rdi
callq 0x37580
movq %r12, %rdi
movq %rbp, %rsi
callq 0x3c499
movq 0x60(%rsp), %r14
movl %eax, %r15d
cmpl 0x4(%rsp), %eax
jge 0x3c7fc
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x37250
movl %r15d, 0x4(%rsp)
movq %rbp, %rdi
callq 0x37958
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x588f3
testb %al, %al
jne 0x3c778
leaq 0x10(%rsp), %rdi
callq 0x58574
leaq 0x68(%rsp), %rdi
callq 0x37958
leaq 0x30(%rsp), %rdi
callq 0x41050
addq $0x20, %r14
jmp 0x3c699
movq 0x8(%rsp), %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3c869
movq %rax, %rbx
jmp 0x3c8a6
jmp 0x3c864
jmp 0x3c864
movq %rax, %rbx
jmp 0x3c892
movq %rax, %rbx
jmp 0x3c89c
jmp 0x3c870
movq %rax, %rbx
jmp 0x3c885
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x37958
leaq 0x88(%rsp), %rdi
callq 0x37958
leaq 0x10(%rsp), %rdi
callq 0x58574
leaq 0x68(%rsp), %rdi
callq 0x37958
leaq 0x30(%rsp), %rdi
callq 0x41050
movq 0x8(%rsp), %rdi
callq 0x37958
movq %rbx, %rdi
callq 0x377f0