]> andersk Git - splint.git/blobdiff - src/valueTable.c
Committing to make sure that the ./configure works.
[splint.git] / src / valueTable.c
index 08d3e33fd9bd9c0c4fb60cf01dfa85def228b696..b86d823aab7f7447f8dc73762967e2cee6a9d758 100644 (file)
@@ -1,6 +1,6 @@
 /*
-** LCLint - annotation-assisted static program checker
-** Copyright (C) 1994-2001 University of Virginia,
+** Splint - annotation-assisted static program checker
+** Copyright (C) 1994-2002 University of Virginia,
 **         Massachusetts Institute of Technology
 **
 ** This program is free software; you can redistribute it and/or modify it
 ** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 ** MA 02111-1307, USA.
 **
-** For information on lclint: lclint-request@cs.virginia.edu
-** To report a bug: lclint-bug@cs.virginia.edu
-** For more information: http://lclint.cs.virginia.edu
+** For information on splint: info@splint.org
+** To report a bug: splint-bug@splint.org
+** For more information: http://www.splint.org
 */
 /*
 ** valueTable.c
 ** Based on genericTable.c
 */
 
-# include "lclintMacros.nf"
+# include "splintMacros.nf"
 # include "basic.h"
 # include "randomNumbers.h"
 
@@ -67,12 +67,13 @@ cstring valueTable_unparse (valueTable h)
 
 void valueTable_insert (valueTable h, cstring key, stateValue value)
 {
+  llassert (stateValue_isDefined (value));
   genericTable_insert ((genericTable) (h), key, (void *) (value));
 }
 
 void valueTable_update (valueTable h, cstring key, stateValue newval) 
 {
   DPRINTF (("Update: %s -> %s", key, stateValue_unparse (newval)));
-
+  llassert (stateValue_isDefined (newval));
   genericTable_update ((genericTable) (h), key, (void *) (newval));
 }
This page took 0.039218 seconds and 4 git commands to generate.