* src/sanity/style.test: New file.
* src/sanity/Makefile.am (check-local): Run it. * src/ltlvisit/nenoform.cc, src/ltlvisit/tostring.cc, src/tgba/bdddict.cc, src/tgba/bddprint.cc, src/tgba/tgba.cc, src/tgba/tgbaproduct.cc, src/tgbaalgos/lbtt.cc, src/tgbaalgos/magic.cc, src/tgbaalgos/powerset.cc, src/tgbaalgos/reachiter.cc, src/tgbaalgos/gtec/ce.cc, src/tgbaalgos/gtec/gtec.cc, src/tgbatest/ltl2tgba.cc: Fix style issues reported by style.test.
This commit is contained in:
parent
69169970a2
commit
c4a5b325a2
16 changed files with 135 additions and 36 deletions
|
|
@ -44,7 +44,7 @@ namespace spot
|
|||
if (x)
|
||||
delete x;
|
||||
// Release all iterators on the stack.
|
||||
while (! stack.empty())
|
||||
while (!stack.empty())
|
||||
{
|
||||
delete stack.front().second;
|
||||
stack.pop_front();
|
||||
|
|
@ -101,14 +101,14 @@ namespace spot
|
|||
|
||||
assert(stack.size() == 1 + tstack.size());
|
||||
|
||||
while (! stack.empty())
|
||||
while (!stack.empty())
|
||||
{
|
||||
recurse:
|
||||
magic_search::state_iter_pair& p = stack.front();
|
||||
tgba_succ_iterator* i = p.second;
|
||||
const bool magic = p.first.m;
|
||||
|
||||
while (! i->done())
|
||||
while (!i->done())
|
||||
{
|
||||
const state* s_prime = i->current_state();
|
||||
bdd c = i->current_condition();
|
||||
|
|
@ -120,7 +120,7 @@ namespace spot
|
|||
assert(stack.size() == tstack.size());
|
||||
return true;
|
||||
}
|
||||
if (! has(s_prime, magic))
|
||||
if (!has(s_prime, magic))
|
||||
{
|
||||
push(s_prime, magic);
|
||||
tstack.push_front(c);
|
||||
|
|
@ -133,9 +133,9 @@ namespace spot
|
|||
delete i;
|
||||
stack.pop_front();
|
||||
|
||||
if (! magic && a->state_is_accepting(s))
|
||||
if (!magic && a->state_is_accepting(s))
|
||||
{
|
||||
if (! has(s, true))
|
||||
if (!has(s, true))
|
||||
{
|
||||
if (x)
|
||||
delete x;
|
||||
|
|
@ -144,7 +144,7 @@ namespace spot
|
|||
continue;
|
||||
}
|
||||
}
|
||||
if (! stack.empty())
|
||||
if (!stack.empty())
|
||||
tstack.pop_front();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue