mirror of
https://github.com/Z3Prover/z3
synced 2025-05-11 01:35:47 +00:00
Simplify equations into canonical form
Also simplify constraints that are always false due to parity
This commit is contained in:
parent
480ba01cb0
commit
6715058876
4 changed files with 105 additions and 69 deletions
|
@ -26,7 +26,7 @@ namespace polysat {
|
|||
pdd m_rhs;
|
||||
|
||||
ule_constraint(constraint_manager& m, pdd const& l, pdd const& r);
|
||||
void simplify();
|
||||
static void simplify(bool& is_positive, pdd& lhs, pdd& rhs);
|
||||
|
||||
public:
|
||||
~ule_constraint() override {}
|
||||
|
@ -46,7 +46,6 @@ namespace polysat {
|
|||
unsigned hash() const override;
|
||||
bool operator==(constraint const& other) const override;
|
||||
bool is_eq() const override { return m_rhs.is_zero(); }
|
||||
bool is_diseq() const override { return m_lhs.is_one(); }
|
||||
void add_to_univariate_solver(solver& s, univariate_solver& us, unsigned dep, bool is_positive) const override;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue