Add support for get learned literals in the API (#8099)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Fri, 4 Mar 2022 14:37:54 +0000 (08:37 -0600)
committerGitHub <noreply@github.com>
Fri, 4 Mar 2022 14:37:54 +0000 (14:37 +0000)
commit8bd0cb485ecdc405102e7cbace37baf5c687f1b8
tree7a205104135943a456b6b92fc0be576c1d89b246
parent231eaa4afb7f65d14e75170ef74c75a6d1def7bc
Add support for get learned literals in the API (#8099)

This command will eventually take a mode; for now it assumes a default implementation. I've opened cvc5/cvc5-wishues#104 to track this.

This is a feature requested by Certora.
27 files changed:
src/api/cpp/cvc5.cpp
src/api/cpp/cvc5.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/options/smt_options.toml
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/prop/prop_engine.cpp
src/prop/prop_engine.h
src/prop/theory_proxy.cpp
src/prop/theory_proxy.h
src/prop/zero_level_learner.cpp
src/prop/zero_level_learner.h
src/smt/command.cpp
src/smt/command.h
src/smt/solver_engine.cpp
src/smt/solver_engine.h
test/regress/CMakeLists.txt
test/regress/regress1/get-learned-literals.smt2 [new file with mode: 0644]
test/unit/api/cpp/solver_black.cpp
test/unit/api/java/SolverTest.java
test/unit/api/python/test_solver.py