summaryrefslogtreecommitdiff
path: root/src/printer
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-06-09 23:11:55 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2013-06-09 23:11:55 -0400
commit50c94c993c08678849026cdbb47564458239895c (patch)
tree319e5d817938bcb6634d8c9d8d5b11cb2ddbd79d /src/printer
parent8cb9ebfe4e50f0ba86526bd2db137016a4364342 (diff)
another fix for array-store-all printing
Diffstat (limited to 'src/printer')
-rw-r--r--src/printer/smt2/smt2_printer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp
index d9717f9b7..f4abee292 100644
--- a/src/printer/smt2/smt2_printer.cpp
+++ b/src/printer/smt2/smt2_printer.cpp
@@ -172,6 +172,12 @@ void Smt2Printer::toStream(std::ostream& out, TNode n,
break;
}
+ case kind::STORE_ALL: {
+ ArrayStoreAll asa = n.getConst<ArrayStoreAll>();
+ out << "(__array_store_all__ " << asa.getType() << " " << asa.getExpr() << ")";
+ break;
+ }
+
case kind::SUBRANGE_TYPE: {
const SubrangeBounds& bounds = n.getConst<SubrangeBounds>();
// No way to represent subranges in SMT-LIBv2; this is inspired
@@ -255,7 +261,6 @@ void Smt2Printer::toStream(std::ostream& out, TNode n,
// arrays theory
case kind::SELECT:
case kind::STORE:
- case kind::STORE_ALL:
case kind::ARRAY_TYPE: out << smtKindString(k) << " "; break;
// bv theory
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback