From c4a96dc3a0ace41e5f746207847a57ce1c6d4d33 Mon Sep 17 00:00:00 2001 From: Clark Barrett Date: Fri, 4 May 2012 17:18:02 +0000 Subject: [PATCH] Guard for expensive Debug trace --- 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 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); -- 2.30.2