summaryrefslogtreecommitdiff
path: root/src/bindings/java
AgeCommit message (Collapse)Author
2019-09-25Use separate CMake project for CVC4 examples. (#3196)Mathias Preiner
2019-07-29Model blocker feature (#3112)Andrew Reynolds
2019-07-29Support get-abduct smt2 command (#3122)Andrew Reynolds
2019-06-21Add floating-point support in the Java API (#3063)Andres Noetzli
This commit adds support for the theory of floating-point numbers in the Java API. Previously, floating-point related classes were missing in the JAR. The commit also provides an example that showcases how to work with the theory of floating-point numbers through the API.
2019-06-11Fix compilation issue for Java bindings + CLN (#3045)Andres Noetzli
Fixes #3044. When using CLN instead of GMP, SWIG produces different Java files for the CLN classes. The bindings expected the GMP files even when building with CLN, so compilation failed. This commit fixes the issue by changing the list of files depending on whether we build with CLN or GMP.
2019-06-05Add support for SWIG 4 (#3041)Andres Noetzli
SWIG 4 seems to change the name for `std::map<CVC4::Expr, CVC4::Expr>` to include the implicit template argument for comparisons. To make the code compatible with both SWIG 4.0.0 and older versions, this commit creates an explicit instance of the template.
2019-05-15Fix iterators in Java API (#3000)Andres Noetzli
Fixes #2989. SWIG 3 seems to have an issue properly resolving `T::const_iterator::value_type` if that type itself is a `typedef`. This is for example the case in the `UnsatCore` class, which `typedef`s `const_iterator` to `std::vector<Expr>::const_iterator`. As a workaround, this commit changes the `JavaIteratorAdapter` class to take two template parameters, one of which is the `value_type`. The commit also adds a compile-time assertion that `T::const_iterator::value_type` can be converted to `value_type` to avoid nasty surprises. A nice side-effect of this solution is that explicit `typemap`s are not necessary anymore, so they are removed. Additionally, the commit adds a `toString()` method for the Java API of `UnsatCore` and adds examples that show and test the iteration over the unsat core and the statistics. Iterating over `Statistics` now returns instances of `Statistic` instead of `Object[]`, which is a bit cleaner and requires less glue code.
2019-05-15cmake: Install JAR and JNI files for Java bindings. (#3002)Mathias Preiner
Default install paths are: - libcvc4jni.so in /usr/lib/ - CVC4.jar in /usr/share/java/cvc4 Fixes #2990.
2018-10-18Introducing internal commands for SyGuS commands (#2627)Haniel Barbosa
2018-09-22cmake: Add SWIG support + Python and Java bindings.Mathias Preiner
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback