mirror of
https://github.com/Z3Prover/z3
synced 2025-07-23 20:58:54 +00:00
fiddle with phase
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
c6f943e4d6
commit
9777f43e75
4 changed files with 21 additions and 25 deletions
|
@ -670,10 +670,11 @@ namespace sat {
|
|||
}
|
||||
}
|
||||
|
||||
void local_search::set_phase(bool_var v, bool f) {
|
||||
void local_search::set_phase(bool_var v, lbool f) {
|
||||
unsigned& bias = m_vars[v].m_bias;
|
||||
if (f && bias < 100) bias++;
|
||||
if (!f && bias > 0) bias--;
|
||||
if (f == l_true && bias < 100) bias++;
|
||||
if (f == l_false && bias > 0) bias--;
|
||||
// f == l_undef ?
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue