// File: /workspace/github_cpp_makefile_star2_O2/Se6[P]CmdLineArgs/./CmdLineArgs.h
// Function: std::vector<int, std::allocator<int>> CmdLineArgs::getParams<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char, std::vector<int, std::allocator<int>> const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char)
std::vector<T> CmdLineArgs::getParams(const std::string &long_name, char short_name,
                                      const std::vector<T> &default_vals, bool enforce_default_size,
                                      const std::string &desc, char separator)
{
    // Join the default values with the separator for the usage
    //
    std::ostringstream oss;
    for(unsigned int i=0; i<default_vals.size(); i++){
        if(i>0)
            oss << ",";
        oss << default_vals[i];
    }
    addUsage(long_name, short_name, oss.str(), desc);

    T val;
    std::vector<T> vec;
    std::istringstream ss;

    auto pos = findLongName(long_name);
    if( pos != args_.end() ) {

        if(pos+2>args_.end())
            throw std::runtime_error("\nError: parameter --" + long_name + " is not followed by a value");

        pos = args_.erase(pos);

    } else {

        pos = findShortName(short_name);
        if( pos != args_.end() ) {

            if( pos+2>args_.end() )
                throw std::runtime_error("\nError: parameter -" + std::string(1,short_name) + " is not followed by a value");

            if( pos->size()==2 )
                pos = args_.erase(pos);
            else{
                pos->erase( pos->find(short_name, 1), 1 );
                ++pos;
            }
        }

    }

    if( pos != args_.end() ) {
        do {

            ss.clear();
            ss.str(*pos);
            pos = args_.erase(pos);

            while( ss >> val ) {
                vec.push_back(val);
                if( ss.peek() == separator )
                    ss.ignore();
            }

            if( !ss.eof() )
                throw std::runtime_error("\nError: parameter --" + long_name +
                                         " (-" + std::string(1,short_name) +
                                         ") is not followed by a correct value");

        } while ( enforce_default_size && vec.size() < default_vals.size() && pos < args_.end() && (*pos)[0] != '-' );

        if ( enforce_default_size && vec.size() == 1 )
            for( int i=1; i<default_vals.size(); ++i)
                vec.push_back(vec[0]);

        if ( enforce_default_size && vec.size() != default_vals.size() ) {
            std::ostringstream oss;
            oss << "\nError: parameter --" << long_name;
            if ( short_name != ' ' )
                oss << " (-" << std::string(1,short_name) << ")";
            oss << " is not followed by " << default_vals.size() << " values as expected.";
            throw std::runtime_error(oss.str());
        }

        return vec;
    }

    // did not find anything:
    return default_vals;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x538, %rsp            # imm = 0x538
movl %r9d, 0x60(%rsp)
movq %r8, %rbx
movl %ecx, 0xc(%rsp)
movq %rdx, %rbp
movq %rsi, 0x58(%rsp)
movq %rdi, 0x50(%rsp)
movq 0x570(%rsp), %r14
leaq 0x3c0(%rsp), %r12
movq %r12, %rdi
callq 0x3290
xorl %r15d, %r15d
leaq 0x119d(%rip), %r13      # 0x8079
movl %r15d, %r15d
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r15, %rcx
jbe 0x6f16
testq %r15, %r15
je 0x6f05
movq %r12, %rdi
movq %r13, %rsi
callq 0x3210
movq (%rbx), %rax
movl (%rax,%r15,4), %esi
movq %r12, %rdi
callq 0x3380
incl %r15d
jmp 0x6edc
leaq 0x3c8(%rsp), %rsi
leaq 0x240(%rsp), %rdi
callq 0x32f0
movsbl 0xc(%rsp), %r15d
leaq 0x240(%rsp), %rcx
movq 0x58(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
movl %r15d, %edx
movq %r14, %r8
callq 0x39bc
leaq 0x240(%rsp), %rdi
callq 0x30e0
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
leaq 0x240(%rsp), %rdi
callq 0x3180
movq %r12, %rdi
movq %rbp, 0x48(%rsp)
movq %rbp, %rsi
callq 0x3780
movq 0x8(%r12), %rcx
cmpq %rcx, %rax
je 0x70ed
leaq 0x40(%rax), %rdx
cmpq %rcx, %rdx
ja 0x729b
movq %r12, %rdi
movq %rax, %rsi
callq 0x5528
movq %rax, %rbp
cmpq 0x8(%r12), %rbp
je 0x7131
movl %r15d, 0x8(%rsp)
leaq 0x250(%rsp), %rax
movsbl 0x578(%rsp), %r15d
movq -0x10(%rax), %rax
movq -0x18(%rax), %rdx
leaq 0x240(%rsp), %r12
leaq 0x64(%rsp), %r13
leaq 0x10(%rsp), %r14
leaq (%rsp,%rdx), %rdi
addq $0x240, %rdi            # imm = 0x240
xorl %esi, %esi
callq 0x3360
leaq 0x250(%rsp), %rdi
movq %rbp, %rsi
callq 0x32c0
movq 0x58(%rsp), %rdi
movq %rbp, %rsi
callq 0x5528
movq %rax, %rbp
movq %r12, %rdi
movq %r13, %rsi
callq 0x3140
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7058
movq %r14, %rdi
movq %r13, %rsi
callq 0x761a
movq %r12, %rdi
callq 0x30a0
cmpl %r15d, %eax
jne 0x701d
movq %r12, %rdi
callq 0x33b0
jmp 0x701d
movq 0x240(%rsp), %rax
movq -0x18(%rax), %rdx
testb $0x2, 0x260(%rsp,%rdx)
je 0x71de
cmpb $0x0, 0x60(%rsp)
je 0x7156
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
movq (%rbx), %rcx
movq 0x8(%rbx), %rax
movq %rax, %rdi
subq %rcx, %rdi
cmpq %rdi, %rsi
jae 0x70b2
movq 0x58(%rsp), %r8
cmpq 0x8(%r8), %rbp
jae 0x70b2
movq (%rbp), %r8
cmpb $0x2d, (%r8)
jne 0x6feb
cmpq $0x4, %rsi
jne 0x714d
pushq $0x1
popq %r15
leaq 0x10(%rsp), %r14
subq %rcx, %rax
movq %rax, %rcx
sarq $0x2, %rcx
cmpq %r15, %rcx
jbe 0x7140
movq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x761a
incq %r15
movq (%rbx), %rcx
movq 0x8(%rbx), %rax
jmp 0x70c5
movq %r12, %rdi
movl %r15d, %esi
callq 0x3862
movq %rax, %rbp
movq 0x8(%r12), %rax
cmpq %rax, %rbp
je 0x6fb0
leaq 0x40(%rbp), %rcx
cmpq %rax, %rcx
ja 0x73bb
cmpq $0x2, 0x8(%rbp)
jne 0x71b5
movq %r12, %rdi
movq %rbp, %rsi
callq 0x5528
jmp 0x6fad
movq 0x50(%rsp), %rdi
movq %rbx, %rsi
callq 0x76a0
jmp 0x717a
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
movq %rax, %rdi
cmpq %rdi, %rsi
jne 0x7305
movaps 0x10(%rsp), %xmm0
movq 0x50(%rsp), %rcx
movups %xmm0, (%rcx)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rcx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
leaq 0x240(%rsp), %rdi
callq 0x30f0
leaq 0x10(%rsp), %rdi
callq 0x678a
leaq 0x3c0(%rsp), %rdi
callq 0x3050
movq 0x50(%rsp), %rax
addq $0x538, %rsp            # imm = 0x538
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x1
popq %r14
movq %rbp, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x3280
movq %rbp, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x3040
addq $0x20, %rbp
jmp 0x6fb0
pushq $0x10
popq %rdi
callq 0x3110
movq %rax, %r15
leaq 0xe44(%rip), %rsi       # 0x8034
leaq 0xa8(%rsp), %rdi
movq 0x48(%rsp), %rdx
callq 0x554c
leaq 0xe72(%rip), %rdx       # 0x807b
leaq 0x68(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x552d
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x88(%rsp), %rdi
pushq $0x1
popq %rsi
movl 0x8(%rsp), %edx
callq 0x3250
leaq 0x28(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0x7638
leaq 0x1093(%rip), %rdx      # 0x82ec
leaq 0xc8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x552d
movb $0x1, %bpl
leaq 0xc8(%rsp), %rsi
movq %r15, %rdi
callq 0x3320
xorl %ebp, %ebp
movq 0x4d69(%rip), %rsi      # 0xbff0
movq 0x4d32(%rip), %rdx      # 0xbfc0
movq %r15, %rdi
callq 0x3370
jmp 0x7439
pushq $0x10
popq %rdi
callq 0x3110
movq %rax, %r14
leaq 0xd87(%rip), %rsi       # 0x8034
leaq 0x28(%rsp), %rdi
movq 0x48(%rsp), %rdx
callq 0x554c
leaq 0xd86(%rip), %rdx       # 0x8049
leaq 0xc8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x552d
movb $0x1, %bpl
leaq 0xc8(%rsp), %rsi
movq %r14, %rdi
callq 0x3320
xorl %ebp, %ebp
movq 0x4cff(%rip), %rsi      # 0xbff0
movq 0x4cc8(%rip), %rdx      # 0xbfc0
movq %r14, %rdi
callq 0x3370
jmp 0x7439
leaq 0xc8(%rsp), %rdi
callq 0x3290
leaq 0xd1b(%rip), %rsi       # 0x8034
leaq 0xc8(%rsp), %rdi
callq 0x3210
movq %rax, %rdi
movq 0x48(%rsp), %rsi
callq 0x3200
cmpb $0x20, 0xc(%rsp)
jne 0x7439
leaq 0xd3a(%rip), %rsi       # 0x807f
leaq 0xc8(%rsp), %rdi
callq 0x3210
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x2, %rsi
movq %rax, %rdi
callq 0x3150
leaq 0xd28(%rip), %rsi       # 0x8094
movq %rax, %rdi
callq 0x3210
pushq $0x10
popq %rdi
callq 0x3110
movq %rax, %r14
leaq 0xd0(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x32f0
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x3320
xorl %ebp, %ebp
movq 0x4c46(%rip), %rsi      # 0xbff0
movq 0x4c0f(%rip), %rdx      # 0xbfc0
movq %r14, %rdi
callq 0x3370
jmp 0x7439
pushq $0x10
popq %rdi
callq 0x3110
movq %rax, %r14
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x68(%rsp), %rdi
pushq $0x1
popq %rsi
movl %r15d, %edx
callq 0x3250
leaq 0xc7f(%rip), %rsi       # 0x8065
leaq 0x28(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0x55c2
leaq 0xc4d(%rip), %rdx       # 0x8049
leaq 0xc8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x552d
movb $0x1, %bpl
leaq 0xc8(%rsp), %rsi
movq %r14, %rdi
callq 0x3320
xorl %ebp, %ebp
movq 0x4bc6(%rip), %rsi      # 0xbff0
movq 0x4b8f(%rip), %rdx      # 0xbfc0
movq %r14, %rdi
callq 0x3370
leaq 0xc3b(%rip), %rsi       # 0x807b
leaq 0xc8(%rsp), %rdi
callq 0x3210
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x28(%rsp), %rdi
pushq $0x1
popq %rsi
movl 0x8(%rsp), %edx
callq 0x3250
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x3200
leaq 0xe54(%rip), %rsi       # 0x82d2
movq %rax, %rdi
callq 0x3210
leaq 0x28(%rsp), %rdi
callq 0x30e0
jmp 0x733e
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x30e0
testb %bpl, %bpl
jne 0x74af
jmp 0x7531
movq %rax, %rbx
movq %r14, %rdi
callq 0x3190
jmp 0x7531
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x30e0
jmp 0x7531
jmp 0x752e
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x30e0
jmp 0x74e2
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x28(%rsp), %rdi
callq 0x30e0
jmp 0x74f4
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x68(%rsp), %rdi
jmp 0x751f
jmp 0x75ea
jmp 0x756c
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x30e0
jmp 0x751a
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x28(%rsp), %rdi
callq 0x30e0
testb %bpl, %bpl
jne 0x756f
jmp 0x75ed
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x3050
jmp 0x75ed
jmp 0x75ea
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x30e0
jmp 0x7560
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x28(%rsp), %rdi
callq 0x30e0
jmp 0x757a
movq %rax, %rbx
movq %r14, %rdi
jmp 0x75d8
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x88(%rsp), %rdi
callq 0x30e0
jmp 0x7591
jmp 0x75ea
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x68(%rsp), %rdi
callq 0x30e0
jmp 0x75be
movq %rax, %rbx
jmp 0x75fa
movq %rax, %rbx
leaq 0x240(%rsp), %rdi
callq 0x30e0
jmp 0x7604
jmp 0x75e5
jmp 0x75ea
movq %rax, %rbx
movb $0x1, %bpl
leaq 0xa8(%rsp), %rdi
callq 0x30e0
testb %bpl, %bpl
jne 0x75d5
jmp 0x75ed
movq %rax, %rbx
movq %r15, %rdi
callq 0x3190
jmp 0x75ed
jmp 0x75ea
jmp 0x75ea
jmp 0x75ea
movq %rax, %rbx
jmp 0x7604
movq %rax, %rbx
leaq 0x240(%rsp), %rdi
callq 0x30f0
leaq 0x10(%rsp), %rdi
callq 0x678a
leaq 0x3c0(%rsp), %rdi
callq 0x3050
movq %rbx, %rdi
callq 0x3390
nop