mirror of
https://github.com/Z3Prover/z3
synced 2025-06-23 14:23:40 +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
|
@ -436,7 +436,7 @@ struct expr2polynomial::imp {
|
|||
margs.push_back(t);
|
||||
}
|
||||
}
|
||||
if (margs.size() == 0) {
|
||||
if (margs.empty()) {
|
||||
args.push_back(m_autil.mk_numeral(rational(1), is_int));
|
||||
}
|
||||
else if (margs.size() == 1) {
|
||||
|
@ -447,7 +447,7 @@ struct expr2polynomial::imp {
|
|||
}
|
||||
}
|
||||
|
||||
if (args.size() == 0) {
|
||||
if (args.empty()) {
|
||||
r = m_autil.mk_numeral(rational(0), is_int);
|
||||
}
|
||||
else if (args.size() == 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue