mirror of
https://github.com/Z3Prover/z3
synced 2025-07-31 16:33:18 +00:00
add a constructor from a variable to factor
This commit is contained in:
parent
a6ab0a7d49
commit
a932e596eb
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ class factor {
|
||||||
bool m_sign{ false };
|
bool m_sign{ false };
|
||||||
public:
|
public:
|
||||||
factor(): factor(false) {}
|
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) {}
|
explicit factor(lpvar v, factor_type t) : m_var(v), m_type(t), m_sign(false) {}
|
||||||
unsigned var() const { return m_var; }
|
unsigned var() const { return m_var; }
|
||||||
factor_type type() const { return m_type; }
|
factor_type type() const { return m_type; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue