mirror of
https://github.com/Z3Prover/z3
synced 2025-08-21 18:50:26 +00:00
remove unneeded constructors (last round)
This commit is contained in:
parent
44ec259c4c
commit
bb26f219fe
37 changed files with 65 additions and 276 deletions
|
@ -163,16 +163,6 @@ namespace sat {
|
|||
public:
|
||||
explicit clause_wrapper(literal l1, literal l2):m_l1_idx(l1.to_uint()), m_l2_idx(l2.to_uint()) {}
|
||||
explicit clause_wrapper(clause & c):m_cls(&c), m_l2_idx(null_literal.to_uint()) {}
|
||||
clause_wrapper& operator=(clause_wrapper const& other) {
|
||||
if (other.is_binary()) {
|
||||
m_l1_idx = other.m_l1_idx;
|
||||
}
|
||||
else {
|
||||
m_cls = other.m_cls;
|
||||
}
|
||||
m_l2_idx = other.m_l2_idx;
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool is_binary() const { return m_l2_idx != null_literal.to_uint(); }
|
||||
unsigned size() const { return is_binary() ? 2 : m_cls->size(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue