Commit 9f47dde5 authored by Damien Lefortier's avatar Damien Lefortier
Browse files

Fix make check in sanity.

* src/tgba/taa.cc, src/tgbaalgos/ltl2taa.cc: Fix style.
parent 84060b49
2009-10-17 Damien Lefortier <dam@lrde.epita.fr>
Fix make check in sanity.
* src/tgba/taa.cc, src/tgbaalgos/ltl2taa.cc: Fix style.
2009-10-16 Damien Lefortier <dam@lrde.epita.fr>
Minor fixes.
......
......@@ -156,7 +156,7 @@ namespace spot
state_set::const_iterator i1 = ss->begin();
sn_map::const_iterator i2;
if (ss->size() == 0)
if (ss->empty())
return std::string("{}");
if (ss->size() == 1)
{
......@@ -346,7 +346,7 @@ namespace spot
{
if (std::distance(its_[i], bounds_[i].second) > 1)
{
its_[i]++;
++its_[i];
break;
}
else
......@@ -370,7 +370,7 @@ namespace spot
for (unsigned i = 0; i < its_.size(); ++i)
if (its_[i] == bounds_[i].second)
return true;
return its_.size() == 0 ? true : false;
return its_.empty() ? true : false;
}
spot::state_set*
......
......@@ -108,7 +108,7 @@ namespace spot
switch (node->op())
{
case unop::X:
if (v.succ_.size() == 0) // Handle X(0)
if (v.succ_.empty()) // Handle X(0)
return;
dst.push_back(v.init_);
res_->create_transition(init_, dst);
......@@ -197,7 +197,7 @@ namespace spot
for (unsigned n = 0; n < node->size(); ++n)
{
vs.push_back(recurse(node->nth(n)));
if (vs[n].succ_.size() == 0) // Handle 0
if (vs[n].succ_.empty()) // Handle 0
ok = false;
}
......@@ -281,7 +281,7 @@ namespace spot
formula* f = constant::true_instance();
for (unsigned i = 0; i < vs.size(); ++i)
{
if (vs[i].succ_.size() == 0)
if (vs[i].succ_.empty())
continue;
const succ_state& ss(vs[i].succ_[pos[i] - 1]);
std::copy(ss.first.begin(), ss.first.end(), ii(u, u.begin()));
......@@ -292,7 +292,7 @@ namespace spot
for (int i = vs.size() - 1; i >= 0; --i)
{
if (vs[i].succ_.size() == 0)
if (vs[i].succ_.empty())
continue;
if (pos[i] > 1 || (i == 0 && pos[0] == 1))
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment