summaryrefslogtreecommitdiff
path: root/src/printer/printer.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2014-08-25 18:40:06 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2014-08-26 15:20:32 -0400
commit525e7328cad1ac8afbc60ed8103e06665cf5b163 (patch)
tree61d8f46addfa6e76b233b234025df9bf54f7aea1 /src/printer/printer.cpp
parent34a27e2fef540ee3d90c43f771397e0e9ce3fef9 (diff)
Improved SMT-LIBv2 language support for unsat cores.
Diffstat (limited to 'src/printer/printer.cpp')
-rw-r--r--src/printer/printer.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/printer/printer.cpp b/src/printer/printer.cpp
index 7a90f5a49..dd2e180e1 100644
--- a/src/printer/printer.cpp
+++ b/src/printer/printer.cpp
@@ -154,10 +154,16 @@ void Printer::toStream(std::ostream& out, const Model& m) const throw() {
}/* Printer::toStream(Model) */
void Printer::toStream(std::ostream& out, const UnsatCore& core) const throw() {
+ std::map<Expr, std::string> names;
+ toStream(out, core, names);
+}/* Printer::toStream(UnsatCore) */
+
+void Printer::toStream(std::ostream& out, const UnsatCore& core, const std::map<Expr, std::string>& names) const throw() {
for(UnsatCore::iterator i = core.begin(); i != core.end(); ++i) {
- toStream(out, Node::fromExpr(*i), -1, false, -1);
+ AssertCommand cmd(*i);
+ toStream(out, &cmd, -1, false, -1);
out << std::endl;
}
-}/* Printer::toStream(UnsatCore) */
+}/* Printer::toStream(UnsatCore, std::map<Expr, std::string>) */
}/* CVC4 namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback