Made Valuation::getValue() and Valuation::getSatValue() const.
authorTim King <taking@cs.nyu.edu>
Thu, 7 Apr 2011 19:28:25 +0000 (19:28 +0000)
committerTim King <taking@cs.nyu.edu>
Thu, 7 Apr 2011 19:28:25 +0000 (19:28 +0000)
src/theory/valuation.cpp
src/theory/valuation.h

index 9f33c2c4f365aa4ba6409e484a61eaca197f9fc6..536255c2ddbc57aed11c92a56405d3efc024a8d8 100644 (file)
 namespace CVC4 {
 namespace theory {
 
-Node Valuation::getValue(TNode n) {
+Node Valuation::getValue(TNode n) const {
   return d_engine->getValue(n);
 }
 
-Node Valuation::getSatValue(TNode n) {
+Node Valuation::getSatValue(TNode n) const{
   if(n.getKind() == kind::NOT) {
     Node atomRes = d_engine->getPropEngine()->getValue(n[0]);
     if(atomRes.getKind() == kind::CONST_BOOLEAN){
index 94c2bc12f683949dad05372e0ba8fe1b46473196..0c60ec5eaad81daf9c3b732cf2871319ac83b123 100644 (file)
@@ -38,7 +38,7 @@ public:
     d_engine(engine) {
   }
 
-  Node getValue(TNode n);
+  Node getValue(TNode n) const;
 
   /**
    * Get the current SAT assignment to the node n.
@@ -48,7 +48,7 @@ public:
    *
    * @return Node::null() if no current assignment; otherwise true or false.
    */
-  Node getSatValue(TNode n);
+  Node getSatValue(TNode n) const;
 
 };/* class Valuation */