mirror of
https://github.com/Z3Prover/z3
synced 2025-09-29 12:49:02 +00:00
Prefer using empty rather than size comparisons.
This commit is contained in:
parent
a83097d5cc
commit
e570940662
56 changed files with 104 additions and 104 deletions
|
@ -230,7 +230,7 @@ namespace datalog {
|
|||
bool is_closed() const { return m_stratifier != 0; }
|
||||
|
||||
unsigned get_num_rules() const { return m_rules.size(); }
|
||||
bool empty() const { return m_rules.size() == 0; }
|
||||
bool empty() const { return m_rules.empty(); }
|
||||
|
||||
rule * get_rule(unsigned i) const { return m_rules[i]; }
|
||||
rule * last() const { return m_rules[m_rules.size()-1]; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue