From ecdd09877ecc4c07a22cc27cd2dd5441134476ba Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Thu, 9 Aug 2012 13:48:37 +0000 Subject: minor isConst()-related fixes to printing; also add some debugging stuff to see how isConst() operates: use -d isConst --- src/printer/dagification_visitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/printer/dagification_visitor.cpp') diff --git a/src/printer/dagification_visitor.cpp b/src/printer/dagification_visitor.cpp index 580bec63c..f22b35152 100644 --- a/src/printer/dagification_visitor.cpp +++ b/src/printer/dagification_visitor.cpp @@ -54,11 +54,11 @@ bool DagificationVisitor::alreadyVisited(TNode current, TNode parent) { // for all subexpressions, so it isn't useful to traverse and // increment again (they'll be dagified anyway). return current.isVar() || - current.isConst() || + current.getMetaKind() == kind::metakind::CONSTANT || ( ( current.getKind() == kind::NOT || current.getKind() == kind::UMINUS ) && ( current[0].isVar() || - current[0].isConst() ) ) || + current[0].getMetaKind() == kind::metakind::CONSTANT ) ) || current.getKind() == kind::SORT_TYPE || d_nodeCount[current] > d_threshold; } -- cgit v1.2.3