Support sygus version 2.1 command assume (#7081)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Tue, 14 Sep 2021 21:29:32 +0000 (16:29 -0500)
committerGitHub <noreply@github.com>
Tue, 14 Sep 2021 21:29:32 +0000 (21:29 +0000)
commit74c5067d81b8384701cff7f6e7b697d7fe67cf58
tree686d06c8fe27f122a0c8a6ad05d74c487570e966
parentd34e563fe48c42aa06eea44191a21dcf29772339
Support sygus version 2.1 command assume (#7081)

Adds support for global assumptions in sygus files.

Also guards against cases of declare-const, which should be prohibited in sygus.
18 files changed:
src/api/cpp/cvc5.cpp
src/api/cpp/cvc5.h
src/parser/smt2/Smt2.g
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
src/smt/sygus_solver.cpp
src/smt/sygus_solver.h
test/regress/CMakeLists.txt
test/regress/regress0/sygus/assume-simple.sy [new file with mode: 0644]
test/regress/regress0/sygus/pLTL-sygus-syntax-err.sy
test/regress/regress1/sygus/replicate-mod-assume.sy [new file with mode: 0644]
test/unit/api/solver_black.cpp