mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
0a0b0a5cc0
commit
5c67c9d907
10 changed files with 38 additions and 16 deletions
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue