mirror of
https://github.com/Z3Prover/z3
synced 2025-10-06 16:01:55 +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
|
@ -487,7 +487,7 @@ namespace datalog {
|
|||
|
||||
res->init(*res_table, joined_orelations, true);
|
||||
|
||||
if(m_tr_table_joined_cols.size()) {
|
||||
if(!m_tr_table_joined_cols.empty()) {
|
||||
//There were some shared variables between the table and the relation part.
|
||||
//We enforce those equalities here.
|
||||
if(!m_filter_tr_identities) {
|
||||
|
|
|
@ -170,7 +170,7 @@ namespace datalog {
|
|||
SASSERT(is_inner_col(idx));
|
||||
return m_sig2inner[idx];
|
||||
}
|
||||
bool no_sieved_columns() const { return m_ignored_cols.size()==0; }
|
||||
bool no_sieved_columns() const { return m_ignored_cols.empty(); }
|
||||
bool no_inner_columns() const { return m_ignored_cols.size()==get_signature().size(); }
|
||||
|
||||
relation_base & get_inner() { return *m_inner; }
|
||||
|
|
|
@ -1216,7 +1216,7 @@ namespace datalog {
|
|||
|
||||
verbose_action _va("filter_by_negation");
|
||||
|
||||
if (m_cols1.size() == 0) {
|
||||
if (m_cols1.empty()) {
|
||||
if (!neg.empty()) {
|
||||
tgt.reset();
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ namespace datalog {
|
|||
~sparse_table_plugin() override;
|
||||
|
||||
bool can_handle_signature(const table_signature & s) override
|
||||
{ return s.size()>0; }
|
||||
{ return !s.empty(); }
|
||||
|
||||
table_base * mk_empty(const table_signature & s) override;
|
||||
sparse_table * mk_clone(const sparse_table & t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue