* src/tgba/taa.cc, src/tgba/taa.hh: Speed up the cartesian product
in taa_succ_iterator and allow multiple initial states in taa. * src/tgba/ltl2taa.cc: Remove temporary printing.
This commit is contained in:
parent
eab1261437
commit
11ecdf2b86
4 changed files with 84 additions and 46 deletions
|
|
@ -74,7 +74,7 @@ namespace spot
|
|||
init_ = to_string(f);
|
||||
std::vector<std::string> dst;
|
||||
|
||||
dst.push_back(std::string("well"));
|
||||
dst.push_back(std::string("sink"));
|
||||
taa::transition* t = res_->create_transition(init_, dst);
|
||||
res_->add_condition(t, clone(f));
|
||||
succ_state ss = { dst, f, constant::true_instance() };
|
||||
|
|
@ -90,7 +90,7 @@ namespace spot
|
|||
{
|
||||
case constant::True:
|
||||
{
|
||||
dst.push_back(std::string("well"));
|
||||
dst.push_back(std::string("sink"));
|
||||
res_->create_transition(init_, dst);
|
||||
succ_state ss = { dst, node, constant::true_instance() };
|
||||
succ_.push_back(ss);
|
||||
|
|
@ -383,8 +383,6 @@ namespace spot
|
|||
const ltl::formula* f2 = ltl::negative_normal_form(f1);
|
||||
ltl::destroy(f1);
|
||||
|
||||
std::cerr << ltl::to_string(f2) << std::endl;
|
||||
|
||||
spot::taa* res = new spot::taa(dict);
|
||||
language_containment_checker* lcc =
|
||||
new language_containment_checker(dict, false, false, false, false);
|
||||
|
|
@ -393,9 +391,6 @@ namespace spot
|
|||
ltl::destroy(f2);
|
||||
delete lcc;
|
||||
|
||||
// TODO: temporary.
|
||||
res->output(std::cerr);
|
||||
|
||||
return v.result();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue