// File: /workspace/github_cpp_makefile_star2_O2/halfflat[P]tinyopt/test/test_run.cc
// Function: run_single_Test::TestBody()
TEST(run, single) {
    int c = 0, d = 0;
    to::option opts[] = {
        { to::increment(c), "-c", to::flag, to::single },
        { to::increment(d), "-c", to::flag, to::single }
    };

    mockargs M("-c\0-c\0-c\0");
    auto r = to::run(opts, M.argc, M.argv);
    EXPECT_EQ(1, c);
    EXPECT_EQ(1, d);
    EXPECT_EQ(1, M.argc);
    EXPECT_TRUE(r);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
leaq 0x54(%rsp), %rax
andl $0x0, (%rax)
andl $0x0, 0x1c(%rsp)
leaq 0xc0(%rsp), %rsi
andq $0x0, 0x8(%rsi)
movq %rax, (%rsi)
leaq -0x1b53e(%rip), %rbx    # 0x1461c
movq %rbx, 0x18(%rsi)
leaq -0x1b541(%rip), %r12    # 0x14624
movq %r12, 0x10(%rsi)
leaq 0x78(%rsp), %rcx
movl $0x1, (%rcx)
leaq 0x58(%rsp), %r8
movl $0x4, (%r8)
leaq 0x27874(%rip), %rdx     # 0x573fb
leaq 0xe0(%rsp), %r15
movq %r15, %rdi
callq 0x333c0
leaq 0x150(%rsp), %r14
leaq 0xa0(%rsp), %rsi
andq $0x0, 0x8(%rsi)
leaq 0x1c(%rsp), %rax
movq %rax, (%rsi)
movq %rbx, 0x18(%rsi)
movq %r12, 0x10(%rsi)
leaq 0x20(%rsp), %rcx
movl $0x1, (%rcx)
leaq 0x8(%rsp), %r8
movl $0x4, (%r8)
leaq 0x27821(%rip), %rdx     # 0x573fb
movq %r14, %rdi
callq 0x333c0
leaq 0xa0(%rsp), %rdi
callq 0x1367e
leaq 0xc0(%rsp), %rdi
callq 0x1367e
leaq 0x29c0c(%rip), %rsi     # 0x5980f
leaq 0x78(%rsp), %rdi
callq 0x2488e
leaq 0x78(%rsp), %rdx
movq 0x8(%rdx), %rcx
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r8
movaps %xmm0, (%r8)
andq $0x0, 0x10(%r8)
leaq 0x58(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x33094
leaq 0x20(%rsp), %rdi
callq 0x1cc42
leaq 0x8(%rsp), %rcx
movl $0x1, (%rcx)
leaq 0x283ea(%rip), %rsi     # 0x5803f
leaq 0x277a0(%rip), %rdx     # 0x573fc
leaq 0x20(%rsp), %rdi
leaq 0x54(%rsp), %r8
callq 0x13a52
cmpb $0x0, 0x20(%rsp)
jne 0x2fccc
leaq 0x8(%rsp), %rdi
callq 0x3d5f6
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0x2fc8b
movq (%rax), %r8
jmp 0x2fc92
leaq 0x293d8(%rip), %r8      # 0x5906a
leaq 0x29651(%rip), %rdx     # 0x592ea
movq %rsp, %rdi
pushq $0x1
popq %rsi
pushq $0x6c
popq %rcx
callq 0x3b5b6
movq %rsp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x39b08
movq %rsp, %rdi
callq 0x3b616
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2fccc
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x28(%rsp), %rdi
callq 0x13646
leaq 0x8(%rsp), %rcx
movl $0x1, (%rcx)
leaq 0x28357(%rip), %rsi     # 0x5803f
leaq 0x2943b(%rip), %rdx     # 0x5912a
leaq 0x20(%rsp), %rdi
leaq 0x1c(%rsp), %r8
callq 0x13a52
cmpb $0x0, 0x20(%rsp)
jne 0x2fd5f
leaq 0x8(%rsp), %rdi
callq 0x3d5f6
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0x2fd1e
movq (%rax), %r8
jmp 0x2fd25
leaq 0x29345(%rip), %r8      # 0x5906a
leaq 0x295be(%rip), %rdx     # 0x592ea
movq %rsp, %rdi
pushq $0x1
popq %rsi
pushq $0x6d
popq %rcx
callq 0x3b5b6
movq %rsp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x39b08
movq %rsp, %rdi
callq 0x3b616
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2fd5f
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x28(%rsp), %rdi
callq 0x13646
leaq 0x8(%rsp), %rcx
movl $0x1, (%rcx)
leaq 0x282c4(%rip), %rsi     # 0x5803f
leaq 0x28240(%rip), %rdx     # 0x57fc2
leaq 0x20(%rsp), %rdi
leaq 0x78(%rsp), %r8
callq 0x13a52
cmpb $0x0, 0x20(%rsp)
jne 0x2fdf2
leaq 0x8(%rsp), %rdi
callq 0x3d5f6
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0x2fdb1
movq (%rax), %r8
jmp 0x2fdb8
leaq 0x292b2(%rip), %r8      # 0x5906a
leaq 0x2952b(%rip), %rdx     # 0x592ea
movq %rsp, %rdi
pushq $0x1
popq %rsi
pushq $0x6e
popq %rcx
callq 0x3b5b6
movq %rsp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x39b08
movq %rsp, %rdi
callq 0x3b616
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2fdf2
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x28(%rsp), %rdi
callq 0x13646
movb 0x58(%rsp), %al
leaq 0x10(%rsp), %r14
movb %al, -0x8(%r14)
andq $0x0, (%r14)
testb %al, %al
jne 0x2fe89
movq %rsp, %rdi
callq 0x3d5f6
leaq 0x28629(%rip), %rdx     # 0x58449
leaq 0x262e8(%rip), %rcx     # 0x5610f
leaq 0x262e7(%rip), %r8      # 0x56115
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x399e5
movq 0x20(%rsp), %r8
leaq 0x294a1(%rip), %rdx     # 0x592ea
leaq 0x48(%rsp), %rdi
pushq $0x1
popq %rsi
pushq $0x6f
popq %rcx
callq 0x3b5b6
leaq 0x48(%rsp), %rdi
movq %rsp, %rsi
callq 0x39b08
leaq 0x48(%rsp), %rdi
callq 0x3b616
leaq 0x20(%rsp), %rdi
callq 0xdbe8
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2fe89
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
callq 0x13646
leaq 0x58(%rsp), %rdi
callq 0x34214
leaq 0x88(%rsp), %rdi
callq 0x25080
pushq $0x70
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0xe0, %rdi
callq 0x1cbe0
addq $-0x70, %rbx
cmpq $-0x70, %rbx
jne 0x2feab
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x3b616
jmp 0x2fee6
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xdbe8
jmp 0x2fef5
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2ff0b
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x2ff0b
jmp 0x2ff1a
movq %rax, %rbx
movq %r14, %rdi
jmp 0x2ff44
jmp 0x2ff27
jmp 0x2ff3c
jmp 0x2ff1a
jmp 0x2ff27
jmp 0x2ff3c
movq %rax, %rbx
movq %rsp, %rdi
callq 0x3b616
jmp 0x2ff2a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2ff3f
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x2ff3f
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x13646
jmp 0x2ff52
jmp 0x2ff4f
jmp 0x2ff4f
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x34214
leaq 0x88(%rsp), %rdi
callq 0x25080
pushq $0x70
popq %r14
leaq (%rsp,%r14), %rdi
addq $0xe0, %rdi
callq 0x1cbe0
addq $-0x70, %r14
cmpq $-0x70, %r14
jne 0x2ff6d
movq %rbx, %rdi
callq 0xdaa0
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x1cc42
jmp 0x2ff5c
movq %rax, %rbx
jmp 0x2ff69
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x1367e
jmp 0x2ffbb
movq %rax, %rbx
movq %r15, %r14
leaq 0xc0(%rsp), %rdi
callq 0x1367e
cmpq %r14, %r15
je 0x2ff87
leaq 0xe0(%rsp), %r15
addq $-0x70, %r14
movq %r14, %rdi
callq 0x1cbe0
cmpq %r15, %r14
jne 0x2ffd5
jmp 0x2ff87