void test_colon(void) {
  const char *start;
  char *completed;
  vle_compl_reset();
  complete_options("fusehome:a\\ b\\ ", &start);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("a\\ b\\ ", completed, __FUNCTION__, 252);
  } while (0);
  free(completed);
  vle_compl_reset();
  complete_options("fusehome:a\\ b ", &start);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("all", completed, __FUNCTION__, 259);
  } while (0);
  free(completed);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("cpoptions", completed, __FUNCTION__, 263);
  } while (0);
  free(completed);
  completed = vle_compl_next();
  do {
    seatest_assert_string_equal("fastrun", completed, __FUNCTION__, 267);
  } while (0);
  free(completed);
}


x86 assembly (clang, -O0):
<test_colon>:
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    0xe80(%rip),%rdi
lea    0xe80(%rip),%rdx
mov    $0xfc,%ecx
mov    $0x0,%al
call   1060 <seatest_assert_string_equal@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1070 <vle_compl_reset@plt>
lea    0xe68(%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    0xe54(%rip),%rdi
lea    0xe33(%rip),%rdx
mov    $0x103,%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    0xe24(%rip),%rdi
lea    0xdff(%rip),%rdx
mov    $0x107,%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    0xdfa(%rip),%rdi
lea    0xdcb(%rip),%rdx
mov    $0x10b,%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_colon>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
xor    %eax,%eax
call   1070 <vle_compl_reset@plt>
lea    0xe99(%rip),%rdi
lea    0x8(%rsp),%r15
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <complete_options@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
lea    0xe82(%rip),%rdi
lea    0xe82(%rip),%r14
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0xfc,%ecx
xor    %eax,%eax
call   1060 <seatest_assert_string_equal@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
call   1070 <vle_compl_reset@plt>
lea    0xe65(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <complete_options@plt>
xor    %eax,%eax
call   1040 <vle_compl_next@plt>
movslq %eax,%rbx
lea    0xe59(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x103,%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    0xe32(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x107,%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    0xe11(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x10b,%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 = [16 x i8] c"fusehome:a\\ b\\ \00"
@.str.1 = [7 x i8] c"a\\ b\\ \00"
@__FUNCTION__.test_colon = [11 x i8] c"test_colon\00"
@.str.2 = [15 x i8] c"fusehome:a\\ b \00"
@.str.3 = [4 x i8] c"all\00"
@.str.4 = [10 x i8] c"cpoptions\00"
@.str.5 = [8 x i8] c"fastrun\00"
define void @test_colon() {
%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 ([16 x i8], [16 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 ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.test_colon, i64 0, i64 0), i32 252)
br label %11
11: ; preds = %8
%12 = load i8*, i8** %2
%13 = call i32 (...) @vle_compl_reset()
%14 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @complete_options to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8** %1)
%15 = call i32 (...) @vle_compl_next()
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to i8*
store i8* %17, i8** %2
br label %18
18: ; preds = %11
%19 = load i8*, i8** %2
%20 = 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.3, i64 0, i64 0), i8* %19, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.test_colon, i64 0, i64 0), i32 259)
br label %21
21: ; preds = %18
%22 = load i8*, i8** %2
%23 = call i32 (...) @vle_compl_next()
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to i8*
store i8* %25, i8** %2
br label %26
26: ; preds = %21
%27 = load i8*, i8** %2
%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.4, i64 0, i64 0), i8* %27, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.test_colon, i64 0, i64 0), i32 263)
br label %29
29: ; preds = %26
%30 = load i8*, i8** %2
%31 = call i32 (...) @vle_compl_next()
%32 = sext i32 %31 to i64
%33 = inttoptr i64 %32 to i8*
store i8* %33, i8** %2
br label %34
34: ; preds = %29
%35 = load i8*, i8** %2
%36 = 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.5, i64 0, i64 0), i8* %35, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.test_colon, i64 0, i64 0), i32 267)
br label %37
37: ; preds = %34
%38 = load i8*, i8** %2
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"fusehome:a\\ b\\ \00"
@.str.1 = [7 x i8] c"a\\ b\\ \00"
@__FUNCTION__.test_colon = [11 x i8] c"test_colon\00"
@.str.2 = [15 x i8] c"fusehome:a\\ b \00"
@.str.3 = [4 x i8] c"all\00"
@.str.4 = [10 x i8] c"cpoptions\00"
@.str.5 = [8 x i8] c"fastrun\00"
define void @test_colon() {
%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 ([16 x i8], [16 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 ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.test_colon, i64 0, i64 0), i32 252)
%9 = call i32 (...) @vle_compl_reset()
%10 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @complete_options to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8** %1)
%11 = call i32 (...) @vle_compl_next()
%12 = sext i32 %11 to i64
%13 = inttoptr i64 %12 to i8*
%14 = 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.3, i64 0, i64 0), i8* %13, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.test_colon, i64 0, i64 0), i32 259)
%15 = call i32 (...) @vle_compl_next()
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to i8*
%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.4, i64 0, i64 0), i8* %17, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.test_colon, i64 0, i64 0), i32 263)
%19 = call i32 (...) @vle_compl_next()
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i8*
%22 = 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.5, i64 0, i64 0), i8* %21, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.test_colon, i64 0, i64 0), i32 267)
ret void
}