summaryrefslogtreecommitdiff
path: root/src/printer/smt2/smt2_printer.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-08-03 20:39:25 +0000
committerMorgan Deters <mdeters@gmail.com>2012-08-03 20:39:25 +0000
commit3daaecd22fe5f6147cb08e5a4e08177b33a2daa2 (patch)
tree46cb65c3673a5678a7779ff970aea9460233f1f1 /src/printer/smt2/smt2_printer.cpp
parente26a44d5f98a9953dffeb07b29a21e7efd501684 (diff)
fix uses of getMetaKind() from outside the expr package. (they now use isConst() and isVar() as appropriate)
also some base infrastructure for the new ::isConst().
Diffstat (limited to 'src/printer/smt2/smt2_printer.cpp')
-rw-r--r--src/printer/smt2/smt2_printer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp
index 892de551c..dcb37d3d9 100644
--- a/src/printer/smt2/smt2_printer.cpp
+++ b/src/printer/smt2/smt2_printer.cpp
@@ -80,7 +80,7 @@ void Smt2Printer::toStream(std::ostream& out, TNode n,
}
// variable
- if(n.getMetaKind() == kind::metakind::VARIABLE) {
+ if(n.isVar()) {
string s;
if(n.getAttribute(expr::VarNameAttr(), s)) {
out << s;
@@ -102,7 +102,7 @@ void Smt2Printer::toStream(std::ostream& out, TNode n,
}
// constant
- if(n.getMetaKind() == kind::metakind::CONSTANT) {
+ if(n.isConst()) {
switch(n.getKind()) {
case kind::TYPE_CONSTANT:
switch(n.getConst<TypeConstant>()) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback