void test_skip_abbreviations(void) {
  const char *start;
  char *completed;
  vle_compl_reset();
  complete_options("", &start);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("all", completed, __FUNCTION__, 105);
  } while (0);
  free(completed);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("cpoptions", completed, __FUNCTION__, 109);
  } while (0);
  free(completed);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("fastrun", completed, __FUNCTION__, 113);
  } while (0);
  free(completed);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("fusehome", completed, __FUNCTION__, 117);
  } while (0);
  free(completed);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("sort", completed, __FUNCTION__, 121);
  } while (0);
  free(completed);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("sortorder", completed, __FUNCTION__, 125);
  } while (0);
  free(completed);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("tabstop", completed, __FUNCTION__, 129);
  } while (0);
  free(completed);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("vifminfo", completed, __FUNCTION__, 133);
  } while (0);
  free(completed);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("", completed, __FUNCTION__, 137);
  } while (0);
  free(completed);
}


x86 assembly (clang, -O0):
<test_skip_abbreviations>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1070 <vle_compl_reset@plt>
lea    0xed0(%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    0xe77(%rip),%rdi
lea    0xe74(%rip),%rdx
mov    $0x69,%ecx
mov    $0x0,%al
call   1060 <seatest_assert_string_equal@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1040 <vle_compl_next@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe5f(%rip),%rdi
lea    0xe40(%rip),%rdx
mov    $0x6d,%ecx
mov    $0x0,%al
call   1060 <seatest_assert_string_equal@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1040 <vle_compl_next@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe35(%rip),%rdi
lea    0xe0c(%rip),%rdx
mov    $0x71,%ecx
mov    $0x0,%al
call   1060 <seatest_assert_string_equal@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1040 <vle_compl_next@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe09(%rip),%rdi
lea    0xdd8(%rip),%rdx
mov    $0x75,%ecx
mov    $0x0,%al
call   1060 <seatest_assert_string_equal@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1040 <vle_compl_next@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xdde(%rip),%rdi
lea    0xda4(%rip),%rdx
mov    $0x79,%ecx
mov    $0x0,%al
call   1060 <seatest_assert_string_equal@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1040 <vle_compl_next@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xdaf(%rip),%rdi
lea    0xd70(%rip),%rdx
mov    $0x7d,%ecx
mov    $0x0,%al
call   1060 <seatest_assert_string_equal@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1040 <vle_compl_next@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xd85(%rip),%rdi
lea    0xd3c(%rip),%rdx
mov    $0x81,%ecx
mov    $0x0,%al
call   1060 <seatest_assert_string_equal@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1040 <vle_compl_next@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xd59(%rip),%rdi
lea    0xd08(%rip),%rdx
mov    $0x85,%ecx
mov    $0x0,%al
call   1060 <seatest_assert_string_equal@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1040 <vle_compl_next@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xd0d(%rip),%rdi
lea    0xcd4(%rip),%rdx
mov    $0x89,%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_skip_abbreviations>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
xor    %eax,%eax
call   1070 <vle_compl_reset@plt>
lea    0xecf(%rip),%r14
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <complete_options@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
lea    0xe79(%rip),%rdi
lea    0xe76(%rip),%r15
mov    %rbx,%rsi
mov    %r15,%rdx
mov    $0x69,%ecx
xor    %eax,%eax
call   1060 <seatest_assert_string_equal@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
lea    0xe63(%rip),%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    $0x6d,%ecx
xor    %eax,%eax
call   1060 <seatest_assert_string_equal@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
lea    0xe42(%rip),%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    $0x71,%ecx
xor    %eax,%eax
call   1060 <seatest_assert_string_equal@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
lea    0xe1f(%rip),%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    $0x75,%ecx
xor    %eax,%eax
call   1060 <seatest_assert_string_equal@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
lea    0xdfd(%rip),%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    $0x79,%ecx
xor    %eax,%eax
call   1060 <seatest_assert_string_equal@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
lea    0xdd7(%rip),%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    $0x7d,%ecx
xor    %eax,%eax
call   1060 <seatest_assert_string_equal@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
lea    0xdb6(%rip),%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    $0x81,%ecx
xor    %eax,%eax
call   1060 <seatest_assert_string_equal@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
lea    0xd93(%rip),%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    $0x85,%ecx
xor    %eax,%eax
call   1060 <seatest_assert_string_equal@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    $0x89,%ecx
xor    %eax,%eax
call   1060 <seatest_assert_string_equal@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c"all\00"
@__FUNCTION__.test_skip_abbreviations = [24 x i8] c"test_skip_abbreviations\00"
@.str.2 = [10 x i8] c"cpoptions\00"
@.str.3 = [8 x i8] c"fastrun\00"
@.str.4 = [9 x i8] c"fusehome\00"
@.str.5 = [5 x i8] c"sort\00"
@.str.6 = [10 x i8] c"sortorder\00"
@.str.7 = [8 x i8] c"tabstop\00"
@.str.8 = [9 x i8] c"vifminfo\00"
define void @test_skip_abbreviations() {
%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 ([1 x i8], [1 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 ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %9, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 105)
br label %11
11: ; preds = %8
%12 = load i8*, i8** %2
%13 = call i32 (...) @vle_compl_next()
%14 = sext i32 %13 to i64
%15 = inttoptr i64 %14 to i8*
store i8* %15, i8** %2
br label %16
16: ; preds = %11
%17 = load i8*, i8** %2
%18 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %17, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 109)
br label %19
19: ; preds = %16
%20 = load i8*, i8** %2
%21 = call i32 (...) @vle_compl_next()
%22 = sext i32 %21 to i64
%23 = inttoptr i64 %22 to i8*
store i8* %23, i8** %2
br label %24
24: ; preds = %19
%25 = load i8*, i8** %2
%26 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %25, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 113)
br label %27
27: ; preds = %24
%28 = load i8*, i8** %2
%29 = call i32 (...) @vle_compl_next()
%30 = sext i32 %29 to i64
%31 = inttoptr i64 %30 to i8*
store i8* %31, i8** %2
br label %32
32: ; preds = %27
%33 = load i8*, i8** %2
%34 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %33, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 117)
br label %35
35: ; preds = %32
%36 = load i8*, i8** %2
%37 = call i32 (...) @vle_compl_next()
%38 = sext i32 %37 to i64
%39 = inttoptr i64 %38 to i8*
store i8* %39, i8** %2
br label %40
40: ; preds = %35
%41 = load i8*, i8** %2
%42 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %41, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 121)
br label %43
43: ; preds = %40
%44 = load i8*, i8** %2
%45 = call i32 (...) @vle_compl_next()
%46 = sext i32 %45 to i64
%47 = inttoptr i64 %46 to i8*
store i8* %47, i8** %2
br label %48
48: ; preds = %43
%49 = load i8*, i8** %2
%50 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %49, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 125)
br label %51
51: ; preds = %48
%52 = load i8*, i8** %2
%53 = call i32 (...) @vle_compl_next()
%54 = sext i32 %53 to i64
%55 = inttoptr i64 %54 to i8*
store i8* %55, i8** %2
br label %56
56: ; preds = %51
%57 = load i8*, i8** %2
%58 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* %57, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 129)
br label %59
59: ; preds = %56
%60 = load i8*, i8** %2
%61 = call i32 (...) @vle_compl_next()
%62 = sext i32 %61 to i64
%63 = inttoptr i64 %62 to i8*
store i8* %63, i8** %2
br label %64
64: ; preds = %59
%65 = load i8*, i8** %2
%66 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* %65, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 133)
br label %67
67: ; preds = %64
%68 = load i8*, i8** %2
%69 = call i32 (...) @vle_compl_next()
%70 = sext i32 %69 to i64
%71 = inttoptr i64 %70 to i8*
store i8* %71, i8** %2
br label %72
72: ; preds = %67
%73 = load i8*, i8** %2
%74 = 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, i64 0, i64 0), i8* %73, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 137)
br label %75
75: ; preds = %72
%76 = load i8*, i8** %2
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c"all\00"
@__FUNCTION__.test_skip_abbreviations = [24 x i8] c"test_skip_abbreviations\00"
@.str.2 = [10 x i8] c"cpoptions\00"
@.str.3 = [8 x i8] c"fastrun\00"
@.str.4 = [9 x i8] c"fusehome\00"
@.str.5 = [5 x i8] c"sort\00"
@.str.6 = [10 x i8] c"sortorder\00"
@.str.7 = [8 x i8] c"tabstop\00"
@.str.8 = [9 x i8] c"vifminfo\00"
define void @test_skip_abbreviations() {
%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 ([1 x i8], [1 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 ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %7, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 105)
%9 = call i32 (...) @vle_compl_next()
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to i8*
%12 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %11, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 109)
%13 = call i32 (...) @vle_compl_next()
%14 = sext i32 %13 to i64
%15 = inttoptr i64 %14 to i8*
%16 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %15, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 113)
%17 = call i32 (...) @vle_compl_next()
%18 = sext i32 %17 to i64
%19 = inttoptr i64 %18 to i8*
%20 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %19, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 117)
%21 = call i32 (...) @vle_compl_next()
%22 = sext i32 %21 to i64
%23 = inttoptr i64 %22 to i8*
%24 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %23, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 121)
%25 = call i32 (...) @vle_compl_next()
%26 = sext i32 %25 to i64
%27 = inttoptr i64 %26 to i8*
%28 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %27, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 125)
%29 = call i32 (...) @vle_compl_next()
%30 = sext i32 %29 to i64
%31 = inttoptr i64 %30 to i8*
%32 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* %31, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 129)
%33 = call i32 (...) @vle_compl_next()
%34 = sext i32 %33 to i64
%35 = inttoptr i64 %34 to i8*
%36 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_string_equal to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* %35, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 133)
%37 = call i32 (...) @vle_compl_next()
%38 = sext i32 %37 to i64
%39 = inttoptr i64 %38 to i8*
%40 = 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, i64 0, i64 0), i8* %39, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @__FUNCTION__.test_skip_abbreviations, i64 0, i64 0), i32 137)
ret void
}