// File: /workspace/github_cpp_makefile_star2_O3/ridiculousfish[P]docopt_fish/docopt_fish_test.cpp
// Function: run_1_annotated_option_test(unsigned long, unsigned long, char const*, char const*, std::vector<docopt_fish::annotated_option_t, std::allocator<docopt_fish::annotated_option_t>> const&)
static void run_1_annotated_option_test(unsigned long test_idx, unsigned long arg_idx, const char *joined_argv, const char *joined_expected_results, const std::vector<annotated_option_t> &dopts) {
    typedef map<string_t, argument_t > arg_map_t;
    typedef map<string_t, string_t> string_map_t;
    
    /* Separate argv by spaces */
    string_list_t argv = split_nonempty(joined_argv, ' ');
    
    /* Prepend the program name for every argument */
    argv.insert(argv.begin(), to_string("prog"));
    
    /* Perform the parsing */
    arg_map_t results;
    std::vector<doc_error_t> error_list;
    vector<size_t> unused_args;
    argument_parser_t parser;
    parser.set_options(dopts);
    results = parser.parse_arguments(argv, 0, &error_list, &unused_args);
    
    bool expects_error = ! strcmp(joined_expected_results, ERROR_EXPECTED);
    bool did_error = ! unused_args.empty() || ! error_list.empty();
    
    if (expects_error && ! did_error) {
        err("Direct option test %lu.%lu was expected to fail, but did not", test_idx, arg_idx);
    } else if (did_error && ! expects_error) {
        err("Direct option test %lu.%lu was expected to succeed, but instead errored", test_idx, arg_idx);
        for (size_t i=0; i < error_list.size(); i++) {
            fprintf(stderr, "\t%ls\n", wide(error_list.at(i).text));
        }
    } else if (! did_error && ! expects_error) {
        /* joined_expected_results is a newline-delimited "map" of the form key:value */
        const string_map_t expected = parse_expected_results(joined_expected_results);
        
        // Verify everything we expected appears in our map
        for (auto iter = expected.cbegin(); iter != expected.cend(); ++iter) {
            const string_t &key = iter->first;
            const string_t &val = iter->second;
            arg_map_t::const_iterator arg_iter = results.find(key);
            if (arg_iter == results.end()) {
                err("Direct option test %lu.%lu: Expected to find %ls = %ls, but it was missing", test_idx, arg_idx, wide(key), wide(val));
            } else {
                const argument_t &arg = arg_iter->second;
                /* The value here can be interpreted a few ways. If it is "True" or "False", it means we expect the argument to have no values, and to have a count of 1 or 0, respectively. If it is % followed by a one-digit number, it represents the count of the argument; values is expected to be empty. Otherwise, split the value about ', '; those are the values we expect. */
                if (val == to_string("True")) {
                    /* A "true" means we expect the argument ot have no values, and to have appeared once */
                    do_arg_test(arg.count == 1);
                    do_arg_test(arg.values.empty());
                } else if (val == to_string("False") || val == to_string("None")) {
                    do_arg_test(arg.count == 0);
                    do_arg_test(arg.values.empty());
                } else if (is_percent_digit(val)) {
                    size_t expected_count = val.at(1) - '0';
                    assert(expected_count <= 9);
                    do_arg_test(arg.count == expected_count);
                    do_arg_test(arg.values.empty());
                } else {
                    const string_list_t values = split(val, ", ");
                    do_arg_test(arg.values == values);
                    if (arg.values != values) {
                        err("Key '%ls' expected '%ls', found '%ls'", wide(key), wide(join(arg.values, ", ")), wide(val));
                    }
                    /* Note that we don't test count here, since count will be 0 if it came from a default: clause, and nonzero if it did not */
                }
            }
        }
        
        // Verify nothing we didn't expect appears in our map
        for (arg_map_t::const_iterator iter = results.begin(); iter != results.end(); ++iter) {
            const string_t &key = iter->first;
            auto result = expected.find(key);
            if (result == expected.end()) {
                err("Test %lu.%lu: Unexpected key %ls with count %u", test_idx, arg_idx, wide(key), iter->second.count);
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %rbx
leaq 0xe8(%rsp), %r12
movq %r12, %rdi
movl $0x20, %edx
callq 0x1c6e7
movq (%r12), %r12
leaq 0x80(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x5bf0(%rip), %rsi      # 0x22976
leaq 0x5bed(%rip), %rdx      # 0x2297a
leaq 0x70(%rsp), %rdi
callq 0x1fe82
leaq 0xe8(%rsp), %rdi
leaq 0x70(%rsp), %rdx
movq %r12, %rsi
callq 0x1d988
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x1cdcb
movq 0x80(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x6200
leaq 0x78(%rsp), %r12
movl $0x0, (%r12)
xorl %eax, %eax
movq %rax, 0x8(%r12)
movq %r12, 0x10(%r12)
movq %r12, 0x18(%r12)
movq %rax, 0x20(%r12)
movq %rax, 0x40(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq %rax, 0xb0(%rsp)
movaps %xmm0, 0xa0(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x8354
leaq 0x100(%rsp), %rdi
movq %r15, %rsi
callq 0x1e362
leaq 0x28(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x821e
leaq 0x100(%rsp), %rdi
callq 0xa76c
leaq 0xb8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
leaq 0x30(%rsp), %r8
leaq 0xa0(%rsp), %r9
xorl %ecx, %ecx
callq 0x8038
leaq 0x70(%rsp), %rdi
callq 0x1da4e
movq 0xc8(%rsp), %rax
testq %rax, %rax
je 0x1cec8
leaq 0xc0(%rsp), %rcx
movl (%rcx), %edx
movl %edx, 0x78(%rsp)
movq %rax, 0x80(%rsp)
movups 0x10(%rcx), %xmm0
movups %xmm0, 0x88(%rsp)
movq %r12, 0x8(%rax)
movq 0x20(%rcx), %rax
movq %rax, 0x98(%rsp)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0xb8(%rsp), %rdi
callq 0xd548
leaq 0x4b0f(%rip), %rsi      # 0x219eb
movq %r14, %rdi
callq 0x62b0
movq 0xa0(%rsp), %rdx
movb $0x1, %cl
cmpq 0xa8(%rsp), %rdx
jne 0x1cf12
testl %eax, %eax
setne %dl
movq 0x30(%rsp), %rcx
cmpq 0x38(%rsp), %rcx
setne %cl
orb %cl, %dl
je 0x1d435
testl %eax, %eax
sete %dl
movl %ecx, %esi
xorb $0x1, %sil
orb %dl, %sil
je 0x1d312
testl %eax, %eax
sete %al
orb %al, %cl
jne 0x1d44b
leaq 0xb8(%rsp), %rdi
movq %r14, %rsi
callq 0x1c841
leaq 0xc0(%rsp), %rbp
movq 0x10(%rbp), %r14
cmpq %rbp, %r14
je 0x1d3ca
movq %rbx, 0x48(%rsp)
movq %rbp, %r13
leaq 0x20(%r14), %r15
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
callq 0x1df50
movq %rax, %rbp
leaq 0x40(%r14), %r12
leaq 0x78(%rsp), %rax
cmpq %rax, %rbp
je 0x1cfd1
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %rdi
leaq 0x588b(%rip), %rsi      # 0x22820
leaq 0x5888(%rip), %rdx      # 0x22824
callq 0x1fe82
movq %r12, 0x20(%rsp)
movq 0x48(%r14), %rdx
cmpq 0x8(%rsp), %rdx
jne 0x1cfec
movq (%rsp), %r12
testq %rdx, %rdx
je 0x1cff4
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq %r12, %rsi
callq 0x61d0
testl %eax, %eax
sete %bl
jmp 0x1cff6
movq (%r15), %rcx
movq (%r12), %r8
movl $0x1, %esi
leaq 0x6cb9(%rip), %rdi      # 0x23c9d
movq %rbx, %rdx
jmp 0x1d1a1
movq (%rsp), %r12
xorl %ebx, %ebx
jmp 0x1cff6
movb $0x1, %bl
leaq 0x10(%rsp), %rax
cmpq %rax, %r12
je 0x1d015
movq 0x10(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
movq %r12, %rdi
callq 0x6200
testb %bl, %bl
je 0x1d063
cmpl $0x1, 0x58(%rbp)
movq 0x48(%rsp), %rbx
je 0x1d046
movl $0x1, %esi
movl $0x14e, %ecx            # imm = 0x14E
leaq 0x68a2(%rip), %rdi      # 0x238d7
movq %rbx, %rdx
leaq 0x68bc(%rip), %r8       # 0x238fb
xorl %eax, %eax
callq 0x168f6
movq 0x40(%rbp), %rax
cmpq 0x48(%rbp), %rax
je 0x1d1a8
movl $0x1, %esi
movl $0x14f, %ecx            # imm = 0x14F
jmp 0x1d190
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %rdi
leaq 0x68a7(%rip), %rsi      # 0x2391d
leaq 0x68a5(%rip), %rdx      # 0x23922
callq 0x1fe82
movq 0x48(%r14), %rdx
cmpq 0x8(%rsp), %rdx
jne 0x1d0b0
movb $0x1, %bl
movq (%rsp), %r12
testq %rdx, %rdx
je 0x1d12c
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq %r12, %rsi
callq 0x61d0
testl %eax, %eax
je 0x1d12c
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
leaq 0x50(%rsp), %rdi
leaq 0x685d(%rip), %rsi      # 0x23923
leaq 0x685a(%rip), %rdx      # 0x23927
callq 0x1fe82
movq 0x48(%r14), %rdx
cmpq 0x58(%rsp), %rdx
jne 0x1d0fe
movq 0x50(%rsp), %r12
testq %rdx, %rdx
je 0x1d107
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq %r12, %rsi
callq 0x61d0
testl %eax, %eax
sete %bl
jmp 0x1d109
movq 0x50(%rsp), %r12
xorl %ebx, %ebx
jmp 0x1d109
movb $0x1, %bl
leaq 0x60(%rsp), %rax
cmpq %rax, %r12
je 0x1d128
movq 0x60(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
movq %r12, %rdi
callq 0x6200
movq (%rsp), %r12
leaq 0x10(%rsp), %rax
cmpq %rax, %r12
je 0x1d14b
movq 0x10(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
movq %r12, %rdi
callq 0x6200
testb %bl, %bl
je 0x1d1c4
cmpl $0x0, 0x58(%rbp)
movq 0x48(%rsp), %rbx
je 0x1d17c
movl $0x1, %esi
movl $0x151, %ecx            # imm = 0x151
leaq 0x676c(%rip), %rdi      # 0x238d7
movq %rbx, %rdx
leaq 0x67b3(%rip), %r8       # 0x23928
xorl %eax, %eax
callq 0x168f6
movq 0x40(%rbp), %rax
cmpq 0x48(%rbp), %rax
je 0x1d1a8
movl $0x1, %esi
movl $0x152, %ecx            # imm = 0x152
leaq 0x6740(%rip), %rdi      # 0x238d7
movq %rbx, %rdx
leaq 0x6769(%rip), %r8       # 0x2390a
xorl %eax, %eax
callq 0x168f6
movq %r14, %rdi
callq 0x6280
movq %rax, %r14
movq %r13, %rbp
cmpq %r13, %rax
jne 0x1cf5d
jmp 0x1d3ca
cmpq $0x2, 0x48(%r14)
movq 0x48(%rsp), %rbx
jne 0x1d224
movq 0x40(%r14), %rax
cmpl $0x25, (%rax)
jne 0x1d224
movl 0x4(%rax), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x1d224
cmpl %eax, 0x58(%rbp)
je 0x1d20b
movl $0x1, %esi
movl $0x156, %ecx            # imm = 0x156
leaq 0x66dd(%rip), %rdi      # 0x238d7
movq %rbx, %rdx
leaq 0x6748(%rip), %r8       # 0x2394c
xorl %eax, %eax
callq 0x168f6
movq 0x40(%rbp), %rax
cmpq 0x48(%rbp), %rax
je 0x1d1a8
movl $0x1, %esi
movl $0x157, %ecx            # imm = 0x157
jmp 0x1d190
leaq 0x50(%rsp), %rdi
movq 0x20(%rsp), %r12
movq %r12, %rsi
leaq 0x6730(%rip), %rdx      # 0x23968
callq 0x1ca07
movq 0x40(%rbp), %rdi
movq 0x48(%rbp), %rsi
movq %rsi, %rax
subq %rdi, %rax
movq 0x50(%rsp), %rdx
movq 0x58(%rsp), %rcx
subq %rdx, %rcx
cmpq %rcx, %rax
jne 0x1d266
callq 0x1df96
testb %al, %al
jne 0x1d288
movl $0x1, %esi
movl $0x15a, %ecx            # imm = 0x15A
leaq 0x6660(%rip), %rdi      # 0x238d7
movq %rbx, %rdx
leaq 0x66ea(%rip), %r8       # 0x2396b
xorl %eax, %eax
callq 0x168f6
movq 0x40(%rbp), %rdi
movq 0x48(%rbp), %rsi
movq %rsi, %rax
subq %rdi, %rax
movq 0x50(%rsp), %rdx
movq 0x58(%rsp), %rcx
subq %rdx, %rcx
cmpq %rcx, %rax
jne 0x1d2b1
callq 0x1df96
testb %al, %al
jne 0x1d303
addq $0x40, %rbp
movq (%r15), %r15
movq %rsp, %rdi
movq %rbp, %rsi
leaq 0x66a3(%rip), %rdx      # 0x23968
callq 0x16573
movq (%rsp), %rdx
movq (%r12), %rcx
leaq 0x66a7(%rip), %rdi      # 0x23980
movq %r15, %rsi
xorl %eax, %eax
callq 0x168f6
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1d303
movq 0x10(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x6200
leaq 0x50(%rsp), %rdi
callq 0xb1e0
jmp 0x1d1a8
leaq 0x693c(%rip), %rdi      # 0x23c55
movl $0x1, %esi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x168f6
movq 0x30(%rsp), %rax
cmpq %rax, 0x38(%rsp)
je 0x1d44b
movl $0x18, %ebp
leaq 0xb8(%rsp), %rbx
movq %rsp, %r14
leaq 0x6539(%rip), %r15      # 0x23888
xorl %r13d, %r13d
movq 0x17c77(%rip), %rcx     # 0x34fd0
movq (%rcx), %r12
movq (%rax,%rbp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x1d94a
movq %rbx, %rdi
callq 0x1c7cd
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x62c0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x1d3a8
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x6200
incq %r13
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %rbp
cmpq %rcx, %r13
jb 0x1d352
jmp 0x1d44b
movq 0x88(%rsp), %r14
leaq 0x78(%rsp), %r13
cmpq %r13, %r14
je 0x1d426
leaq 0xb8(%rsp), %r15
leaq 0x65bb(%rip), %r12      # 0x239a6
leaq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0x1dff2
cmpq %rbp, %rax
jne 0x1d416
movq 0x20(%r14), %rcx
movl 0x58(%r14), %r8d
movl $0x1, %esi
movq %r12, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x168f6
movq %r14, %rdi
callq 0x6280
movq %rax, %r14
cmpq %r13, %rax
jne 0x1d3eb
leaq 0xb8(%rsp), %rdi
callq 0x1e07c
jmp 0x1d44b
leaq 0x67dc(%rip), %rdi      # 0x23c18
movl $0x1, %esi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x168f6
leaq 0x28(%rsp), %rdi
callq 0x8414
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x1d472
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x6200
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1d489
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x6200
leaq 0x70(%rsp), %rdi
callq 0xd548
leaq 0xe8(%rsp), %rdi
callq 0xb1e0
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1d58c
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xb1e0
jmp 0x1d553
jmp 0x1d550
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1d553
movq 0x10(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x6200
jmp 0x1d553
jmp 0x1d58c
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0xa76c
jmp 0x1d58f
jmp 0x1d58c
movq %rax, %rbx
jmp 0x1d599
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x1d5d7
movq 0x80(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x6200
jmp 0x1d5d7
movq %rax, %rbx
jmp 0x1d5d7
jmp 0x1d550
jmp 0x1d550
jmp 0x1d550
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x1e07c
jmp 0x1d58f
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x1d58f
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x6200
jmp 0x1d58f
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x8414
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x1d5b6
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x6200
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1d5cd
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x6200
leaq 0x70(%rsp), %rdi
callq 0xd548
leaq 0xe8(%rsp), %rdi
callq 0xb1e0
movq %rbx, %rdi
callq 0x6360