* src/tgba/tgbacomplement.cc, src/tgbatest/complementation.cc: Fix style.

This commit is contained in:
Guillaume Sadegh 2009-06-09 18:59:53 +02:00
parent 7817f325eb
commit 4d4fc641b5
3 changed files with 22 additions and 13 deletions

View file

@ -1,3 +1,7 @@
2009-06-09 Guillaume Sadegh <sadegh@lrde.epita.fr>
* src/tgba/tgbacomplement.cc, src/tgbatest/complementation.cc: Fix style.
2009-06-07 Guillaume Sadegh <sadegh@lrde.epita.fr>
* src/tgba/tgbacomplement.cc (state_complement::hash): Improve

View file

@ -245,7 +245,9 @@ namespace spot
for (subset_t::const_iterator i = nodes.begin(); i != nodes.end(); ++i)
hash ^= (*i)->hash();
for (child_list::const_iterator i = children.begin(); i != children.end(); ++i)
for (child_list::const_iterator i = children.begin();
i != children.end();
++i)
hash ^= (*i)->hash();
return hash;
@ -367,11 +369,11 @@ namespace spot
t_it != transitions.end();
++t_it)
{
if (((*t_it).first & condition) != bddfalse)
if ((t_it->first & condition) != bddfalse)
{
if (new_subset.find((*t_it).second) == new_subset.end())
if (new_subset.find(t_it->second) == new_subset.end())
{
const state* s = (*t_it).second->clone();
const state* s = t_it->second->clone();
new_subset.insert(s);
}
}
@ -1069,7 +1071,7 @@ namespace spot
for (automaton_t::const_iterator i = automaton.begin();
i != automaton.end();
++i)
max = std::max(max, (*i).first->max_name());
max = std::max(max, i->first->max_name());
return max_nb_pairs_ = max + 1;
}
@ -1243,7 +1245,7 @@ namespace spot
bdd res = bddtrue;
trans_it i;
for (i = node->second.begin(); i != node->second.end(); ++i)
res |= (*i).first;
res |= i->first;
return res;
}
@ -1263,7 +1265,7 @@ namespace spot
bdd res = bddtrue;
trans_it i;
for (i = node->second.begin(); i != node->second.end(); ++i)
res &= bdd_support((*i).first);
res &= bdd_support(i->first);
return res;
}

View file

@ -67,9 +67,12 @@ int main(int argc, char* argv[])
switch (argv[i][1])
{
case 's': print_safra = true; break;
case 'a': print_automaton = true; break;
case 'f': check = true; break;
case 's':
print_safra = true; break;
case 'a':
print_automaton = true; break;
case 'f':
check = true; break;
default:
std::cerr << "unrecognized option `-" << argv[i][1]
<< "'" << std::endl;