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

Merge pull request #2014 from waywardmonkeys/simplify-boolean-returns

Simplify some boolean returns.
This commit is contained in:
Nikolaj Bjorner 2018-12-04 10:17:53 -08:00 committed by GitHub
commit 7aaacbfc62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
}