// File: /workspace/github_cpp_makefile_star2_O3/halfflat[P]tinyopt/ex/ex2-run.cc
// Function: main
int main(int argc, char** argv) {
    try {
        std::vector<int> x;
        auto help = [argv0 = argv[0]] { to::usage(argv0, usage_str); };

        to::option opts[] = {
            { {x, to::delimited<int>()}, "--sum" },
            { to::action(help), to::flag, to::exit, "-h", "--help" }
        };

        if (!to::run(opts, argc, argv+1)) return 0;
        if (argv[1]) throw to::option_error("unrecognized argument", argv[1]);

        std::cout << std::accumulate(x.begin(), x.end(), 0) << "\n";
    }
    catch (to::option_error& e) {
        to::usage_error(argv[0], usage_str, e.what());
        return 1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %rbx
movl %edi, 0x2c(%rsp)
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rax
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq (%rsi), %r14
leaq 0x90(%rsp), %rsi
movq $0x2c, 0x8(%rsi)
movq %rax, (%rsi)
leaq 0x119c(%rip), %rax      # 0x36b0
movq %rax, 0x18(%rsi)
leaq 0x1197(%rip), %rax      # 0x36b6
movq %rax, 0x10(%rsi)
leaq 0x4b7c(%rip), %rdx      # 0x70a6
leaq 0xd0(%rsp), %r12
movq %r12, %rdi
callq 0x2b02
leaq 0x140(%rsp), %r12
leaq 0x70(%rsp), %rsi
movq $0x0, 0x8(%rsi)
movq %r14, (%rsi)
leaq 0x4b9(%rip), %rax       # 0x2a12
movq %rax, 0x18(%rsi)
leaq 0x578(%rip), %rax       # 0x2adc
movq %rax, 0x10(%rsi)
leaq 0x8(%rsp), %rdx
movl $0x1, (%rdx)
leaq 0x50(%rsp), %rcx
movl $0x10, (%rcx)
leaq 0x4b27(%rip), %r8       # 0x70ac
leaq 0x4b23(%rip), %r9       # 0x70af
movq %r12, %rdi
callq 0x2bfe
movq 0x80(%rsp), %rax
testq %rax, %rax
je 0x25b0
leaq 0x70(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0xa0(%rsp), %rax
testq %rax, %rax
je 0x25cf
leaq 0x90(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x8(%rbx), %r14
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %r8
movaps %xmm0, (%r8)
movq $0x0, 0x10(%r8)
leaq 0x8(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x2c(%rsp), %rdx
movq %r14, %rcx
callq 0x2cb8
cmpb $0x0, 0x8(%rsp)
je 0x2647
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x2f9a
movb $0x0, -0x8(%r15)
leaq 0x50(%rsp), %rdi
callq 0x2f9a
cmpq $0x0, (%r14)
jne 0x26fd
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
xorl %esi, %esi
cmpq %rcx, %rax
je 0x2658
addl (%rax), %esi
addq $0x4, %rax
jmp 0x263a
movb $0x0, 0x8(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x2f9a
jmp 0x2678
movq 0x8971(%rip), %rdi      # 0xafd0
callq 0x2260
leaq 0x4a39(%rip), %rsi      # 0x70a4
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movl $0xe0, %r14d
leaq (%rsp,%r14), %rdi
addq $0xb0, %rdi
callq 0x32dc
leaq (%rsp,%r14), %rdi
addq $0x98, %rdi
callq 0x330c
leaq (%rsp,%r14), %rbx
addq $0x80, %rbx
movq %rbx, %rdi
callq 0x333c
movq -0x10(%rbx), %rax
testq %rax, %rax
je 0x26cc
leaq (%rsp,%r14), %rdi
addq $0x60, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x70, %r14
jne 0x267e
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x26e9
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
xorl %eax, %eax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x30, %edi
callq 0x20c0
movq %rax, %r12
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x499c(%rip), %rsi      # 0x70b6
leaq 0x49aa(%rip), %rdx      # 0x70cb
leaq 0x8(%rsp), %rdi
callq 0x3566
movq (%r14), %rsi
leaq 0xb0(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x2ff8
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
movq %r12, %rdi
callq 0x3036
xorl %ebp, %ebp
leaq 0x8527(%rip), %rsi      # 0xac88
leaq 0x20b8(%rip), %rdx      # 0x4820
movq %r12, %rdi
callq 0x2250
movq %rdx, %r15
movq %rax, %r14
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2797
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x27ae
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
testb %bpl, %bpl
jne 0x27da
jmp 0x2806
movq %rdx, %r15
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x27da
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x27da
movq %rdx, %r15
movq %rax, %r14
movq %r12, %rdi
callq 0x2120
jmp 0x2806
jmp 0x2a0a
jmp 0x2a0a
movq %rdx, %r15
movq %rax, %r14
jmp 0x2806
movq %rdx, %r15
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x2f9a
movl $0x70, %r12d
leaq (%rsp,%r12), %rdi
addq $0xd0, %rdi
callq 0x4f16
addq $-0x70, %r12
cmpq $-0x70, %r12
jne 0x280c
jmp 0x2894
movq %rdx, %r15
movq %rax, %r14
movq 0x80(%rsp), %rax
testq %rax, %rax
je 0x2857
leaq 0x70(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2857
jmp 0x2a0a
movq %rdx, %r15
movq %rax, %r14
movq 0xa0(%rsp), %rax
testq %rax, %rax
je 0x2876
leaq 0x90(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xd0(%rsp), %r13
cmpq %r12, %r13
je 0x2894
addq $-0x70, %r12
movq %r12, %rdi
callq 0x4f16
cmpq %r13, %r12
jne 0x2883
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x28ab
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
cmpl $0x1, %r15d
jne 0x2a00
movq %r14, %rdi
callq 0x2090
movq %rax, %r14
movq (%rbx), %rbx
movq 0x8896(%rip), %rsi      # 0xb160
leaq 0xd0(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x2ff8
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0x2ff8
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x47c5(%rip), %rsi      # 0x70cc
leaq 0x47c5(%rip), %rdx      # 0x70d3
leaq 0x30(%rsp), %rdi
callq 0x3566
leaq 0xd0(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq %rbx, %rdi
callq 0x319f
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x2949
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2180
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2964
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2985
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2180
callq 0x2220
movl $0x1, %eax
jmp 0x26eb
jmp 0x2a0a
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x29b5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x29b5
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29d5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x29d5
movq %rax, %r14
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29fb
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x29fb
movq %rax, %r14
callq 0x2220
movq %r14, %rdi
callq 0x2270
jmp 0x2a0a
movq %rax, %rdi
callq 0x32d1