Use the count_state() function instead of stats_reachable().

* src/tgbaalgos/postproc.cc: Move the count_state() function...
* src/priv/countstates.cc, src/priv/countstates.hh: ... in these
new files.
* src/priv/Makefile.am: Add them.
* src/saba/sabacomplementtgba.cc, src/tgba/tgbakvcomplement.cc,
src/tgbaalgos/minimize.cc: Use count_states() instead of
stats_reachable().
This commit is contained in:
Alexandre Duret-Lutz 2013-07-10 07:57:24 +02:00
parent 43b3df0ef0
commit f00d97b4ba
7 changed files with 87 additions and 33 deletions

View file

@ -29,7 +29,7 @@
#include "misc/hashfunc.hh"
#include "ltlast/formula.hh"
#include "ltlast/constant.hh"
#include "tgbaalgos/stats.hh"
#include "priv/countstates.hh"
namespace spot
{
@ -601,10 +601,7 @@ namespace spot
int v = get_dict()
->register_acceptance_variable(ltl::constant::true_instance(), this);
the_acceptance_cond_ = bdd_ithvar(v);
{
spot::tgba_statistics a_size = spot::stats_reachable(automaton_);
nb_states_ = a_size.states;
}
nb_states_ = count_states(automaton_);
get_acc_list();
}