3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-16 07:45:27 +00:00

strengthening test cases

Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
Lev 2018-10-30 16:57:58 -07:00 committed by Lev Nachmanson
parent 36587e4e91
commit 29710020a5
3 changed files with 53 additions and 16 deletions

View file

@ -57,7 +57,7 @@ public:
return m_coeffs;
}
bool operator==(const lar_term & a) const { return false; } // take care not to create identical terms
bool operator==(const lar_term & a) const { return m_coeffs == a.m_coeffs; }
bool operator!=(const lar_term & a) const { return ! (*this == a);}
// some terms get used in add constraint
// it is the same as the offset in the m_constraints