89 Commits

Author SHA1 Message Date
Alex Ozdemir
6388657820 Change name of Python API's package from pycvc5 to cvc5. (#7953)
In the process, I changed a CMake target name from pycvc5 to
cvc5_base_py_api. I could not change the target to cvc5, because that
name is taken.
2022-02-02 23:45:42 +00:00
mudathirmahgoub
437c346559 Add relations.cpp, relations.py examples (#7801) 2021-12-17 19:23:16 +00:00
Gereon Kremer
881464ade1 Turn kinds in python API into a proper Enum (#7686)
This PR does multiple things:
- the kinds are changed from custom objects to a proper enum.Enum class
  (including according changes to the cython code and the kind generation scripts)
- all examples and tests are modified to account for the change how to use kinds
  (Kind instead of kinds)
- add docstrings to the kind enum values
- add a custom documenter that properly renders enums via autodoc
- extend doxygen setup so that we can write comments as rst (allowing us to copy
  the documentation for kinds from the cpp api to the other apis)
2021-12-08 04:16:03 +00:00
Sujit Kumar Muduli
7baa69442e Bug in printing parameter list in define_fun_to_string (#7700)
Signed-off-by: Sujit Muduli <smuduli@cse.iitk.ac.in>
2021-11-29 16:37:36 +00:00
Aina Niemetz
923c9a6b86 examples: Update python api datatypes example. (#7692)
The C++ datatypes example was extended in #7689. This updates the Python
API datatypes example accordingly.
2021-11-24 22:17:43 +00:00
Aina Niemetz
68d6329d38 sets: Rename set.intersection to set.inter. (#7622)
This further renames kind SET_INTERSECTION to SET_INTER.
2021-11-10 00:36:33 +00:00
Aina Niemetz
f2fb0be988 sets: Rename kinds with a more consistent naming scheme. (#7595)
This prefixes sets kinds with SET_ and relation kinds with
RELATION_. It also prefixes the corresponding SMT-LIB operators with
'set.' and relation operators with 'rel.'.
2021-11-08 12:49:14 -08:00
Abdalrhman Mohamed
08eb3932ec 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.
2021-10-28 17:04:06 +00:00
Mathias Preiner
e116c00719 Remove CVC language support (#7219)
This commit removes the support for the CVC language and converts all *.cvc regression tests to SMT-LIBv2.
2021-09-22 20:38:46 +00:00
Aina Niemetz
99af3afc7e api: Require size argument for mkBitVector. (#6998)
This removes support for creating bit-vectors from a string without a
size argument. We further also now require that the base argument is
always given (it has no default value).
2021-08-23 16:50:06 +00:00
yoni206
4222d84399 Make the python quickstart example run using ctest (#7023) 2021-08-19 23:43:13 +00:00
yoni206
040c3a7a34 Python quick start example (#6939)
This is a translation of quickstart.cpp to python.
2021-07-29 16:43:30 +00:00
Gereon Kremer
898f11d094 Add doc page about transcendentals (#6755)
This PR adds a theory reference page for the transcendental extension.
2021-07-05 21:13:47 -05:00
Aina Niemetz
b8d09076cf Make symfpu a required dependency. (#6749) 2021-06-16 21:04:09 +00:00
Aina Niemetz
c95d4c5473 FP: Rename FLOATINGPOINT_PLUS to FLOATINGPOINT_ADD. (#6628)
This is to make it consistent with the name of the SMT-LIB operator
(fp.add).
2021-05-27 19:08:24 +00:00
Aina Niemetz
9670dd4357 BV: Rename BITVECTOR_PLUS to BITVECTOR_ADD. (#6589) 2021-05-21 00:41:50 +00:00
yoni206
bfa34c5393 Avoid using printSynthSolution in the python API and examples (#6564)
The function printSynthSolution declared here is going to be removed in #6521.

This PR removes it from the python API.
Following #6530, this PR also replaces its usages in the examples by a utility function.
For this, we also add support for getSynthSolutions in the python API.
2021-05-20 15:29:27 +00:00
Alex Ozdemir
bcd2e8e2fd Add getId function to python API (#6523)
(Z3 exposes it to facilitate custom hashes)
2021-05-14 11:34:38 +00:00
Mathias Preiner
ae5ee4b07d Goodbye CVC4, hello cvc5! (#6371)
This commits changes the build system to cvc5 and removes the remaining
occurrences of CVC4. It further cleans up outdated/unused scripts in contrib/.
2021-04-21 10:21:34 -07:00
Aina Niemetz
eee194ba0e Remove support for CVC3 language. (#6369) 2021-04-20 20:25:10 +00:00
Aina Niemetz
7ec3005875 Refactor and update copyright headers. (#6316) 2021-04-12 19:31:43 +00:00
Aina Niemetz
f87f038c5f Rename CVC4_ macros to CVC5_. (#6327) 2021-04-09 17:22:07 -07:00
Aina Niemetz
b302cb1f92 Update copyright headers to 2021. (#6081) 2021-03-09 07:27:03 +00:00
Aina Niemetz
92e9feab5f Update copyright headers. 2020-12-02 19:55:00 -08:00
Andrew Reynolds
798524d033 Updates to API in preparation for using symbol manager for model (#5481)
printModel no longer makes sense if the list of declared symbols is managed outside the solver.

Also, mkConst needs a variant to distinguish a provided name of "" vs. a name that is not provided.
2020-11-20 14:49:55 -06:00