void test_all_completion_ok(void) {
  const char *start;
  char *completed;
  vle_compl_reset();
  complete_options("all=", &start);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("", completed, __FUNCTION__, 372);
  } while (0);
  free(completed);
}


x86 assembly (clang, -O0):
<test_all_completion_ok>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1070 <vle_compl_reset@plt>
lea    0xe9a(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1050 <complete_options@plt>
mov    $0x0,%al
call   1040 <vle_compl_next@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe7b(%rip),%rdi
lea    0xe75(%rip),%rdx
mov    $0x174,%ecx
mov    $0x0,%al
call   1060 <seatest_assert_string_equal@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_all_completion_ok>:
push   %rbx
sub    $0x10,%rsp
xor    %eax,%eax
call   1070 <vle_compl_reset@plt>
lea    0xe9d(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1050 <complete_options@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
lea    0xe84(%rip),%rdi
lea    0xe7e(%rip),%rdx
mov    %rbx,%rsi
mov    $0x174,%ecx
xor    %eax,%eax
call   1060 <seatest_assert_string_equal@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"all=\00"
@.str.1 = [1 x i8] zeroinitializer
@__FUNCTION__.test_all_completion_ok = [23 x i8] c"test_all_completion_ok\00"
define void @test_all_completion_ok() {
%1 = alloca i8*
%2 = alloca i8*
%3 = call i32 (...) @vle_compl_reset()
%4 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @complete_options to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %1)
%5 = call i32 (...) @vle_compl_next()
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to i8*
store i8* %7, i8** %2
br label %8
8: ; preds = %0
%9 = load i8*, i8** %2
%10 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* %9, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @__FUNCTION__.test_all_completion_ok, i64 0, i64 0), i32 372)
br label %11
11: ; preds = %8
%12 = load i8*, i8** %2
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"all=\00"
@.str.1 = [1 x i8] zeroinitializer
@__FUNCTION__.test_all_completion_ok = [23 x i8] c"test_all_completion_ok\00"
define void @test_all_completion_ok() {
%1 = alloca i8*
%2 = bitcast i8** %1 to i8*
%3 = tail call i32 (...) @vle_compl_reset()
%4 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @complete_options to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %1)
%5 = call i32 (...) @vle_compl_next()
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to i8*
%8 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* %7, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @__FUNCTION__.test_all_completion_ok, i64 0, i64 0), i32 372)
ret void
}