示例#1
0
void testValues() {
    f = 2;
    char* result;
    char buf[IF_NAMESIZE];
    
    result = if_indextoname(anyuint(), buf);
    //@ assert result == \null || result == buf;
    
    //@ assert f == 2;
    //@ assert vacuous: \false;
}
示例#2
0
void testValues() {
    f = 2;
    int result, result2;
    unsigned int x;
    
    x = anyuint();
    srand(x);
    result = rand();
    srand(x);
    result2 = rand();
    //@ assert result == result2;
    
    //@ assert f == 2;
    //@ assert vacuous: \false;
}
示例#3
0
void runFailure() {
    if_indextoname(anyuint(), NULL);
}
示例#4
0
void runSuccess() {
    char buf[IF_NAMESIZE];
    if_indextoname(anyuint(), buf);
}
示例#5
0
void runFailure1() {
    char buf[1];
    if_indextoname(anyuint(), buf);
}