Use symbol manager for get assignment (#5451)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Wed, 18 Nov 2020 14:34:12 +0000 (08:34 -0600)
committerGitHub <noreply@github.com>
Wed, 18 Nov 2020 14:34:12 +0000 (08:34 -0600)
commit3c246952ce90ae7c27b4c0646fce05bc69037f46
treeabb7ef449ad0329157a5e5188a7500e8ea1d55c6
parent8cdef42785fd294d1727ce1df1b11d754c9bb3d1
Use symbol manager for get assignment (#5451)

This replaces the previous methods for get-assignment which involving making a DefinedNamedFunctIonCommand and storing the expression names map in the SmtEngine.

Note: we now limit :named terms to those not beneath quantifiers and let-bindings.
18 files changed:
src/api/cvc4cpp.cpp
src/parser/smt2/Smt2.g
src/parser/smt2/smt2.cpp
src/parser/smt2/smt2.h
src/printer/ast/ast_printer.cpp
src/printer/ast/ast_printer.h
src/printer/cvc/cvc_printer.cpp
src/printer/cvc/cvc_printer.h
src/printer/printer.cpp
src/printer/printer.h
src/printer/smt2/smt2_printer.cpp
src/printer/smt2/smt2_printer.h
src/smt/command.cpp
src/smt/command.h
src/smt/smt_engine.cpp
src/smt/smt_engine.h
test/regress/CMakeLists.txt
test/regress/regress0/named-expr-use.smt2 [new file with mode: 0644]