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:
parent
43b3df0ef0
commit
f00d97b4ba
7 changed files with 87 additions and 33 deletions
|
|
@ -22,26 +22,13 @@
|
|||
#include "simulation.hh"
|
||||
#include "sccfilter.hh"
|
||||
#include "degen.hh"
|
||||
#include "stats.hh"
|
||||
#include "stripacc.hh"
|
||||
#include <cstdlib>
|
||||
#include "misc/optionmap.hh"
|
||||
#include "priv/countstates.hh"
|
||||
|
||||
namespace spot
|
||||
{
|
||||
unsigned count_states(const tgba* a)
|
||||
{
|
||||
const sba_explicit_number* se =
|
||||
dynamic_cast<const sba_explicit_number*>(a);
|
||||
if (se)
|
||||
return se->num_states();
|
||||
const tgba_explicit_number* te =
|
||||
dynamic_cast<const tgba_explicit_number*>(a);
|
||||
if (te)
|
||||
return te->num_states();
|
||||
tgba_statistics st = stats_reachable(a);
|
||||
return st.states;
|
||||
}
|
||||
|
||||
postprocessor::postprocessor(const option_map* opt)
|
||||
: type_(TGBA), pref_(Small), level_(High),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue