summaryrefslogtreecommitdiff
path: root/src/printer
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2012-09-11 00:20:51 +0000
committerTim King <taking@cs.nyu.edu>2012-09-11 00:20:51 +0000
commitd8883776ce80199096f99d1088910d478fd0cd6e (patch)
tree1425084ba75c36b00656c74d59dd8ebf5bf88a1a /src/printer
parent680af6f4dc9e5d6616918e8fde18cd64774d0df5 (diff)
Partially reverting the changes made in 4308. There is now both an Expr and Node version of getValue() in TheoryModel.
Diffstat (limited to 'src/printer')
-rw-r--r--src/printer/cvc/cvc_printer.cpp2
-rw-r--r--src/printer/smt2/smt2_printer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/printer/cvc/cvc_printer.cpp b/src/printer/cvc/cvc_printer.cpp
index 9e61fb8df..5803ad23f 100644
--- a/src/printer/cvc/cvc_printer.cpp
+++ b/src/printer/cvc/cvc_printer.cpp
@@ -777,7 +777,7 @@ void CvcPrinter::toStream(std::ostream& out, Model* m, Command* c, int c_type )
}
out << "): ";
}
- out << Node::fromExpr( tm->getValue( n.toExpr() ) );
+ out << tm->getValue( n );
out << ";" << std::endl;
/*
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp
index 6c6d2a576..9400b7732 100644
--- a/src/printer/smt2/smt2_printer.cpp
+++ b/src/printer/smt2/smt2_printer.cpp
@@ -558,7 +558,7 @@ void Smt2Printer::toStream(std::ostream& out, Model* m, Command* c, int c_type )
out << ") " << tn;
}
out << " ";
- out << Node::fromExpr( tm->getValue( n.toExpr() ) );
+ out << tm->getValue( n );
out << ")" << std::endl;
/*
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback