print_hoa: output all registered APs
Also introduce twa::unregister_ap() and twa_graph::remove_unused_ap() so that the methods where this behavior is expected can be fixed. And fix ltsmin::kripke() which did not register APs. Part of #170. * spot/twaalgos/hoa.cc: Use apvars() to print all registerd APs. Throw an exception when printing automata using unregistered APs. * spot/ltsmin/ltsmin.cc: Call register_ap(). * spot/twa/twa.cc, spot/twa/twa.hh, spot/twa/twagraph.cc, spot/twa/twagraph.hh (twa::unregister_ap, twa_graph::remove_unused_ap): New methods. * spot/tl/exclusive.cc, spot/twaalgos/postproc.cc, spot/twaalgos/remprop.cc, spot/twaalgos/relabel.cc: Use them. * tests/core/maskacc.test, tests/core/maskkeep.test, tests/core/strength.test: Adjust expected results. * NEWS: Mention those changes.
This commit is contained in:
parent
9afa98a1dd
commit
1c2c914d7e
14 changed files with 124 additions and 49 deletions
|
|
@ -1103,8 +1103,13 @@ namespace spot
|
|||
dict->unregister_all_my_variables(iface.get());
|
||||
throw;
|
||||
}
|
||||
|
||||
return std::make_shared<spins_kripke>(iface, dict, ps, dead, compress);
|
||||
auto res = std::make_shared<spins_kripke>(iface, dict, ps, dead, compress);
|
||||
// All atomic propositions have been registered to the bdd_dict
|
||||
// for iface, but we also need to add them to the automaton so
|
||||
// twa::ap() works.
|
||||
for (auto ap: *to_observe)
|
||||
res->register_ap(ap);
|
||||
return res;
|
||||
}
|
||||
|
||||
ltsmin_model::~ltsmin_model()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue