mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 02:04:43 +00:00
consolidate cancellation to context check_cancel_flag instead of calling in set_cancel()
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ee4ed1749a
commit
4e155887b2
7 changed files with 24 additions and 65 deletions
|
@ -236,10 +236,6 @@ namespace smt {
|
|||
return m_plugin->check_model(m, root2value);
|
||||
}
|
||||
|
||||
void set_cancel(bool f) {
|
||||
m_plugin->set_cancel(f);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
quantifier_manager::quantifier_manager(context & ctx, smt_params & fp, params_ref const & p) {
|
||||
|
@ -366,14 +362,7 @@ namespace smt {
|
|||
plugin->set_manager(*this);
|
||||
}
|
||||
}
|
||||
|
||||
void quantifier_manager::set_cancel(bool f) {
|
||||
#pragma omp critical (quantifier_manager)
|
||||
{
|
||||
m_imp->set_cancel(f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void quantifier_manager::display(std::ostream & out) const {
|
||||
}
|
||||
|
||||
|
@ -591,12 +580,6 @@ namespace smt {
|
|||
return quantifier_manager::UNKNOWN;
|
||||
}
|
||||
|
||||
virtual void set_cancel(bool f) {
|
||||
// TODO: interrupt MAM and MBQI
|
||||
m_model_finder->set_cancel(f);
|
||||
m_model_checker->set_cancel(f);
|
||||
}
|
||||
|
||||
virtual final_check_status final_check_eh(bool full) {
|
||||
if (!full) {
|
||||
if (m_fparams->m_qi_lazy_instantiation)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue