mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 19:35:50 +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
|
@ -3466,11 +3466,11 @@ namespace realclosure {
|
|||
// ---------------------------------
|
||||
|
||||
bool is_monic(value_ref_buffer const & p) {
|
||||
return p.size() > 0 && is_rational_one(p[p.size() - 1]);
|
||||
return !p.empty() && is_rational_one(p[p.size() - 1]);
|
||||
}
|
||||
|
||||
bool is_monic(polynomial const & p) {
|
||||
return p.size() > 0 && is_rational_one(p[p.size() - 1]);
|
||||
return !p.empty() && is_rational_one(p[p.size() - 1]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue