Add a `define-fun` command for each `:named` term. (#7308)
authorAbdalrhman Mohamed <32971963+abdoo8080@users.noreply.github.com>
Thu, 28 Oct 2021 17:04:06 +0000 (12:04 -0500)
committerGitHub <noreply@github.com>
Thu, 28 Oct 2021 17:04:06 +0000 (17:04 +0000)
commit08eb3932ec2e666c40275c8eab1ca49a61158943
treeaccf4982976e2161080e9bf56506eec3beeb630b
parentdd850b74cb3ff5ab043ccfa124443791dcbcc0bf
Add a `define-fun` command for each `:named` term. (#7308)

This PR is step towards enabling -o raw-benchmark for regressions. It creates a define-fun command for each named term. This allows us to reparse dumped benchmarks containing named terms, but we still lose track of those terms and do not print them in response to (get-assignment) and (get-unsat-core) commands. This PR also simplifies the interface for DefineFunCommand interface and removes support for (define ...) command.
18 files changed:
NEWS
examples/api/python/sygus-inv.py
src/api/cpp/cvc5.cpp
src/api/cpp/cvc5.h
src/api/cpp/cvc5_checks.h
src/api/java/io/github/cvc5/api/Solver.java
src/api/java/jni/solver.cpp
src/api/python/cvc5.pxd
src/api/python/cvc5.pxi
src/main/command_executor.cpp
src/parser/smt2/Smt2.g
src/smt/command.cpp
src/smt/command.h
test/python/unit/api/test_solver.py
test/regress/regress0/push-pop/inc-define.smt2
test/regress/regress0/smtlib/issue4552.smt2
test/unit/api/java/SolverTest.java
test/unit/api/solver_black.cpp