3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-25 21:57:00 +00:00

true is true, false is not true, it is false

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-11-19 09:37:23 -08:00
parent f21162960e
commit 5a825d7ac3
6 changed files with 17 additions and 21 deletions

View file

@ -347,7 +347,7 @@ extern "C" {
Z3_TRY;
LOG_Z3_is_quantifier_forall(c, a);
RESET_ERROR_CODE();
return ::is_forall(to_ast(a)) ? true : false;
return ::is_forall(to_ast(a));
Z3_CATCH_RETURN(false);
}
@ -355,7 +355,7 @@ extern "C" {
Z3_TRY;
LOG_Z3_is_quantifier_exists(c, a);
RESET_ERROR_CODE();
return ::is_exists(to_ast(a)) ? true : false;
return ::is_exists(to_ast(a));
Z3_CATCH_RETURN(false);
}
@ -363,7 +363,7 @@ extern "C" {
Z3_TRY;
LOG_Z3_is_lambda(c, a);
RESET_ERROR_CODE();
return ::is_lambda(to_ast(a)) ? true : false;
return ::is_lambda(to_ast(a));
Z3_CATCH_RETURN(false);
}