3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00

order lemma

Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
Lev 2018-12-03 19:52:06 -08:00 committed by Lev Nachmanson
parent cebee656bd
commit fc277f5648
2 changed files with 34 additions and 9 deletions

View file

@ -18,6 +18,7 @@
--*/
#pragma once
#include "util/rational.h"
#include "util/lp/monomial.h"
@ -41,6 +42,15 @@ public:
bool is_var() const { return m_type == factor_type::VAR; }
};
inline bool operator==(const factor& a, const factor& b) {
return a.index() == b.index() && a.type() == b.type();
}
inline bool operator!=(const factor& a, const factor& b) {
return ! (a == b);
}
class factorization {
vector<factor> m_vars;
public: