Guard for expensive Debug trace
authorClark Barrett <barrett@cs.nyu.edu>
Fri, 4 May 2012 17:18:02 +0000 (17:18 +0000)
committerClark Barrett <barrett@cs.nyu.edu>
Fri, 4 May 2012 17:18:02 +0000 (17:18 +0000)
src/theory/term_registration_visitor.cpp

index 897c0fa2d904d9789973a0bb4bc7f29b45f58aca..1ed4525f45ff743d189990d7a0a2df37b070b6dd 100644 (file)
@@ -67,7 +67,9 @@ void PreRegisterVisitor::visit(TNode current, TNode parent) {
   Theory::Set theories;
 
   Debug("register") << "PreRegisterVisitor::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);