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/util/ite_removal.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/util/ite_removal.cpp')
-rw-r--r-- | src/util/ite_removal.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/util/ite_removal.cpp b/src/util/ite_removal.cpp index bd5048040..dfa6e3cba 100644 --- a/src/util/ite_removal.cpp +++ b/src/util/ite_removal.cpp @@ -55,13 +55,7 @@ Node RemoveITE::run(TNode node, std::vector<Node>& output) { // Make the skolem to represent the ITE Node skolem = nodeManager->mkVar(nodeType); - if(Dump.isOn("declarations")) { - stringstream kss; - kss << Expr::setlanguage(Expr::setlanguage::getLanguage(Dump("declarations"))) << skolem; - string ks = kss.str(); - Dump("declarations") << CommentCommand(ks + " is a variable introduced due to term-level ITE removal") << endl - << DeclareFunctionCommand(ks, nodeType.toType()) << endl; - } + Dump.declareVar(skolem.toExpr(), "a variable introduced due to term-level ITE removal"); // The new assertion Node newAssertion = |