remove twa::compute_support_conditions

Fixes #148.

* spot/twa/twa.hh, spot/twa/twa.cc, spot/kripke/fairkripke.hh,
spot/kripke/fairkripke.cc, spot/ta/tgtaexplicit.hh,
spot/ta/tgtaexplicit.cc, spot/twa/twagraph.hh, spot/twa/twaproduct.hh,
spot/twa/twaproduct.cc, spot/twaalgos/stutter.cc, spot/twa/taatgba.hh,
spot/twa/taatgba.cc: Remove the method.
* spot/taalgos/tgba2ta.cc: Emulate it with a simple loop.
* NEWS: Mention the removal.
This commit is contained in:
Alexandre Duret-Lutz 2016-02-15 10:45:05 +01:00
parent 39b95474f8
commit a3e0c8624e
14 changed files with 15 additions and 120 deletions

View file

@ -30,8 +30,7 @@ namespace spot
{
twa::twa(const bdd_dict_ptr& d)
: iter_cache_(nullptr),
dict_(d),
last_support_conditions_input_(nullptr)
dict_(d)
{
props = 0U;
bddaps_ = bddtrue;
@ -39,27 +38,11 @@ namespace spot
twa::~twa()
{
if (last_support_conditions_input_)
last_support_conditions_input_->destroy();
delete iter_cache_;
release_named_properties();
get_dict()->unregister_all_my_variables(this);
}
bdd
twa::support_conditions(const state* state) const
{
if (!last_support_conditions_input_
|| last_support_conditions_input_->compare(state) != 0)
{
last_support_conditions_output_ = compute_support_conditions(state);
if (last_support_conditions_input_)
last_support_conditions_input_->destroy();
last_support_conditions_input_ = state->clone();
}
return last_support_conditions_output_;
}
state*
twa::project_state(const state* s,
const const_twa_ptr& t) const