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/arrays/theory_arrays.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/arrays/theory_arrays.cpp')
-rw-r--r-- | src/theory/arrays/theory_arrays.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/theory/arrays/theory_arrays.cpp b/src/theory/arrays/theory_arrays.cpp index fd88c751a..03a9d7a4c 100644 --- a/src/theory/arrays/theory_arrays.cpp +++ b/src/theory/arrays/theory_arrays.cpp @@ -1144,15 +1144,7 @@ inline void TheoryArrays::addExtLemma(TNode a, TNode b) { NodeManager* nm = NodeManager::currentNM(); TypeNode ixType = a.getType()[0]; Node k = nm->mkVar(ixType); - if(Dump.isOn("declarations")) { - stringstream kss; - kss << Expr::setlanguage(Expr::setlanguage::getLanguage(Dump("declarations"))) << k; - string ks = kss.str(); - Dump("declarations") - << CommentCommand(ks + " is an extensional lemma index variable " - "from the theory of arrays") << endl - << DeclareFunctionCommand(ks, ixType.toType()) << endl; - } + Dump.declareVar(k.toExpr(), "an extensional lemma index variable from the theory of arrays"); Node eq = nm->mkNode(kind::EQUAL, a, b); Node ak = nm->mkNode(kind::SELECT, a, k); Node bk = nm->mkNode(kind::SELECT, b, k); |