3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-25 01:55:32 +00:00

First version of refine_disequal_lin

This commit is contained in:
Jakob Rath 2021-12-23 18:36:27 +01:00
parent eb9bfbb3d8
commit 28864e563c
5 changed files with 103 additions and 8 deletions

View file

@ -405,7 +405,7 @@ namespace dd {
bool is_zero() const { return m.is_zero(root); }
bool is_linear() const { return m.is_linear(root); }
bool is_var() const { return m.is_var(root); }
/** Polynomial is of the form: a * x + b */
/** Polynomial is of the form a * x + b for numerals a, b. */
bool is_unilinear() const { return !is_val() && lo().is_val() && hi().is_val(); }
bool is_unary() const { return !is_val() && lo().is_zero() && hi().is_val(); }
bool is_binary() const { return m.is_binary(root); }