3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

Simplify some boolean returns.

This commit is contained in:
Bruce Mitchener 2018-12-04 22:41:31 +07:00
parent e15a39f463
commit 5fa861fa95
2 changed files with 3 additions and 13 deletions

View file

@ -79,11 +79,7 @@ extern "C" {
Z3_TRY;
LOG_Z3_model_has_interp(c, m, a);
CHECK_NON_NULL(m, 0);
if (to_model_ref(m)->has_interpretation(to_func_decl(a))) {
return true;
} else {
return false;
}
return to_model_ref(m)->has_interpretation(to_func_decl(a));
Z3_CATCH_RETURN(false);
}