mirror of
https://github.com/Z3Prover/z3
synced 2025-07-23 20:58:54 +00:00
add local search parameters and co-processor mode
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
31c68b6e23
commit
fb4f6d654a
7 changed files with 33 additions and 5 deletions
|
@ -300,8 +300,8 @@ namespace sat {
|
|||
timer.start();
|
||||
// ################## start ######################
|
||||
//std::cout << "Start initialize and local search, restart in every " << max_steps << " steps\n";
|
||||
unsigned tries, step;
|
||||
for (tries = 0; ; ++tries) {
|
||||
unsigned tries, step = 0;
|
||||
for (tries = 0; m_limit.inc(); ++tries) {
|
||||
reinit();
|
||||
for (step = 1; step <= max_steps; ++step) {
|
||||
// feasible
|
||||
|
@ -318,8 +318,10 @@ namespace sat {
|
|||
}
|
||||
IF_VERBOSE(1, if (tries % 10 == 0) verbose_stream() << tries << ": " << timer.get_seconds() << '\n';);
|
||||
|
||||
if (!m_limit.inc())
|
||||
break;
|
||||
// tell the SAT solvers about the phase of variables.
|
||||
if (m_par && tries % 10 == 0) {
|
||||
m_par->set_phase(*this);
|
||||
}
|
||||
}
|
||||
IF_VERBOSE(1, verbose_stream() << timer.get_seconds() << " " << (reach_known_best_value ? "reached":"not reached") << "\n";);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue