summaryrefslogtreecommitdiff
path: root/src/api/java/jni/cvc5_Solver.cpp
diff options
context:
space:
mode:
authormudathirmahgoub <mudathirmahgoub@gmail.com>2021-10-07 06:29:28 -0500
committerGitHub <noreply@github.com>2021-10-07 11:29:28 +0000
commit991bef531131336549eccd2446243204f4733c20 (patch)
tree2b95878d40b8c1732f79de1d4cd86eb5c754ce48 /src/api/java/jni/cvc5_Solver.cpp
parent8773b8921d705d458b90566cb41e97ee596aeeb1 (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.cpp16
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
*/
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback