mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +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
|
@ -137,7 +137,7 @@ ATOMIC_CMD(get_assignment_cmd, "get-assignment", "retrieve assignment", {
|
|||
symbol const & name = kv.m_key;
|
||||
macro_decls const & _m = kv.m_value;
|
||||
for (auto md : _m) {
|
||||
if (md.m_domain.size() == 0 && ctx.m().is_bool(md.m_body)) {
|
||||
if (md.m_domain.empty() && ctx.m().is_bool(md.m_body)) {
|
||||
model::scoped_model_completion _scm(*m, true);
|
||||
expr_ref val = (*m)(md.m_body);
|
||||
if (ctx.m().is_true(val) || ctx.m().is_false(val)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue