From f5f7ecf3ddd9ed23e5e44f2eefd41c1b11f2a70a Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Mon, 10 Feb 2014 21:05:16 -0500 Subject: New translation work, support Z3-str-style string constraints. --- src/printer/smt2/smt2_printer.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/printer/smt2/smt2_printer.h') diff --git a/src/printer/smt2/smt2_printer.h b/src/printer/smt2/smt2_printer.h index 871b3823a..c70bb78c3 100644 --- a/src/printer/smt2/smt2_printer.h +++ b/src/printer/smt2/smt2_printer.h @@ -27,11 +27,19 @@ namespace CVC4 { namespace printer { namespace smt2 { +enum Variant { + no_variant, + z3str_variant +};/* enum Variant */ + class Smt2Printer : public CVC4::Printer { + Variant d_variant; + void toStream(std::ostream& out, TNode n, int toDepth, bool types) const throw(); void toStream(std::ostream& out, const Model& m, const Command* c) const throw(); void toStream(std::ostream& out, const Model& m) const throw(); public: + Smt2Printer(Variant variant = no_variant) : d_variant(variant) { } using CVC4::Printer::toStream; void toStream(std::ostream& out, TNode n, int toDepth, bool types, size_t dag) const throw(); void toStream(std::ostream& out, const Command* c, int toDepth, bool types, size_t dag) const throw(); -- cgit v1.2.3