mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +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
|
@ -85,7 +85,7 @@ struct model::value_proc : public some_value_proc {
|
|||
expr * operator()(sort * s) override {
|
||||
ptr_vector<expr> * u = nullptr;
|
||||
if (m_model.m_usort2universe.find(s, u)) {
|
||||
if (u->size() > 0)
|
||||
if (!u->empty())
|
||||
return u->get(0);
|
||||
}
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue