/*
** Splint - annotation-assisted static program checker
-** Copyright (C) 1994-2002 University of Virginia,
+** Copyright (C) 1994-2003 University of Virginia,
** Massachusetts Institute of Technology
**
** This program is free software; you can redistribute it and/or modify it
return ret;
}
+/*drl added 3/7/2003*/
+bool stateClause_hasEmptyReferences (stateClause s)
+{
+ if (sRefSet_isUndefined(s->refs) )
+ return TRUE;
+ else
+ return FALSE;
+}
+
+bool stateClause_isMetaState (stateClause s)
+{
+
+ if (qual_isMetaState (s->squal) )
+ return TRUE;
+ else
+ return FALSE;
+}
+/*end drl added*/
+
stateClause
stateClause_create (lltok tok, qual q, sRefSet s)
{
}
else if (qual_isAliasQual (sq))
{
- return (sRefModVal) sRef_setAliasKind; /*@i23 complete? @*/
+ return (sRefModVal) sRef_setAliasKind;
}
else
{
llassert (cl->kind == SP_QUAL || cl->kind == SP_GLOBAL);
sq = cl->squal;
-
- /*@+relaxtypes@*/ /*@i523 this is wrong, remove the enumint@*/
- /*@+enumint@*/
+
+ /*@+enumint@*/
+ /*
+ ** Since this can be many different types of state kinds, we need to allow all
+ ** enum's to be returned as int.
+ */
if (qual_isNotNull (sq))
{