3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 02:15:19 +00:00

add a constructor from a variable to factor

This commit is contained in:
Lev Nachmanson 2023-08-10 08:34:53 -10:00
parent a6ab0a7d49
commit a932e596eb

View file

@ -35,7 +35,8 @@ class factor {
bool m_sign{ false };
public:
factor(): factor(false) {}
factor(bool sign): m_sign(sign) {}
explicit factor(bool sign): m_sign(sign) {}
factor(lpvar var): m_var(var), m_type(factor_type::VAR), m_sign(false) {}
explicit factor(lpvar v, factor_type t) : m_var(v), m_type(t), m_sign(false) {}
unsigned var() const { return m_var; }
factor_type type() const { return m_type; }