summaryrefslogtreecommitdiff
path: root/src/printer/printer.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-10-28 16:21:53 -0500
committerGitHub <noreply@github.com>2020-10-28 16:21:53 -0500
commit66e80ff2464bfd7fb0904d972b43b96ff2bd9da8 (patch)
tree5a5d1918a0c9f696edf7b9be556f879f673aacd4 /src/printer/printer.cpp
parenteb812afac2884131b21948aee3da9d8c1e92ba98 (diff)
Remove more uses of Expr (#5357)
This PR removes more uses of Expr, mostly related to UnsatCore. It makes UnsatCore a cvc4_private object storing Node instead of Expr.
Diffstat (limited to 'src/printer/printer.cpp')
-rw-r--r--src/printer/printer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/printer/printer.cpp b/src/printer/printer.cpp
index e760c21aa..195247df7 100644
--- a/src/printer/printer.cpp
+++ b/src/printer/printer.cpp
@@ -23,6 +23,7 @@
#include "printer/cvc/cvc_printer.h"
#include "printer/smt2/smt2_printer.h"
#include "printer/tptp/tptp_printer.h"
+#include "proof/unsat_core.h"
#include "smt/command.h"
#include "smt/node_command.h"
@@ -88,7 +89,7 @@ void Printer::toStream(std::ostream& out, const smt::Model& m) const
void Printer::toStream(std::ostream& out, const UnsatCore& core) const
{
for(UnsatCore::iterator i = core.begin(); i != core.end(); ++i) {
- toStreamCmdAssert(out, Node::fromExpr(*i));
+ toStreamCmdAssert(out, *i);
out << std::endl;
}
}/* Printer::toStream(UnsatCore) */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback