diff options
Diffstat (limited to 'src/preprocessing/preprocessing_pass.cpp')
-rw-r--r-- | src/preprocessing/preprocessing_pass.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/preprocessing/preprocessing_pass.cpp b/src/preprocessing/preprocessing_pass.cpp index 965edcd2f..cd2a51c45 100644 --- a/src/preprocessing/preprocessing_pass.cpp +++ b/src/preprocessing/preprocessing_pass.cpp @@ -18,6 +18,7 @@ #include "smt/dump.h" #include "smt/smt_statistics_registry.h" +#include "printer/printer.h" namespace CVC4 { namespace preprocessing { @@ -39,8 +40,13 @@ void PreprocessingPass::dumpAssertions(const char* key, if (Dump.isOn("assertions") && Dump.isOn(std::string("assertions:") + key)) { // Push the simplified assertions to the dump output stream - for (const auto& n : assertionList) { - Dump("assertions") << AssertCommand(Expr(n.toExpr())); + OutputManager& outMgr = d_preprocContext->getSmt()->getOutputManager(); + const Printer& printer = outMgr.getPrinter(); + std::ostream& out = outMgr.getDumpOut(); + + for (const auto& n : assertionList) + { + printer.toStreamCmdAssert(out, n); } } } |