3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-10 19:27:06 +00:00

handle null declarations for kind

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-08-01 08:43:32 -07:00
parent 124e963b10
commit 77d68409c2
2 changed files with 7 additions and 1 deletions

View file

@ -895,7 +895,7 @@ extern "C" {
RESET_ERROR_CODE();
func_decl* _d = to_func_decl(d);
if (null_family_id == _d->get_family_id()) {
if (d == nullptr || null_family_id == _d->get_family_id()) {
return Z3_OP_UNINTERPRETED;
}
if (mk_c(c)->get_basic_fid() == _d->get_family_id()) {

View file

@ -850,6 +850,7 @@ namespace smt {
}
bool theory_bv::internalize_term(app * term) {
try {
SASSERT(term->get_family_id() == get_family_id());
TRACE("bv", tout << "internalizing term: " << mk_bounded_pp(term, get_manager()) << "\n";);
if (approximate_term(term)) {
@ -907,6 +908,11 @@ namespace smt {
UNREACHABLE();
return false;
}
}
catch (z3_exception& ex) {
IF_VERBOSE(1, verbose_stream() << ex.msg() << "\n";);
throw;
}
}
#define MK_NO_OVFL(NAME, OP) \