diff options
author | mudathirmahgoub <mudathirmahgoub@gmail.com> | 2021-10-07 06:29:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 11:29:28 +0000 |
commit | 991bef531131336549eccd2446243204f4733c20 (patch) | |
tree | 2b95878d40b8c1732f79de1d4cd86eb5c754ce48 /src/api/java/jni/cvc5_Solver.cpp | |
parent | 8773b8921d705d458b90566cb41e97ee596aeeb1 (diff) |
Add missing functions in Term.java (#7297)
This adds recent API functions that were added to terms.
It also uses BigInteger now for integer terms.
Diffstat (limited to 'src/api/java/jni/cvc5_Solver.cpp')
-rw-r--r-- | src/api/java/jni/cvc5_Solver.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/api/java/jni/cvc5_Solver.cpp b/src/api/java/jni/cvc5_Solver.cpp index 9bcecd07f..c28ea412f 100644 --- a/src/api/java/jni/cvc5_Solver.cpp +++ b/src/api/java/jni/cvc5_Solver.cpp @@ -2521,6 +2521,22 @@ JNIEXPORT jlongArray JNICALL Java_cvc5_Solver_getSynthSolutions( /* * Class: cvc5_Solver + * Method: getStatistics + * Signature: (J)J + */ +JNIEXPORT jlong JNICALL Java_cvc5_Solver_getStatistics(JNIEnv* env, + jobject, + jlong pointer) +{ + CVC5_JAVA_API_TRY_CATCH_BEGIN; + Solver* solver = reinterpret_cast<Solver*>(pointer); + Statistics* retPointer = new Statistics(solver->getStatistics()); + return reinterpret_cast<jlong>(retPointer); + CVC5_JAVA_API_TRY_CATCH_END_RETURN(env, 0); +} + +/* + * Class: cvc5_Solver * Method: getNullTerm * Signature: (J)J */ |