// File: /workspace/github_cpp_makefile_star2_O2/halfflat[P]tinyopt/test/test_run.cc
// Function: run_ephemeral_Test::TestBody()
TEST(run, ephemeral) {
    int a = 0;
    int b = 0;

    to::option opts[] = {
        { a, "-a", to::ephemeral },
        { b, "-b" }
    };

    mockargs M("-a\09\0-b\08\0");
    auto r = to::run(opts, M.argc, M.argv);
    EXPECT_EQ(9, a);
    EXPECT_EQ(8, b);
    EXPECT_EQ(0, M.argc);
    ASSERT_TRUE(r);
    EXPECT_EQ((svector{"-b", "8"}), svector(r->begin(), r->end()));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
leaq 0x94(%rsp), %rax
andl $0x0, (%rax)
andl $0x0, 0x3c(%rsp)
leaq 0x100(%rsp), %rsi
andq $0x0, 0x8(%rsi)
movq %rax, (%rsi)
leaq -0x1b1c1(%rip), %rbx    # 0x138e0
movq %rbx, 0x18(%rsi)
leaq -0x1b1c6(%rip), %r12    # 0x138e6
movq %r12, 0x10(%rsi)
leaq 0x50(%rsp), %rcx
movl $0x2, (%rcx)
leaq 0x28927(%rip), %rdx     # 0x573e9
leaq 0x120(%rsp), %r15
movq %r15, %rdi
callq 0x32ff6
leaq 0x190(%rsp), %r14
leaq 0xe0(%rsp), %rsi
andq $0x0, 0x8(%rsi)
leaq 0x3c(%rsp), %rax
movq %rax, (%rsi)
movq %rbx, 0x18(%rsi)
movq %r12, 0x10(%rsi)
leaq 0x288f4(%rip), %rdx     # 0x573f2
movq %r14, %rdi
callq 0x33328
leaq 0xe0(%rsp), %rdi
callq 0x1367e
leaq 0x100(%rsp), %rdi
callq 0x1367e
leaq 0x2acb9(%rip), %rsi     # 0x597e0
leaq 0xb8(%rsp), %rdi
callq 0x2488e
leaq 0xb8(%rsp), %rdx
movq 0x8(%rdx), %rcx
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %r8
movaps %xmm0, (%r8)
andq $0x0, 0x10(%r8)
leaq 0x98(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x33094
leaq 0x50(%rsp), %rdi
callq 0x1cc42
movq %rsp, %rcx
movl $0x9, (%rcx)
leaq 0x28bf0(%rip), %rsi     # 0x57770
leaq 0x28863(%rip), %rdx     # 0x573ea
leaq 0x50(%rsp), %rdi
leaq 0x94(%rsp), %r8
callq 0x13a52
cmpb $0x0, 0x50(%rsp)
jne 0x2ebfb
movq %rsp, %rdi
callq 0x3d5f6
movq 0x58(%rsp), %rax
testq %rax, %rax
je 0x2ebb7
movq (%rax), %r8
jmp 0x2ebbe
leaq 0x2a4ac(%rip), %r8      # 0x5906a
leaq 0x2a725(%rip), %rdx     # 0x592ea
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rsi
pushq $0x43
popq %rcx
callq 0x3b5b6
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x39b08
leaq 0x20(%rsp), %rdi
callq 0x3b616
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2ebfb
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x58(%rsp), %rdi
callq 0x13646
movq %rsp, %rcx
movl $0x8, (%rcx)
leaq 0x2ca67(%rip), %rsi     # 0x5b67c
leaq 0x287d7(%rip), %rdx     # 0x573f3
leaq 0x50(%rsp), %rdi
leaq 0x3c(%rsp), %r8
callq 0x13a52
cmpb $0x0, 0x50(%rsp)
jne 0x2ec8d
movq %rsp, %rdi
callq 0x3d5f6
movq 0x58(%rsp), %rax
testq %rax, %rax
je 0x2ec49
movq (%rax), %r8
jmp 0x2ec50
leaq 0x2a41a(%rip), %r8      # 0x5906a
leaq 0x2a693(%rip), %rdx     # 0x592ea
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rsi
pushq $0x44
popq %rcx
callq 0x3b5b6
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x39b08
leaq 0x20(%rsp), %rdi
callq 0x3b616
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2ec8d
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x58(%rsp), %rdi
callq 0x13646
movq %rsp, %rcx
andl $0x0, (%rcx)
leaq 0x2e0a4(%rip), %rsi     # 0x5cd48
leaq 0x29317(%rip), %rdx     # 0x57fc2
leaq 0x50(%rsp), %rdi
leaq 0xb8(%rsp), %r8
callq 0x13a52
cmpb $0x0, 0x50(%rsp)
jne 0x2ed1f
movq %rsp, %rdi
callq 0x3d5f6
movq 0x58(%rsp), %rax
testq %rax, %rax
je 0x2ecdb
movq (%rax), %r8
jmp 0x2ece2
leaq 0x2a388(%rip), %r8      # 0x5906a
leaq 0x2a601(%rip), %rdx     # 0x592ea
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rsi
pushq $0x45
popq %rcx
callq 0x3b5b6
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x39b08
leaq 0x20(%rsp), %rdi
callq 0x3b616
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2ed1f
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x58(%rsp), %rdi
callq 0x13646
movb 0x98(%rsp), %al
leaq 0x8(%rsp), %r14
movb %al, -0x8(%r14)
andq $0x0, (%r14)
testb %al, %al
je 0x2ee24
movq %r14, %rdi
callq 0x13646
leaq 0x2869e(%rip), %rsi     # 0x573f2
leaq 0x50(%rsp), %rdi
leaq 0x1f(%rsp), %rdx
callq 0x1337a
leaq 0x70(%rsp), %rdi
leaq 0x2c90d(%rip), %rsi     # 0x5b67c
leaq 0x1e(%rsp), %rdx
callq 0x1337a
movq %rsp, %rdi
leaq 0x50(%rsp), %rsi
pushq $0x2
popq %rdx
leaq 0x1d(%rsp), %rcx
callq 0x1cc08
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
leaq 0x20(%rsp), %rdi
leaq 0x1c(%rsp), %rcx
callq 0x332f6
leaq 0x2a5f7(%rip), %rsi     # 0x593ab
leaq 0x2a605(%rip), %rdx     # 0x593c0
leaq 0x40(%rsp), %rdi
movq %rsp, %rcx
leaq 0x20(%rsp), %r8
callq 0x1f395
leaq 0x20(%rsp), %rdi
callq 0x1cc42
movq %rsp, %rdi
callq 0x1cc42
pushq $0x20
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x50, %rdi
callq 0xdbe8
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0x2ede2
cmpb $0x0, 0x40(%rsp)
jne 0x2eee5
leaq 0x50(%rsp), %rdi
callq 0x3d5f6
movq 0x48(%rsp), %rax
testq %rax, %rax
je 0x2eea4
movq (%rax), %r8
jmp 0x2eeab
leaq 0x20(%rsp), %rdi
callq 0x3d5f6
leaq 0x29614(%rip), %rdx     # 0x58449
leaq 0x272d3(%rip), %rcx     # 0x5610f
leaq 0x272d2(%rip), %r8      # 0x56115
leaq 0x50(%rsp), %rdi
movq %rsp, %rsi
callq 0x399e5
movq 0x50(%rsp), %r8
leaq 0x2a48e(%rip), %rdx     # 0x592ea
leaq 0x40(%rsp), %rdi
pushq $0x2
popq %rsi
pushq $0x46
popq %rcx
callq 0x3b5b6
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x39b08
leaq 0x40(%rsp), %rdi
callq 0x3b616
leaq 0x50(%rsp), %rdi
callq 0xdbe8
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x2ee9f
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
jmp 0x2eeea
leaq 0x2a1bf(%rip), %r8      # 0x5906a
leaq 0x2a438(%rip), %rdx     # 0x592ea
movq %rsp, %rdi
pushq $0x1
popq %rsi
pushq $0x47
popq %rcx
callq 0x3b5b6
movq %rsp, %rdi
leaq 0x50(%rsp), %rsi
callq 0x39b08
movq %rsp, %rdi
callq 0x3b616
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2eee5
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x48(%rsp), %rdi
callq 0x13646
leaq 0x98(%rsp), %rdi
callq 0x34214
leaq 0xc8(%rsp), %rdi
callq 0x25080
pushq $0x70
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x120, %rdi            # imm = 0x120
callq 0x1cbe0
addq $-0x70, %rbx
cmpq $-0x70, %rbx
jne 0x2ef0c
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x3b616
jmp 0x2ef45
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2ef5a
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x2ef5a
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x2f023
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x1cc42
jmp 0x2ef85
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x3b616
jmp 0x2ef92
movq %rax, %rbx
movq %rsp, %rdi
callq 0x1cc42
jmp 0x2efa1
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xdbe8
jmp 0x2efc1
movq %rax, %rbx
pushq $0x20
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x50, %rdi
callq 0xdbe8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x2efa5
jmp 0x2f031
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x2efe7
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x2efe7
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xdbe8
jmp 0x2f031
jmp 0x2eff8
movq %rax, %rbx
movq %r14, %rdi
jmp 0x2f023
jmp 0x2f02e
jmp 0x2f007
jmp 0x2f01b
jmp 0x2eff8
jmp 0x2f007
jmp 0x2f01b
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3b616
jmp 0x2f00a
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2f01e
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x2f01e
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x13646
jmp 0x2f031
jmp 0x2f02e
jmp 0x2f02e
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x34214
leaq 0xc8(%rsp), %rdi
callq 0x25080
pushq $0x70
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x120, %rdi            # imm = 0x120
callq 0x1cbe0
addq $-0x70, %r14
cmpq $-0x70, %r14
jne 0x2f04f
movq %rbx, %rdi
callq 0xdaa0
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x1cc42
jmp 0x2f03e
movq %rax, %rbx
jmp 0x2f04b
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x1367e
jmp 0x2f09d
movq %rax, %rbx
movq %r15, %r14
leaq 0x100(%rsp), %rdi
callq 0x1367e
cmpq %r14, %r15
je 0x2f069
leaq 0x120(%rsp), %r15
addq $-0x70, %r14
movq %r14, %rdi
callq 0x1cbe0
cmpq %r15, %r14
jne 0x2f0b7
jmp 0x2f069