3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

print certificate for #2202, enable CTL-C for API fix #2203

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-03-24 17:08:31 -07:00
parent 0a0b0a5cc0
commit 5c67c9d907
10 changed files with 38 additions and 16 deletions

View file

@ -730,6 +730,7 @@ namespace datalog {
void context::collect_params(param_descrs& p) {
fp_params::collect_param_descrs(p);
insert_timeout(p);
insert_ctrl_c(p);
}
void context::updt_params(params_ref const& p) {
@ -854,7 +855,11 @@ namespace datalog {
UNREACHABLE();
}
ensure_engine();
return m_engine->query(query);
lbool r = m_engine->query(query);
if (r != l_undef && get_params().print_certificate()) {
display_certificate(std::cout) << "\n";
}
return r;
}
lbool context::query_from_lvl (expr* query, unsigned lvl) {
@ -951,9 +956,10 @@ namespace datalog {
}
}
void context::display_certificate(std::ostream& out) {
std::ostream& context::display_certificate(std::ostream& out) {
ensure_engine();
m_engine->display_certificate(out);
return out;
}
void context::display(std::ostream & out) const {

View file

@ -581,7 +581,7 @@ namespace datalog {
/**
\brief Display a certificate for reachability and/or unreachability.
*/
void display_certificate(std::ostream& out);
std::ostream& display_certificate(std::ostream& out);
/**
\brief query result if it contains fact.