# include "exprChecks.h"
# include "exprNodeSList.h"
-/*@-czechfcns@*/
-/*@-nullderef@*/ /* !!! DRL needs to fix this code! */
-/*@-nullstate@*/ /* !!! DRL needs to fix this code! */
-/*@-nullpass@*/ /* !!! DRL needs to fix this code! */
-/*@-temptrans@*/ /* !!! DRL needs to fix this code! */
-/*@access exprNode@*/ /* !!! NO! Don't do this recklessly! */
+
bool constraintTerm_isDefined (constraintTerm t)
{
return FALSE;
}
+/*@access exprNode@*/ /* !!! NO! Don't do this recklessly! */
int constraintTerm_getInitBlockLength (/*@observer@*/ /*@temp@*/ constraintTerm c) /*@*/
{
return ret;
}
-
+/*@noaccess exprNode@*/
bool constraintTerm_isStringLiteral (constraintTerm c) /*@*/
{
fprintf(f, "Param %s %d\n", cstring_toCharsSafe(ctString), (int) param );
cstring_free(ctString);
}
- else if (sRef_isField (s) )
- {
- fprintf(f, "sRef_dump %s\n", cstring_toCharsSafe(sRef_dump(s)) );
- }
else
{
u = sRef_getUentry(s);
sRef s;
char * term;
term = reader_getWord(&str);
+
+ if (term == NULL)
+ {
+ llfatalbug(message("Error reading internal library. File may be currupted"));
+ }
if (strcmp (term, "Result") == 0 )
{
reader_checkChar(&str, ' ');
str2 = reader_getWord(&str);
+ if (str2 == NULL)
+ {
+ llfatalbug(message("Error reading internal library. File may be currupted"));
+ }
+
param = reader_getInt(&str);
ostr2 = str2;
s = sRef_makeParam (param, t, stateInfo_makeLoc (g_currentloc));
free (ostr2);
}
- else if (strcmp (term, "sRef_dump" ) == 0 )
- {
- reader_checkChar(&str, ' ');
- s = sRef_undump (&str);
- }
- else /* This must be an identified that we can search for in usymTab */
+ else /* This must be an identifier that we can search for in usymTab */
{
cstring termStr = cstring_makeLiteralTemp(term);
cstring termStr;
term = reader_getWord(&str);
+
+ if (term == NULL)
+ {
+ llfatalbug(message("Error reading internal library. File may be currupted."));
+ }
+
/* This must be an identifier that we can search for in usymTab */
termStr = cstring_makeLiteralTemp(term);
break;
default:
+ llfatalbug(message("Error reading internal library. File may be currupted."));
BADEXIT;
}
free (os);