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:
parent
cebee656bd
commit
fc277f5648
2 changed files with 34 additions and 9 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue