summaryrefslogtreecommitdiff
path: root/src/printer/smt2/smt2_printer.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2014-02-10 21:05:16 -0500
committerMorgan Deters <mdeters@cs.nyu.edu>2014-02-25 15:02:34 -0500
commitf5f7ecf3ddd9ed23e5e44f2eefd41c1b11f2a70a (patch)
treeebf5304156cbc6242cf10329e658d95d810d3360 /src/printer/smt2/smt2_printer.h
parent1b916866274cc238c708f25fbb8c17add33d3376 (diff)
New translation work, support Z3-str-style string constraints.
Diffstat (limited to 'src/printer/smt2/smt2_printer.h')
-rw-r--r--src/printer/smt2/smt2_printer.h8
1 files changed, 8 insertions, 0 deletions
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();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback