// File: /workspace/github_cpp_makefile_star2_O3/AndreRenaud[P]simple_options/simple_options_test.c
// Function: combined
static void combined(void)
{
	const char *file = NULL;
	int64_t val = 5;
	bool flag = false;
	struct option_entry entries[] = {
		{"file", 'f', "File to load", OPTION_FLAG_string, .string = &file},
		{"number", 'n', "Number", OPTION_FLAG_int, .integer = &val},
		{"bool", 'b', "Boolean", OPTION_FLAG_bool, .boolean = &flag},
		{NULL, 0},
	};
	char input[] = {"program -f fnord --number=4 --bool=on -n7"};
	const char *argv[10];
	int argc;
	argc = opt_parse_split_string(input, argv, 10);
	TEST_CHECK(argc == 6);
	TEST_CHECK(opt_parse(argc, argv, entries) >= 0);
	TEST_CHECK(file && strcmp(file, "fnord") == 0);
	TEST_CHECK(val == 7);
	TEST_CHECK(entries[0].present);
	TEST_CHECK(flag == true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
leaq 0x18(%rsp), %rax
movq $0x0, (%rax)
movq %rax, %rsi
leaq 0x10(%rsp), %rax
movq $0x5, (%rax)
xorl %ebx, %ebx
leaq 0xf(%rsp), %rcx
movb %bl, (%rcx)
leaq 0x2666(%rip), %rdx      # 0x7036
leaq 0xa0(%rsp), %r14
movq %rdx, (%r14)
movb $0x66, 0x8(%r14)
leaq 0x1e2e(%rip), %rdx      # 0x6815
movq %rdx, 0x10(%r14)
movl $0x4, 0x18(%r14)
movq %rsi, 0x20(%r14)
movb %bl, 0x28(%r14)
leaq 0x1e5f(%rip), %rdx      # 0x6861
movq %rdx, 0x30(%r14)
movb $0x6e, 0x38(%r14)
leaq 0x1e10(%rip), %rdx      # 0x6822
movq %rdx, 0x40(%r14)
movl $0x2, 0x48(%r14)
movq %rax, 0x50(%r14)
movb %bl, 0x58(%r14)
leaq 0x1e3d(%rip), %rax      # 0x686a
movq %rax, 0x60(%r14)
movb $0x62, 0x68(%r14)
leaq 0x1dec(%rip), %rax      # 0x6829
movq %rax, 0x70(%r14)
movl $0x1, 0x78(%r14)
movq %rcx, 0x80(%r14)
movb %bl, 0x88(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%r14)
movaps %xmm0, 0xa0(%r14)
movaps %xmm0, 0xb0(%r14)
movups 0x28f1(%rip), %xmm0     # 0x736a
leaq 0x20(%rsp), %rdi
movups %xmm0, 0x1a(%rdi)
movaps 0x28d7(%rip), %xmm0     # 0x7360
movaps %xmm0, 0x10(%rdi)
movaps 0x28bc(%rip), %xmm0     # 0x7350
movaps %xmm0, (%rdi)
leaq 0x50(%rsp), %r15
movq %r15, %rsi
movl $0xa, %edx
callq 0x2bad
movl %eax, %ebp
xorl %edi, %edi
cmpl $0x6, %eax
sete %dil
leaq 0x1dcc(%rip), %r12      # 0x6887
leaq 0x1593(%rip), %r13      # 0x6055
leaq 0x206c(%rip), %r8       # 0x6b35
movq %r12, %rsi
movl $0x57, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0x2c34
movl %ebp, %edi
movq %r15, %rsi
movq %r14, %rdx
callq 0x276e
notl %eax
shrl $0x1f, %eax
leaq 0x204b(%rip), %r8       # 0x6b3f
movl %eax, %edi
movq %r12, %rsi
movl $0x58, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0x2c34
leaq 0x18(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x4b28
leaq 0x1d3d(%rip), %rsi      # 0x6859
callq 0x2190
xorl %ebx, %ebx
testl %eax, %eax
sete %bl
leaq 0x1d58(%rip), %r15      # 0x6887
leaq 0x151f(%rip), %r14      # 0x6055
leaq 0x1d82(%rip), %r8       # 0x68bf
movl %ebx, %edi
movq %r15, %rsi
movl $0x59, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x2c34
xorl %edi, %edi
cmpq $0x7, 0x10(%rsp)
sete %dil
leaq 0x1daa(%rip), %r8       # 0x690e
movq %r15, %rsi
movl $0x5a, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x2c34
movzbl 0xc8(%rsp), %edi
leaq 0x1fde(%rip), %r8       # 0x6b63
movq %r15, %rsi
movl $0x5b, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x2c34
movzbl 0xf(%rsp), %edi
leaq 0x1e83(%rip), %r8       # 0x6a26
movq %r15, %rsi
movl $0x5c, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x2c34
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq