diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-11-27 02:13:38 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-11-27 02:13:38 +0000 |
commit | b122cec27ca27d0b48e786191448e0053be78ed0 (patch) | |
tree | 615981d8623e830894f02fc528b173ac7461f934 /src/printer/smt2 | |
parent | 3da16da97df7cd2efd4b113db3bfef8b9c138ebe (diff) |
Tuples and records merge. Resolves bug 270.
Also some fixes to parametric datatypes I found, and fixes for a handful of bugs, including some observed with --check-models --incremental on together.
(this commit was certified error- and warning-free by the test-and-commit script.)
Diffstat (limited to 'src/printer/smt2')
-rw-r--r-- | src/printer/smt2/smt2_printer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index c3fb3b782..ae589eba6 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -281,6 +281,15 @@ void Smt2Printer::toStream(std::ostream& out, TNode n, break; // datatypes + case kind::APPLY_TYPE_ASCRIPTION: { + out << "as "; + toStream(out, n[0], toDepth < 0 ? toDepth : toDepth - 1, types); + out << ' '; + TypeNode t = TypeNode::fromType(n.getOperator().getConst<AscriptionType>().getType()); + out << (t.isFunctionLike() ? t.getRangeType() : t); + stillNeedToPrintParams = false; + } + break; case kind::APPLY_TESTER: case kind::APPLY_CONSTRUCTOR: case kind::APPLY_SELECTOR: |