Commit Graph

30 Commits

Author SHA1 Message Date
Daniel Larraz
6f32ee5ca0 doc: Pass TermManager to Solver in Java examples (#11232)
It also replaces calls to deprecated functions of `Solver` with the
corresponding function of `TermManager`.

---------

Co-authored-by: mudathirmahgoub <mudathirmahgoub@gmail.com>
2024-09-26 21:00:25 +00:00
Aina Niemetz
fdf9ce7138 Update copyright headers. (#10459) 2024-03-12 09:35:09 -07:00
mudathirmahgoub
590af04a10 Remove reference to solver from java objects (#9147) 2022-10-04 17:06:02 +00:00
Mathias Preiner
d01e59c13b Update copyright headers for release 1.0 (#8539) 2022-04-05 20:38:57 +00:00
Andres Noetzli
c93de62d8b Move Java package to io.github.cvc5 (#8469)
Previously, we were using io.github.cvc5.api to mirror the C++
namespace that the API was in. The namespace of the C++ API changed to
simply cvc5 and so this commit updates the Java package accordingly.
2022-03-31 04:09:03 +00:00
Andrew Reynolds
2f1483e2e3 Remove unecessary methods from the API (#8260)
Removes checkEntailed from Solver.
Removes isEntailed, isNotEntailed, isEntailedUnknown from Result.
Removes isSubsortOf, isFunctionLike, getUninterpretedSortName, getSortConstructorName from Sort.

Updates examples and unit tests.
2022-03-14 18:29:30 +00:00
Aina Niemetz
c335e4d3fa Rename kind PLUS -> ADD. (#8036)
This renames the arithmetic internal and API kind PLUS to ADD for
consistency with our naming scheme for other operators (e.g.,
BITVECTOR_ADD, FLOATINGPOINT_ADD).
2022-02-03 04:25:14 +00:00
mudathirmahgoub
64165dab5d Update SimpleVC.java (#7647)
Update SimpleVC.java with try with resource missed in previous PR
2021-11-17 01:01:13 +00:00
mudathirmahgoub
1a79f9534c Fix compile errors with java examples (#7646)
Fix compile errors with java examples
2021-11-16 18:13:19 +00:00
Aina Niemetz
7ec3005875 Refactor and update copyright headers. (#6316) 2021-04-12 19:31:43 +00:00
Aina Niemetz
b302cb1f92 Update copyright headers to 2021. (#6081) 2021-03-09 07:27:03 +00:00
Mathias Preiner
e3cd4670a0 Update copyright header script to support CMake and Python files (#5067)
This PR updates the update-copyright.pl script to also update/add copyright headers to CMake specific files. It further fixes a small typo in the header.
2020-09-22 09:51:56 -07:00
Andres Noetzli
7d16d25dc9 Improve memory management in Java bindings (#4629)
Fixes #2846. One of the challenges of the Java bindings is that the
garbage collector can delete unused objects at any time in any order.
This is an issue with CVC4's API because we require all `Expr`s to be
deleted before the corresponding `ExprManager`. In the past, we were
using `NewGlobalRef`/`DeleteGlobalRef` on the wrapper object of
`ExprManager`. The problem is that we can have multiple instances of the
wrapper that internally all refer to the same `ExprManager`. This commit
implements a different approach where the Java wrappers hold an explicit
reference to the `ExprManager`. The commit also removes some unused or
unimportant API bits from the bindings.
2020-06-18 12:21:02 -07:00
Aina Niemetz
e37d0c385d Update copyright headers. 2020-06-16 13:48:05 -07:00
Aina Niemetz
cfeaf40ed6 Rename checkValid/query to checkEntailed. (#4191)
This renames api::Solver::checkValidAssuming to checkEntailed and
removes api::Solver::checkValid. Internally, SmtEngine::query is renamed
to SmtEngine::checkEntailed, and these changes are further propagated to
the Result class.
2020-03-31 18:12:16 -07:00
Andres Noetzli
3ba75ef701 Rename Java package to edu.stanford.CVC4 (#3752) 2020-02-12 16:48:10 -06:00
Mathias Preiner
4f384b6fad Use separate CMake project for CVC4 examples. (#3196) 2019-09-25 09:47:12 -07:00
Aina Niemetz
a6bd02c5c4 Update copyright headers. 2019-03-26 11:33:55 -07:00
Aina Niemetz
3b91ff439d Updated copyright headers. 2018-06-25 14:11:54 -07:00
Mathias Preiner
4fa50d3881 Update copyright headers. 2017-07-07 14:57:36 -07:00
PaulMeng
904ffb6e73 update from the master 2016-04-20 14:43:18 -05:00
Morgan Deters
8ad7662ef9 Update copyrights. 2014-07-01 14:47:24 -04:00
Morgan Deters
166bbd9c57 Regenerated copyrights: canonicalized names, no emails 2013-04-02 14:36:18 -04:00
Morgan Deters
0e6e0f1816 update copyrights 2013-04-01 23:32:39 -04:00
Morgan Deters
45229fd903 all API examples now have java versions too; bitvectors gets built; also updated old-style copyrights in the examples 2012-11-30 23:07:19 +00:00