Commit 58b233db authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Reverse the order of expected acceptance conditions in

degeneralization.

* src/tgba/tgbatba.cc (tgba_sba_proxy::tgba_tba_proxy): Build the
list of acceptance condition in the reverse order.  The order is
still arbitrary, but the bdd_satone() call seems to output the
acceptance conditions that are more used first, and this helps the
degeneralization process.
parent 351a8076
2010-03-06 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Reverse the order of expected acceptance conditions in
degeneralization.
* src/tgba/tgbatba.cc (tgba_sba_proxy::tgba_tba_proxy): Build the
list of acceptance condition in the reverse order. The order is
still arbitrary, but the bdd_satone() call seems to output the
acceptance conditions that are more used first, and this helps the
degeneralization process.
2010-03-06 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Tweak precedence of "->" and <->.
......
......@@ -263,12 +263,19 @@ namespace spot
else
{
// Build a cycle of expected acceptance conditions.
//
// The order is arbitrary, but it turns out that using
// push_back instead of push_front often gives better results
// because acceptance conditions and the beginning if the
// cycle are more often used in the automaton. (This
// surprising fact is probably related to order in which we
// declare the BDD variables during the translation.)
bdd all = a_->all_acceptance_conditions();
while (all != bddfalse)
{
bdd next = bdd_satone(all);
all -= next;
acc_cycle_.push_front(next);
acc_cycle_.push_back(next);
}
}
}
......
Markdown is supported
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