* iface/gspn/ltlgspn.cc: New option -L.

* iface/gspn/ssp.cc, iface/gspn/ssp.hh (gspn_ssp_interface)
support for a new option "pushfront".
This commit is contained in:
Alexandre Duret-Lutz 2007-07-23 13:56:34 +00:00
parent fd2033aaba
commit b8fd421232
4 changed files with 25 additions and 6 deletions

View file

@ -49,6 +49,7 @@ namespace spot
}
static bool doublehash;
static bool pushfront;
}
// state_gspn_ssp
@ -539,10 +540,12 @@ namespace spot
const
ltl::declarative_environment& env,
bool inclusion,
bool doublehash_)
bool doublehash_,
bool pushfront_)
: dict_(dict), env_(env)
{
doublehash = doublehash_;
pushfront = pushfront_;
if (inclusion)
inclusion_version();
@ -863,7 +866,10 @@ namespace spot
if (sg)
{
const void* cont = container_(sg);
contained[cont][s_->right()].push_front(s);
if (pushfront)
contained[cont][s_->right()].push_front(s);
else
contained[cont][s_->right()].push_back(s);
}
}