From d8883776ce80199096f99d1088910d478fd0cd6e Mon Sep 17 00:00:00 2001 From: Tim King Date: Tue, 11 Sep 2012 00:20:51 +0000 Subject: Partially reverting the changes made in 4308. There is now both an Expr and Node version of getValue() in TheoryModel. --- src/theory/model.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/theory/model.cpp') diff --git a/src/theory/model.cpp b/src/theory/model.cpp index 67640c309..dc0ae7877 100644 --- a/src/theory/model.cpp +++ b/src/theory/model.cpp @@ -46,12 +46,16 @@ void TheoryModel::reset(){ d_rep_set.clear(); } -Expr TheoryModel::getValue( const Expr& expr ){ - Node n = Node::fromExpr( expr ); +Node TheoryModel::getValue( TNode n ){ //apply substitutions Node nn = d_substitutions.apply( n ); //get value in model - Node ret = getModelValue( nn ); + return getModelValue( nn ); +} + +Expr TheoryModel::getValue( const Expr& expr ){ + Node n = Node::fromExpr( expr ); + Node ret = getValue( n ); return ret.toExpr(); } @@ -553,4 +557,4 @@ Node TheoryEngineModelBuilder::normalizeNode( TheoryModel* m, Node r, std::map< }else{ return r; } -} \ No newline at end of file +} -- cgit v1.2.3