diff options
Diffstat (limited to 'src/printer')
-rw-r--r-- | src/printer/smt2/smt2_printer.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index fd9d20e4b..8c122f26d 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -903,6 +903,21 @@ void Smt2Printer::toStream(std::ostream& out, } break; } + case kind::TUPLE_PROJECT: + { + TupleProjectOp op = n.getOperator().getConst<TupleProjectOp>(); + if (op.getIndices().empty()) + { + // e.g. (tuple_project tuple) + out << "project " << n[0] << ")"; + } + else + { + // e.g. ((_ tuple_project 2 4 4) tuple) + out << "(_ tuple_project" << op << ") " << n[0] << ")"; + } + return; + } case kind::CONSTRUCTOR_TYPE: { out << n[n.getNumChildren()-1]; |