Skip to content

Commit a0bf50a

Browse files
committed
Update JNI status constants for Yices 2.7
1 parent 9ff6067 commit a0bf50a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/sri/yices/yicesJNI.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,7 +2674,7 @@ JNIEXPORT jbooleanArray JNICALL Java_com_sri_yices_Yices_bvConstValue(JNIEnv *en
26742674
assert(code >= 0);
26752675
result = convertToBoolArray(env, n, tmp);
26762676
delete [] tmp;
2677-
} catch (std::bad_alloc) {
2677+
} catch (std::bad_alloc&) {
26782678
out_of_mem_exception(env);
26792679
}
26802680
}
@@ -3215,10 +3215,10 @@ JNIEXPORT jint JNICALL Java_com_sri_yices_Yices_checkContextWithInterpolation(JN
32153215
ctx.model = NULL;
32163216
try {
32173217
result = yices_check_context_with_interpolation(&ctx, reinterpret_cast<param_t*>(params), build_model);
3218-
if (result == STATUS_UNSAT) {
3218+
if (result == YICES_STATUS_UNSAT) {
32193219
// set the interpolant array
32203220
env->SetIntArrayRegion(interpolant, 0, 1, &ctx.interpolant);
3221-
} else if(build_model && result == STATUS_SAT ) {
3221+
} else if(build_model && result == YICES_STATUS_SAT ) {
32223222
model_t *model = ctx.model;
32233223
jlong mdl = reinterpret_cast<jlong>(model);
32243224
// set the model array
@@ -3817,7 +3817,7 @@ JNIEXPORT jint JNICALL Java_com_sri_yices_Yices_checkFormula(JNIEnv *env, jclass
38173817
}
38183818
if (wantModel) {
38193819
code = yices_check_formula(formula, ls, &model, ds);
3820-
if (code == STATUS_SAT) {
3820+
if (code == YICES_STATUS_SAT) {
38213821
mdl = reinterpret_cast<jlong>(model);
38223822
env->SetLongArrayRegion(marr, 0, 1, &mdl);
38233823
}
@@ -3873,7 +3873,7 @@ JNIEXPORT jint JNICALL Java_com_sri_yices_Yices_checkFormulas(JNIEnv *env, jclas
38733873
}
38743874
if (wantModel) {
38753875
code = yices_check_formulas(tarr, n, ls, &model, ds);
3876-
if (code == STATUS_SAT) {
3876+
if (code == YICES_STATUS_SAT) {
38773877
mdl = reinterpret_cast<jlong>(model);
38783878
env->SetLongArrayRegion(marr, 0, 1, &mdl);
38793879
}

0 commit comments

Comments
 (0)