From cf640b735157b0f5d053a7b938ee452dcfd00c66 Mon Sep 17 00:00:00 2001 From: Clark Barrett Date: Sun, 27 May 2012 00:38:30 +0000 Subject: [PATCH] Another expensive function call in a Debug line --- src/theory/term_registration_visitor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/theory/term_registration_visitor.cpp b/src/theory/term_registration_visitor.cpp index e1ef51d09..099871ceb 100644 --- a/src/theory/term_registration_visitor.cpp +++ b/src/theory/term_registration_visitor.cpp @@ -171,7 +171,9 @@ bool SharedTermsVisitor::alreadyVisited(TNode current, TNode parent) const { void SharedTermsVisitor::visit(TNode current, TNode parent) { Debug("register") << "SharedTermsVisitor::visit(" << current << "," << parent << ")" << std::endl; - Debug("register::internal") << toString() << std::endl; + if (Debug.isOn("register::internal")) { + Debug("register::internal") << toString() << std::endl; + } // Get the theories of the terms TheoryId currentTheoryId = Theory::theoryOf(current); -- 2.30.2