From 50c94c993c08678849026cdbb47564458239895c Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Sun, 9 Jun 2013 23:11:55 -0400 Subject: [PATCH] another fix for array-store-all printing --- src/printer/smt2/smt2_printer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); + out << "(__array_store_all__ " << asa.getType() << " " << asa.getExpr() << ")"; + break; + } + case kind::SUBRANGE_TYPE: { const SubrangeBounds& bounds = n.getConst(); // 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 -- 2.30.2