mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +00:00
the documentation of Z3_model_get_func_interp() says it returns NULL if there's no interpretation
so let's honour that instead of throwing an exception
This commit is contained in:
parent
e1572096ca
commit
682b947ad3
|
@ -89,7 +89,6 @@ extern "C" {
|
|||
CHECK_NON_NULL(m, nullptr);
|
||||
func_interp * _fi = to_model_ref(m)->get_func_interp(to_func_decl(f));
|
||||
if (!_fi) {
|
||||
SET_ERROR_CODE(Z3_INVALID_ARG, nullptr);
|
||||
RETURN_Z3(nullptr);
|
||||
}
|
||||
Z3_func_interp_ref * fi = alloc(Z3_func_interp_ref, *mk_c(c), to_model_ref(m));
|
||||
|
|
Loading…
Reference in a new issue