21 Commits

Author SHA1 Message Date
José Neto
fe5d4fed98 api: Refactor OptionInfo struct to provide option category. (#11931)
Refactor options to expose an enum field `category` instead of `bool
is_XXX`.

---------

Co-authored-by: Aina Niemetz <aina.niemetz@gmail.com>
2025-06-23 16:54:00 +00:00
Daniel Larraz
8b63df8b2f Fix declarePool test in api_solver_black (#11818)
This fixes issues in C++ `deadPool` test and resolves nightly memory
leak failure.
2025-04-16 18:27:42 +00:00
Aina Niemetz
cf8c5f3ade NodeManager as a static thread_local singleton is no more. (#11816)
Co-authored-by: Daniel Larraz <daniel-larraz@users.noreply.github.com>
2025-04-16 01:39:01 +00:00
Andrew Reynolds
ed10fc9175 Fully support standard SMT-LIB syntax for bitvector conversions (#11801)
The latest SMT-LIB release has standardized arithmetic/bitvector
conversions (https://smt-lib.org/theories-FixedSizeBitVectors.shtml).

This adds support for them.

In particular, the kind Kind::INT_TO_BITVECTOR now has recommended
syntax int_to_bv, while int2bv is supported (deprecated) in non-strict
mode for now for backwards compatibility.

The kind Kind::BITVECTOR_TO_NAT and the smt2 syntax bv2nat for now is
maintained but should be deprecated. In particular,
Kind::BITVECTOR_TO_NAT is silently converted to
Kind::BITVECTOR_UBV_TO_INT in the API.

We add Kind::BITVECTOR_UBV_TO_INT and Kind::BITVECTOR_SBV_TO_INT in the
API.
The internal kind BITVECTOR_TO_NAT is renamed BITVECTOR_UBV_TO_INT, and
add internal kind BITVECTOR_SBV_TO_INT.

Updates the proof infrastructure to use the new naming scheme.
2025-04-10 21:51:47 +00:00
Aina Niemetz
0647c4c107 Update copyright headers. (#11561)
Co-authored-by: Daniel Larraz <daniel-larraz@users.noreply.github.com>
2025-01-23 17:54:20 +00:00
Mathias Preiner
6cf3772511 prop: Connect CaDiCaL clause learner for plugins. (#11226) 2024-09-26 13:49:08 +00:00
Hans-Jörg
e73b991dd6 Add missing support for the assertionNames field of proofToString to Python and Java API and add unit test for all bindings (#11169)
@aniemetz Sorry, this took me longer than I hoped.

---------

Co-authored-by: Haniel Barbosa <hanielbbarbosa@gmail.com>
2024-08-20 16:08:01 +00:00
Aina Niemetz
09b7705909 Fixes for nightlies. (#11049) 2024-07-13 17:23:10 +00:00
Aina Niemetz
488d3d6e25 test: Add tests for missing API coverage. (#11048) 2024-07-13 01:36:56 +00:00
Aina Niemetz
c86771fcff test: cpp api: Refactor solver_black test to use common sorts. (#11032) 2024-07-10 17:56:41 +00:00
Aina Niemetz
7cb2411d8a c api: Add support for term manager statistics. (#10986) 2024-07-09 21:02:46 +00:00
Aina Niemetz
64d6211291 c api: Add missing tests in capi_solver_black. (#10938)
Support for function cvc5::Solver::getOutput() is still missing as it is
currently unclear how to change its C++ interface to allow support in
other language bindings.
2024-06-29 18:07:56 +00:00
Aina Niemetz
a912cbc037 c api: Add support for statistics. (#10933) 2024-06-29 05:54:32 +00:00
Aina Niemetz
a537abf173 c api: Add more sygus and synthesis result related functions. (#10930) 2024-06-29 04:59:21 +00:00
Aina Niemetz
91b968f575 c api: Add support for get_abduct(_*). (#10917) 2024-06-29 01:48:27 +00:00
Aina Niemetz
d21de3b084 c api: Add support for get_interpolant(_*). (#10916) 2024-06-28 23:50:30 +00:00
Aina Niemetz
554f8563f6 c api: Add support for get_quantifier_elimination(_disjunct). (#10882) 2024-06-28 15:36:46 +00:00
Aina Niemetz
994c86b5dc c api: Add support for model value related functions. (#10881) 2024-06-26 18:55:19 +00:00
Aina Niemetz
5a31718ffd c api: Add support for proofs. (#10877) 2024-06-26 17:58:07 +00:00
Aina Niemetz
5fe9874338 c api: Add support for get_timeout_core(_assuming). (#10873) 2024-06-22 03:29:06 +00:00
Aina Niemetz
6e0ca43a0e c api: Add first batch of solver functions and tests. (#10863) 2024-06-22 01:11:22 +00:00