diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-03-09 21:10:17 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-03-09 21:10:17 +0000 |
commit | 84f26af22566f7c10dea45b399b944cb50b5e317 (patch) | |
tree | 68fbe22665cc09f46c321c6132e49dabbc15c337 /src/theory/theory_engine.cpp | |
parent | f29ea80fb3e238278a721d79077c9087bccbac0b (diff) |
Some work on the dump infrastructure to support portfolio work.
Dump("foo") << FooCommand(...);
now "dumps" the textual representation of the command (in the current
output language) to a file, IF dumping is on at configure-time, AND the
"muzzle" feature is off, AND the "foo" flag is turned on for the dump
stream during this run.
If it's a portfolio build, the above will also store the command in a
CommandSequence, IF the "foo" flag is turned on for the dump stream
during this run. This is done even if the muzzle is on.
This commit also cleans up some code that used the dump feature (in arrays,
particularly).
Diffstat (limited to 'src/theory/theory_engine.cpp')
-rw-r--r-- | src/theory/theory_engine.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/theory/theory_engine.cpp b/src/theory/theory_engine.cpp index 2950ad413..ebfc797a1 100644 --- a/src/theory/theory_engine.cpp +++ b/src/theory/theory_engine.cpp @@ -160,8 +160,8 @@ void TheoryEngine::check(Theory::Effort effort) { if(Dump.isOn("missed-t-conflicts")) { Dump("missed-t-conflicts") - << CommentCommand("Completeness check for T-conflicts; expect sat") << endl - << CheckSatCommand() << endl; + << CommentCommand("Completeness check for T-conflicts; expect sat") + << CheckSatCommand(); } Debug("theory") << "TheoryEngine::check(" << effort << "): running propagation after the initial check" << std::endl; @@ -311,8 +311,8 @@ void TheoryEngine::propagate(Theory::Effort effort) { ++i) { if(d_hasPropagated.find(*i) == d_hasPropagated.end()) { Dump("missed-t-propagations") - << CommentCommand("Completeness check for T-propagations; expect invalid") << endl - << QueryCommand((*i).toExpr()) << endl; + << CommentCommand("Completeness check for T-propagations; expect invalid") + << QueryCommand((*i).toExpr()); } } } @@ -605,8 +605,8 @@ void TheoryEngine::propagate(TNode literal, theory::TheoryId theory) { d_propEngine->checkTime(); if(Dump.isOn("t-propagations")) { - Dump("t-propagations") << CommentCommand("negation of theory propagation: expect valid") << std::endl - << QueryCommand(literal.toExpr()) << std::endl; + Dump("t-propagations") << CommentCommand("negation of theory propagation: expect valid") + << QueryCommand(literal.toExpr()); } if(Dump.isOn("missed-t-propagations")) { d_hasPropagated.insert(literal); @@ -717,8 +717,8 @@ Node TheoryEngine::getExplanation(TNode node) { Assert(!explanation.isNull()); if(Dump.isOn("t-explanations")) { - Dump("t-explanations") << CommentCommand(std::string("theory explanation from ") + theoryOf(atom)->identify() + ": expect valid") << std::endl - << QueryCommand(explanation.impNode(node).toExpr()) << std::endl; + Dump("t-explanations") << CommentCommand(std::string("theory explanation from ") + theoryOf(atom)->identify() + ": expect valid") + << QueryCommand(explanation.impNode(node).toExpr()); } Assert(properExplanation(node, explanation)); @@ -731,8 +731,8 @@ void TheoryEngine::conflict(TNode conflict, TheoryId theoryId) { d_inConflict = true; if(Dump.isOn("t-conflicts")) { - Dump("t-conflicts") << CommentCommand("theory conflict: expect unsat") << std::endl - << CheckSatCommand(conflict.toExpr()) << std::endl; + Dump("t-conflicts") << CommentCommand("theory conflict: expect unsat") + << CheckSatCommand(conflict.toExpr()); } if (d_sharedTermsExist) { |