Explicit end marker for models printed in the CVC language (#3934)
authorYing Sheng <sqy1415@gmail.com>
Sun, 8 Mar 2020 05:01:16 +0000 (21:01 -0800)
committerGitHub <noreply@github.com>
Sun, 8 Mar 2020 05:01:16 +0000 (21:01 -0800)
commita0b35a8ba9c47ed521082c5ac5a8f50909d9f7c4
tree78ac2d6fcc4f93145bfd199844e5aadf3c610847
parent76c1710e99f2e9ca2109762394eaefcbc4a5557c
Explicit end marker for models printed in the CVC language (#3934)

Fixes https://github.com/CVC4/cvc4-wishues/issues/9.

When communicating with CVC4 using pipes and the CVC language, it was not possible to determine when all the lines of a model have been printed.

This change adds begin and end markers as the example below:
```
MODEL BEGIN
x : INT = -3;
y : INT = 0;
z : INT = 0;
MODEL END;
```
src/printer/cvc/cvc_printer.cpp
src/printer/cvc/cvc_printer.h
test/regress/CMakeLists.txt
test/regress/regress0/print_lambda.cvc
test/regress/regress0/print_model.cvc [new file with mode: 0644]