diff options
author | Clark Barrett <barrett@cs.nyu.edu> | 2012-05-04 17:18:02 +0000 |
---|---|---|
committer | Clark Barrett <barrett@cs.nyu.edu> | 2012-05-04 17:18:02 +0000 |
commit | c4a96dc3a0ace41e5f746207847a57ce1c6d4d33 (patch) | |
tree | f902b8bcd1d6fb6e387ebb80d7b04131d93369db /src | |
parent | 48597056ca70a0e80c7ad097b728c274931cebc4 (diff) |
Guard for expensive Debug trace
Diffstat (limited to 'src')
-rw-r--r-- | src/theory/term_registration_visitor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/theory/term_registration_visitor.cpp b/src/theory/term_registration_visitor.cpp index 897c0fa2d..1ed4525f4 100644 --- a/src/theory/term_registration_visitor.cpp +++ b/src/theory/term_registration_visitor.cpp @@ -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); |