3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-30 15:00:08 +00:00

align reslimit with ddfw

This commit is contained in:
Nikolaj Bjorner 2025-01-13 18:19:35 -08:00
parent 3c5b8bd03d
commit a08a3ee32b
6 changed files with 16 additions and 4 deletions

View file

@ -47,6 +47,7 @@ namespace sls {
void smt_plugin::check(expr_ref_vector const& fmls, vector <sat::literal_vector> const& clauses) {
SASSERT(!m_ddfw);
// set up state for local search theory_sls here
m_result = l_undef;
m_completed = false;
m_units.reset();
@ -109,9 +110,14 @@ namespace sls {
}
void smt_plugin::bounded_run(unsigned max_iterations) {
verbose_stream() << "bounded run " << max_iterations << "\n";
m_ddfw->rlimit().reset_count();
m_ddfw->rlimit().push(max_iterations);
run();
{
scoped_limits _sl(m.limit());
_sl.push_child(&m_ddfw->rlimit());
run();
}
m_ddfw->rlimit().pop();
}