16 Commits

Author SHA1 Message Date
Daniel Larraz
6a33a2f89d Fix python api coverage failure (#10233) 2023-12-15 16:14:26 -06:00
Hans-Jörg
14fc6f88bb Fix behaviour and API tests for proofs (#10137)
Add a test for '<<' for the proof format mode
Add this test to the uncovered functions for Python and Java
Return placeholder value if Proof object is empty
Add tests for this (and add them to uncovered functions)
2023-11-07 17:29:44 +00:00
Andrew Reynolds
3621c2c5e5 Fixes for uncovered parser API methods (#10082)
Fixes nightly builds.
2023-10-04 00:24:08 +00:00
Hans-Jörg
0a35879fc1 Make Proof Rule enum a part of the API (#9925)
This pull requests makes the enum that lists all proof rules a part of the API.

It also renames the enum from PfRule to ProofRule. It also renames some unrelated types and function names that share the PfRule name (such as DslPfRule).
This rename unfortunately touches many files since PfRule is not an uncommon type. (second to last commit)
2023-09-27 00:58:03 +00:00
Aina Niemetz
7a4a17b193 c api: Introduce C/C++ specific handling of public enums. (#9915)
This introduces a general way to use public enums both in the C++ and
the (upcoming) C API. For the C++ case, we now use enum classes rather
than enums for public enums. This also includes definitions for
C API to_string conversions for public enums. C API definitions in
cvc5_types.h are only included from the C API, guarded via a macro
(thus, for now, not included yet when the header is included).
2023-08-22 18:17:16 +00:00
Andrew Reynolds
21da2fba14 Add synth finder utility (#9814)
Work towards supporting (find-synth :X).

This adds a unified utility SynthFinder for implementing the functionality removed in #9796.

It introduces "find synth targets" as different things that can be found using find-synth.

Further PRs will connect this utility to the API.
2023-06-19 16:47:31 +00:00
Aina Niemetz
0a8baa0f0a Update copyright headers. (#9736) 2023-05-09 18:06:18 +00:00
Andrew Reynolds
3f30adabe9 Add tests for uncovered API methods for abstract sorts (#9430) 2023-01-20 19:17:50 +00:00
Mathias Preiner
dad5fa360f test: Fix Python uncovered test for declareOracleFun. (#9191)
This fixes the nightly coverage tests for the Python API.
2022-10-04 21:26:23 +00:00
Andrew Reynolds
3510b1feca Apply oracle function in uncovered python unit test (#9152) 2022-09-20 12:37:01 -05:00
Andrew Reynolds
c0f7d8b015 Fixes for API coverage (#9124)
Fixes issue in API coverage build for nightlies.

Also adds a missing print function for block models mode.
2022-09-14 07:43:21 +00:00
Andrew Reynolds
1d62c72ff5 Add learned literal types to the API (#8990)
Also changes the name of the enum for now to have a prefix, since we are not using enum classes.

Furthermore this excludes true from being a preprocessed learned literal.
2022-08-03 01:33:56 +00:00
Gereon Kremer
a3e8a80434 Add test coverage for almost everything from the Python API (#8720)
This PR adds tests for almost everything that is not yet covered by the python API tests.
2022-05-05 20:54:48 +00:00
Gereon Kremer
3db254027b Make printStatisticsSafe public (#8721)
Solver::printStatisticsSafe() is private right now. There is no real reason for that, and as we claim that the driver is only using the regular API we should just make it public.
2022-05-04 17:21:41 +00:00
Gereon Kremer
79cf93488f Add missing tests for some corners of the API (#8688)
This PR adds a bunch of unit tests for some not yet covered corners of the API.
2022-05-02 21:08:58 +00:00
Gereon Kremer
08c26d6fe7 Add unit test for code not exposed by python API (#8677)
This PR adds a C++ unit test that explicitly calls into API functions that are not exposed by the python API. This fixes the issue of false positives in our API coverage checks, as some parts of the C++ API are legitimately not used by the python API.
2022-04-29 01:09:03 +00:00