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; }
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; }
void runFailure() { if_indextoname(anyuint(), NULL); }
void runSuccess() { char buf[IF_NAMESIZE]; if_indextoname(anyuint(), buf); }
void runFailure1() { char buf[1]; if_indextoname(anyuint(), buf); }