mirror of
https://github.com/Z3Prover/z3
synced 2025-06-19 04:13:38 +00:00
check for uninterpreted functions in tail for PDR
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
f4e048c1e8
commit
0aaa67fa7d
2 changed files with 5 additions and 1 deletions
|
@ -675,9 +675,11 @@ namespace datalog {
|
||||||
case PDR_ENGINE:
|
case PDR_ENGINE:
|
||||||
check_existential_tail(r);
|
check_existential_tail(r);
|
||||||
check_positive_predicates(r);
|
check_positive_predicates(r);
|
||||||
|
check_uninterpreted_free(r);
|
||||||
break;
|
break;
|
||||||
case QPDR_ENGINE:
|
case QPDR_ENGINE:
|
||||||
check_positive_predicates(r);
|
check_positive_predicates(r);
|
||||||
|
check_uninterpreted_free(r);
|
||||||
break;
|
break;
|
||||||
case BMC_ENGINE:
|
case BMC_ENGINE:
|
||||||
check_positive_predicates(r);
|
check_positive_predicates(r);
|
||||||
|
|
|
@ -223,6 +223,7 @@ public:
|
||||||
dlctx.updt_params(m_params);
|
dlctx.updt_params(m_params);
|
||||||
unsigned timeout = m_dl_ctx->get_params().timeout();
|
unsigned timeout = m_dl_ctx->get_params().timeout();
|
||||||
cancel_eh<datalog::context> eh(dlctx);
|
cancel_eh<datalog::context> eh(dlctx);
|
||||||
|
bool query_exn = false;
|
||||||
lbool status = l_undef;
|
lbool status = l_undef;
|
||||||
{
|
{
|
||||||
scoped_ctrl_c ctrlc(eh);
|
scoped_ctrl_c ctrlc(eh);
|
||||||
|
@ -237,6 +238,7 @@ public:
|
||||||
}
|
}
|
||||||
catch (z3_exception& ex) {
|
catch (z3_exception& ex) {
|
||||||
ctx.regular_stream() << "(error \"query failed: " << ex.msg() << "\")" << std::endl;
|
ctx.regular_stream() << "(error \"query failed: " << ex.msg() << "\")" << std::endl;
|
||||||
|
query_exn = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
switch (status) {
|
switch (status) {
|
||||||
|
@ -269,7 +271,7 @@ public:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case datalog::OK:
|
case datalog::OK:
|
||||||
UNREACHABLE();
|
SASSERT(query_exn);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case datalog::CANCELED:
|
case datalog::CANCELED:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue