Ensure no cost for datatypes debugging when not tracing it.
authorMorgan Deters <mdeters@cs.nyu.edu>
Mon, 9 Sep 2013 18:41:21 +0000 (14:41 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Mon, 9 Sep 2013 21:21:41 +0000 (17:21 -0400)
src/theory/datatypes/theory_datatypes.cpp

index cbbee4a1451d8fcbb55441a3319799b6b1e123d7..9dc8c0028bb82095c85bdbc00e8e0a029b971d07 100644 (file)
@@ -1082,6 +1082,10 @@ Node TheoryDatatypes::getRepresentative( Node a ){
 
 
 void TheoryDatatypes::printModelDebug( const char* c ){
+  if(! (Trace.isOn(c))) {
+    return;
+  }
+
   Trace( c ) << "Datatypes model : " << std::endl;
   eq::EqClassesIterator eqcs_i = eq::EqClassesIterator( &d_equalityEngine );
   while( !eqcs_i.isFinished() ){