diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-10-28 16:21:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 16:21:53 -0500 |
commit | 66e80ff2464bfd7fb0904d972b43b96ff2bd9da8 (patch) | |
tree | 5a5d1918a0c9f696edf7b9be556f879f673aacd4 /src/printer/printer.cpp | |
parent | eb812afac2884131b21948aee3da9d8c1e92ba98 (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.cpp | 3 |
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) */ |