mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
throttle on degree bounds
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7036dd826f
commit
e711808d3e
1 changed files with 7 additions and 0 deletions
|
@ -41,15 +41,22 @@ namespace polysat {
|
|||
LOG("c2: " << c2);
|
||||
pdd a = c1.eq();
|
||||
pdd b = c2.eq();
|
||||
unsigned degree_a = a.degree();
|
||||
unsigned degree_b = b.degree();
|
||||
pdd r = a;
|
||||
if (!a.resolve(v, b, r) && !b.resolve(v, a, r))
|
||||
return {};
|
||||
unsigned degree_r = r.degree();
|
||||
if (degree_a < degree_r && degree_b < degree_r)
|
||||
return {};
|
||||
// Only keep result if the degree in c2 was reduced.
|
||||
// (this condition might be too strict, but we use it for now to prevent looping)
|
||||
// TODO: check total degree; only keep if total degree smaller or equal.
|
||||
// can always do this if c1 is linear.
|
||||
if (b.degree(v) <= r.degree(v))
|
||||
return {};
|
||||
if (a.degree(v) <= r.degree(v))
|
||||
return {};
|
||||
signed_constraint c = s.eq(r);
|
||||
LOG("resolved: " << c << " currently false? " << c.is_currently_false(s));
|
||||
if (!c.is_currently_false(s))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue