// File: /workspace/github_cpp_makefile_star2_O1/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 $0x138, %rsp            # imm = 0x138
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x108(%rsp), %r12
movq %r12, %rdi
movl $0x20, %edx
callq 0x1d855
movq (%r12), %r12
leaq 0x60(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x6ac8(%rip), %rsi      # 0x249c6
leaq 0x6ac5(%rip), %rdx      # 0x249ca
leaq 0x50(%rsp), %rdi
callq 0x21084
leaq 0x108(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movq %r12, %rsi
callq 0x1eb48
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x1df40
movq 0x60(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x7200
leaq 0x58(%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, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x93ca
leaq 0x120(%rsp), %rdi
movq %r15, %rsi
callq 0x1f52e
leaq 0x28(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x9286
leaq 0x120(%rsp), %rdi
callq 0xb746
leaq 0xa0(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x108(%rsp), %rdx
leaq 0x30(%rsp), %r8
leaq 0x80(%rsp), %r9
xorl %ecx, %ecx
callq 0x90a8
leaq 0x50(%rsp), %rdi
callq 0x1ec0e
movq 0xb0(%rsp), %rax
testq %rax, %rax
je 0x1e034
leaq 0xa8(%rsp), %rcx
movl (%rcx), %edx
movl %edx, 0x58(%rsp)
movq %rax, 0x60(%rsp)
movups 0x10(%rcx), %xmm0
movups %xmm0, 0x68(%rsp)
movq %r12, 0x8(%rax)
movq 0x20(%rcx), %rax
movq %rax, 0x78(%rsp)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0xa0(%rsp), %rdi
callq 0xe596
leaq 0x59f3(%rip), %rsi      # 0x23a3b
movq %r14, %rdi
callq 0x72b0
testl %eax, %eax
setne %dl
movq 0x80(%rsp), %rcx
xorq 0x88(%rsp), %rcx
movq 0x38(%rsp), %rsi
xorq 0x30(%rsp), %rsi
orq %rcx, %rsi
setne %cl
orb %cl, %dl
je 0x1e147
testl %eax, %eax
je 0x1e1c4
movl %ecx, %edx
xorb $0x1, %dl
jne 0x1e1c4
leaq 0x7c22(%rip), %rdi      # 0x25cb9
movl $0x1, %esi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x17a6e
movq 0x30(%rsp), %rax
cmpq %rax, 0x38(%rsp)
je 0x1e15d
movl $0x18, %ebp
leaq 0xa0(%rsp), %rbx
leaq 0x8(%rsp), %r14
leaq 0x7809(%rip), %r15      # 0x258d8
xorl %r13d, %r13d
movq 0x18ef7(%rip), %rcx     # 0x36fd0
movq (%rcx), %r12
movq (%rax,%rbp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x1eb0a
movq %rbx, %rdi
callq 0x1d940
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x72c0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x1e128
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x7200
incq %r13
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %rbp
cmpq %rcx, %r13
jb 0x1e0d2
jmp 0x1e15d
leaq 0x7b2e(%rip), %rdi      # 0x25c7c
movl $0x1, %esi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x17a6e
leaq 0x28(%rsp), %rdi
callq 0x948a
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x1e184
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x7200
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1e19b
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x7200
leaq 0x50(%rsp), %rdi
callq 0xe596
leaq 0x108(%rsp), %rdi
callq 0xc1d0
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %eax, %eax
sete %al
orb %cl, %al
jne 0x1e15d
leaq 0xa0(%rsp), %rdi
movq %r14, %rsi
callq 0x1d9b4
leaq 0xa8(%rsp), %rbp
movq 0x10(%rbp), %r14
cmpq %rbp, %r14
je 0x1e5e5
leaq 0x18(%rsp), %r12
movq %rbx, 0x98(%rsp)
leaq 0x20(%r14), %r15
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0x1f10a
movq %rax, %rbp
leaq 0x40(%r14), %r13
leaq 0x58(%rsp), %rax
cmpq %rax, %rbp
je 0x1e263
movq %r12, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x663e(%rip), %rsi      # 0x24870
leaq 0x663b(%rip), %rdx      # 0x24874
callq 0x21084
movq 0x48(%r14), %rdx
cmpq 0x10(%rsp), %rdx
jne 0x1e27e
testq %rdx, %rdx
je 0x1e282
movq 0x8(%rsp), %rsi
movq (%r13), %rdi
callq 0x71d0
testl %eax, %eax
sete %bl
jmp 0x1e284
movq (%r15), %rcx
movq (%r13), %r8
movl $0x1, %esi
leaq 0x7a8b(%rip), %rdi      # 0x25d01
movq %rbx, %rdx
jmp 0x1e451
xorl %ebx, %ebx
jmp 0x1e284
movb $0x1, %bl
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1e2a0
movq 0x18(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x7200
testb %bl, %bl
je 0x1e2f1
cmpl $0x1, 0x58(%rbp)
movq 0x98(%rsp), %rbx
je 0x1e2d4
movl $0x1, %esi
movl $0x14e, %ecx            # imm = 0x14E
leaq 0x7664(%rip), %rdi      # 0x25927
movq %rbx, %rdx
leaq 0x767e(%rip), %r8       # 0x2594b
xorl %eax, %eax
callq 0x17a6e
movq 0x40(%rbp), %rax
cmpq 0x48(%rbp), %rax
je 0x1e458
movl $0x1, %esi
movl $0x14f, %ecx            # imm = 0x14F
jmp 0x1e440
movq %r12, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x766b(%rip), %rsi      # 0x2596d
leaq 0x7669(%rip), %rdx      # 0x25972
callq 0x21084
movq 0x48(%r14), %rdx
cmpq 0x10(%rsp), %rdx
jne 0x1e333
testq %rdx, %rdx
je 0x1e337
movq 0x8(%rsp), %rsi
movq (%r13), %rdi
callq 0x71d0
testl %eax, %eax
sete %bl
jmp 0x1e339
xorl %ebx, %ebx
jmp 0x1e339
movb $0x1, %bl
movb $0x1, %r12b
testb %bl, %bl
jne 0x1e39a
leaq 0xf8(%rsp), %rax
movq %rax, 0xe8(%rsp)
leaq 0xe8(%rsp), %rdi
leaq 0x7614(%rip), %rsi      # 0x25973
leaq 0x7611(%rip), %rdx      # 0x25977
callq 0x21084
movq 0x48(%r14), %rdx
cmpq 0xf0(%rsp), %rdx
jne 0x1e397
testq %rdx, %rdx
je 0x1e39a
movq 0xe8(%rsp), %rsi
movq (%r13), %rdi
callq 0x71d0
testl %eax, %eax
sete %r12b
jmp 0x1e39a
xorl %r12d, %r12d
testb %bl, %bl
movq 0x98(%rsp), %rbx
movq %r13, %rsi
jne 0x1e3d6
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x1e3d6
movq 0xf8(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x7200
movq %r13, %rsi
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1e3fa
movq 0x18(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x7200
movq %r13, %rsi
testb %r12b, %r12b
je 0x1e479
cmpl $0x0, 0x58(%rbp)
leaq 0x18(%rsp), %r12
je 0x1e42c
movl $0x1, %esi
movl $0x151, %ecx            # imm = 0x151
leaq 0x750c(%rip), %rdi      # 0x25927
movq %rbx, %rdx
leaq 0x7553(%rip), %r8       # 0x25978
xorl %eax, %eax
callq 0x17a6e
movq 0x40(%rbp), %rax
cmpq 0x48(%rbp), %rax
je 0x1e458
movl $0x1, %esi
movl $0x152, %ecx            # imm = 0x152
leaq 0x74e0(%rip), %rdi      # 0x25927
movq %rbx, %rdx
leaq 0x7509(%rip), %r8       # 0x2595a
xorl %eax, %eax
callq 0x17a6e
movq %r14, %rdi
callq 0x7280
movq %rax, %r14
leaq 0xa8(%rsp), %rbp
cmpq %rbp, %rax
jne 0x1e1ff
jmp 0x1e5e5
cmpq $0x2, 0x48(%r14)
leaq 0x18(%rsp), %r12
jne 0x1e4ee
movq (%rsi), %rax
cmpl $0x25, (%rax)
jne 0x1e4ee
movl 0x4(%rax), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x1e4ee
movq (%rsi), %rax
movl 0x4(%rax), %eax
addl $-0x30, %eax
cmpl $0xa, %eax
jae 0x1e650
cmpl %eax, 0x58(%rbp)
je 0x1e4d1
movl $0x1, %esi
movl $0x156, %ecx            # imm = 0x156
leaq 0x7467(%rip), %rdi      # 0x25927
movq %rbx, %rdx
leaq 0x74e6(%rip), %r8       # 0x259b0
xorl %eax, %eax
callq 0x17a6e
movq 0x40(%rbp), %rax
cmpq 0x48(%rbp), %rax
je 0x1e458
movl $0x1, %esi
movl $0x157, %ecx            # imm = 0x157
jmp 0x1e440
leaq 0xd0(%rsp), %rdi
leaq 0x74cf(%rip), %rdx      # 0x259cc
callq 0x1db7f
movq 0x40(%rbp), %rdi
movq 0x48(%rbp), %rsi
movq %rsi, %rax
subq %rdi, %rax
movq 0xd0(%rsp), %rdx
movq 0xd8(%rsp), %rcx
subq %rdx, %rcx
cmpq %rcx, %rax
jne 0x1e531
callq 0x1f150
testb %al, %al
jne 0x1e553
movl $0x1, %esi
movl $0x15a, %ecx            # imm = 0x15A
leaq 0x73e5(%rip), %rdi      # 0x25927
movq %rbx, %rdx
leaq 0x7483(%rip), %r8       # 0x259cf
xorl %eax, %eax
callq 0x17a6e
movq 0x40(%rbp), %rdi
movq 0x48(%rbp), %rsi
movq %rsi, %rax
subq %rdi, %rax
movq 0xd0(%rsp), %rdx
movq 0xd8(%rsp), %rcx
subq %rdx, %rcx
cmpq %rcx, %rax
jne 0x1e582
callq 0x1f150
testb %al, %al
jne 0x1e5d3
addq $0x40, %rbp
movq (%r15), %r15
leaq 0x8(%rsp), %rdi
movq %rbp, %rsi
leaq 0x7434(%rip), %rdx      # 0x259cc
callq 0x176f2
movq 0x8(%rsp), %rdx
movq (%r13), %rcx
leaq 0x7437(%rip), %rdi      # 0x259e4
movq %r15, %rsi
xorl %eax, %eax
callq 0x17a6e
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1e5d3
movq 0x18(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x7200
leaq 0xd0(%rsp), %rdi
callq 0xc1d0
jmp 0x1e458
movq 0x68(%rsp), %r14
leaq 0x58(%rsp), %r13
cmpq %r13, %r14
je 0x1e63e
leaq 0xa0(%rsp), %r15
leaq 0x7407(%rip), %r12      # 0x25a0a
leaq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0x1f1be
cmpq %rbp, %rax
jne 0x1e62e
movq 0x20(%r14), %rcx
movl 0x58(%r14), %r8d
movl $0x1, %esi
movq %r12, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x17a6e
movq %r14, %rdi
callq 0x7280
movq %rax, %r14
cmpq %r13, %rax
jne 0x1e603
leaq 0xa0(%rsp), %rdi
callq 0x1f248
jmp 0x1e15d
leaq 0x7330(%rip), %rdi      # 0x25987
leaq 0x733d(%rip), %rsi      # 0x2599b
leaq 0x76e7(%rip), %rcx      # 0x25d4c
movl $0x155, %edx            # imm = 0x155
callq 0x7120
jmp 0x1e73e
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0xc1d0
jmp 0x1e705
jmp 0x1e702
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1e705
movq 0x18(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x7200
jmp 0x1e705
jmp 0x1e702
jmp 0x1e73e
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
callq 0xb746
jmp 0x1e741
jmp 0x1e73e
movq %rax, %rbx
jmp 0x1e74b
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x1e789
movq 0x60(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x7200
jmp 0x1e789
movq %rax, %rbx
jmp 0x1e789
jmp 0x1e702
jmp 0x1e702
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x1f248
jmp 0x1e741
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x1e741
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x7200
jmp 0x1e741
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x948a
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x1e768
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x7200
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1e77f
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x7200
leaq 0x50(%rsp), %rdi
callq 0xe596
leaq 0x108(%rsp), %rdi
callq 0xc1d0
movq %rbx, %rdi
callq 0x7360