mirror of
https://github.com/Z3Prover/z3
synced 2025-08-25 04:26:00 +00:00
bugfixes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
737913b67e
commit
ac8efad7e1
6 changed files with 84 additions and 20 deletions
|
@ -36,7 +36,10 @@ namespace polysat {
|
|||
}
|
||||
|
||||
// p := coeff*x*y where coeff_x = coeff*x, x a variable
|
||||
bool is_coeffxY(pdd const& coeff_x, pdd const& p, pdd& y) const { throw default_exception("nyi"); }
|
||||
bool is_coeffxY(pdd const& x, pdd const& p, pdd& y) const {
|
||||
pdd xy = x.manager().zero();
|
||||
return x.is_unary() && p.try_div(x.hi().val(), xy) && xy.factor(x.var(), 1, y);
|
||||
}
|
||||
|
||||
public:
|
||||
static inequality from_ule(core& c, constraint_id id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue