mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
fix a bug in Horner heuristic
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
8f297666fe
commit
8921ed56b5
16 changed files with 42 additions and 58 deletions
|
@ -48,8 +48,12 @@ bool horner::row_is_interesting(const T& row) const {
|
|||
c().clear_active_var_set();
|
||||
for (const auto& p : row) {
|
||||
lpvar j = p.var();
|
||||
if (!c().is_monic_var(j))
|
||||
if (!c().is_monic_var(j)) {
|
||||
if (c().active_var_set_contains(j))
|
||||
return true;
|
||||
c().insert_to_active_var_set(j);
|
||||
continue;
|
||||
}
|
||||
auto & m = c().emons()[j];
|
||||
|
||||
for (lpvar k : m.vars()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue