// File: /workspace/github_cpp_makefile_star2_O2/demon386[P]git-store/./libs/program_options/src/value_semantic.cpp
// Function: boost::program_options::ambiguous_option::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
void ambiguous_option::substitute_placeholders(const string& original_error_template) const
    {
        // For short forms, all alternatives must be identical, by
        //      definition, to the specified option, so we don't need to
        //      display alternatives
        if (m_option_style == command_line_style::allow_dash_for_short || 
            m_option_style == command_line_style::allow_slash_for_short)
        {
            error_with_option_name::substitute_placeholders(original_error_template);
            return;
        }


        string error_template  = original_error_template;
        // remove duplicates using std::set
        std::set<std::string>   alternatives_set (m_alternatives.begin(), m_alternatives.end());
        std::vector<std::string> alternatives_vec (alternatives_set.begin(), alternatives_set.end());

        error_template += " and matches ";
        // Being very cautious: should be > 1 alternative!
        if (alternatives_vec.size() > 1)
        {
            for (unsigned i = 0; i < alternatives_vec.size() - 1; ++i)
                error_template += "'%prefix%" + alternatives_vec[i] + "', ";
            error_template += "and ";
        }

        // there is a programming error if multiple options have the same name...
        if (m_alternatives.size() > 1 && alternatives_vec.size() == 1)
            error_template += "different versions of ";

        error_template += "'%prefix%" + alternatives_vec.back() + "'";


        // use inherited logic
        error_with_option_name::substitute_placeholders(error_template);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %rbx
movl 0x10(%rdi), %eax
cmpl $0x8, %eax
je 0x1d67c
cmpl $0x4, %eax
jne 0x1d695
movq %rbx, %rdi
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1d45a
leaq -0x60(%rbp), %rdi
callq 0xc660
movq 0xb8(%rbx), %rsi
movq 0xc0(%rbx), %rdx
leaq -0xd8(%rbp), %rdi
callq 0x1e208
leaq -0xd0(%rbp), %rdx
movq 0x10(%rdx), %rsi
leaq -0x40(%rbp), %rdi
leaq -0x88(%rbp), %rcx
callq 0x1e24c
leaq 0x11769(%rip), %rsi     # 0x2ee43
leaq -0x60(%rbp), %rdi
callq 0xc8e0
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rdx
movq %rdx, %rcx
subq %rax, %rcx
cmpq $0x21, %rcx
jb 0x1d797
movq %rbx, -0x68(%rbp)
xorl %r14d, %r14d
leaq -0xa8(%rbp), %r15
leaq 0x1174b(%rip), %r12     # 0x2ee5b
leaq -0x88(%rbp), %r13
leaq -0x60(%rbp), %rbx
movl %r14d, %r14d
subq %rax, %rdx
sarq $0x5, %rdx
decq %rdx
cmpq %r14, %rdx
jbe 0x1d77f
movq %r14, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %r15, %rdi
leaq 0x11710(%rip), %rsi     # 0x2ee51
movq %rax, %rdx
callq 0x15d84
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x12ae9
movq %rbx, %rdi
movq %r13, %rsi
callq 0xc910
movq %r13, %rdi
callq 0xc9a0
movq %r15, %rdi
callq 0xc9a0
incl %r14d
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rdx
jmp 0x1d71b
leaq 0x116d9(%rip), %rsi     # 0x2ee5f
leaq -0x60(%rbp), %rdi
callq 0xc8e0
movq -0x68(%rbp), %rbx
movq -0x38(%rbp), %rdx
movq 0xc0(%rbx), %rax
subq 0xb8(%rbx), %rax
cmpq $0x21, %rax
jb 0x1d7cc
movq %rdx, %rax
subq -0x40(%rbp), %rax
cmpq $0x20, %rax
jne 0x1d7cc
leaq 0x116a5(%rip), %rsi     # 0x2ee64
leaq -0x60(%rbp), %rdi
callq 0xc8e0
movq -0x38(%rbp), %rdx
addq $-0x20, %rdx
leaq 0x1167a(%rip), %rsi     # 0x2ee51
leaq -0xa8(%rbp), %rdi
callq 0x15d84
leaq 0xf650(%rip), %rdx      # 0x2ce3a
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x12ae9
leaq -0x60(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xc910
leaq -0x88(%rbp), %rdi
callq 0xc9a0
leaq -0xa8(%rbp), %rdi
callq 0xc9a0
leaq -0x60(%rbp), %rsi
movq %rbx, %rdi
callq 0x1d45a
leaq -0x40(%rbp), %rdi
callq 0xe840
leaq -0xd8(%rbp), %rdi
callq 0x13024
leaq -0x60(%rbp), %rdi
callq 0xc9a0
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1d873
jmp 0x1d884
jmp 0x1d895
movq %rax, %rbx
jmp 0x1d8a1
movq %rax, %rbx
jmp 0x1d8ad
jmp 0x1d895
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0xc9a0
jmp 0x1d887
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0xc9a0
jmp 0x1d898
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0xe840
leaq -0xd8(%rbp), %rdi
callq 0x13024
leaq -0x60(%rbp), %rdi
callq 0xc9a0
movq %rbx, %rdi
callq 0xc850