Refactor Commands to use the Public API. (#5105)
authorAbdalrhman Mohamed <32971963+abdoo8080@users.noreply.github.com>
Wed, 23 Sep 2020 03:12:17 +0000 (22:12 -0500)
committerGitHub <noreply@github.com>
Wed, 23 Sep 2020 03:12:17 +0000 (22:12 -0500)
commit5c062833d435e3dde5db3a8223c379a3e8cca520
tree6be788d43297565e4a7bc769b45ec54930abb8df
parent56f2e6dc41fa5fbeff1755978fa1854e800846b5
Refactor Commands to use the Public API. (#5105)

This is work towards eliminating the Expr layer. This PR does the following:

Replace Expr/Type with Term/Sort in the API for commands.
Remove the command export functionality which is not supported.
Since many commands now call the Solver functions instead of the SmtEngine ones, their behavior may be a slightly different. For example, (get-unsat-assumptions) now only works in incremental mode. In some cases, CVC4 will not recover from non-fatal errors.
17 files changed:
src/api/cvc4cpp.cpp
src/api/cvc4cpp.h
src/main/command_executor.cpp
src/main/command_executor.h
src/main/driver_unified.cpp
src/main/interactive_shell.cpp
src/parser/cvc/Cvc.g
src/parser/smt2/Smt2.g
src/parser/smt2/smt2.cpp
src/parser/tptp/Tptp.g
src/parser/tptp/tptp.cpp
src/smt/command.cpp
src/smt/command.h
src/smt/smt_engine.h
test/api/smt2_compliance.cpp
test/regress/CMakeLists.txt
test/regress/regress0/smtlib/get-unsat-assumptions.smt2