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

work on order lemma

Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
Lev 2018-11-20 15:36:02 -08:00 committed by Lev Nachmanson
parent 6a1c2e4766
commit ca0ce579b1
8 changed files with 260 additions and 109 deletions

View file

@ -49,17 +49,14 @@ namespace nla {
* represents definition m_v = coeff* v1*v2*...*vn,
* where m_vs = [v1, v2, .., vn]
*/
class monomial_coeff : public monomial {
class monomial_coeff {
svector<lp::var_index> m_vs;
rational m_coeff;
public:
monomial_coeff(monomial const& eq, rational const& coeff):
monomial(eq), m_coeff(coeff) {}
monomial_coeff(lp::var_index v, const svector<lp::var_index> &vs, rational const& coeff):
monomial(v, vs),
m_coeff(coeff) {}
monomial_coeff(const svector<lp::var_index>& vs, rational const& coeff): m_vs(vs), m_coeff(coeff) {}
rational const& coeff() const { return m_coeff; }
const svector<lp::var_index> & vars() const { return m_vs; }
};
}