mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55: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
|
@ -684,7 +684,7 @@ namespace nlarith {
|
|||
|
||||
void get_coefficients(poly const& p, app*& a, app*& b, app*& c) {
|
||||
a = b = c = z();
|
||||
if (p.size() > 0) c = p[0];
|
||||
if (!p.empty()) c = p[0];
|
||||
if (p.size() > 1) b = p[1];
|
||||
if (p.size() > 2) a = p[2];
|
||||
SASSERT(p.size() <= 3);
|
||||
|
@ -1359,7 +1359,7 @@ namespace nlarith {
|
|||
void quot_rem(poly const& u, poly const& v, poly& q, poly& r, app_ref& lc, unsigned& power) {
|
||||
lc = v.empty()?num(0):v[v.size()-1];
|
||||
power = 0;
|
||||
if (u.size() < v.size() || v.size() == 0) {
|
||||
if (u.size() < v.size() || v.empty()) {
|
||||
q.reset();
|
||||
r.reset();
|
||||
r.append(u);
|
||||
|
|
|
@ -387,7 +387,7 @@ namespace qe {
|
|||
for (row const& r : rows) {
|
||||
expr_ref_vector ts(m);
|
||||
expr_ref t(m), s(m), val(m);
|
||||
if (r.m_vars.size() == 0) {
|
||||
if (r.m_vars.empty()) {
|
||||
continue;
|
||||
}
|
||||
if (r.m_vars.size() == 1 && r.m_vars[0].m_coeff.is_neg() && r.m_type != opt::t_mod) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue