introduce the original-classes named property

* doc/org/concepts.org, NEWS: Document it.
* spot/twaalgos/determinize.cc, spot/twaalgos/determinize.hh,
spot/twaalgos/sbacc.cc, spot/twaalgos/sbacc.hh: Use it.
* spot/twa/twagraph.cc: Update it on defrag.
* spot/twa/twa.cc (copy_named_properties_of): Copy it.
* tests/python/det.py: New file.
* tests/Makefile.am: Add it.
* python/spot/impl.i (get_original_states, get_original_classes): New
methods, to help with the tests.
This commit is contained in:
Alexandre Duret-Lutz 2021-12-17 17:51:06 +01:00
parent d8f245a7de
commit 20bcc216a0
11 changed files with 170 additions and 35 deletions

View file

@ -983,6 +983,15 @@ static void* ptr_for_bdddict(PyObject* obj)
<std::vector<std::pair<unsigned, unsigned>>>("product-states");
}
std::vector<unsigned>* get_original_states()
{
return self->get_named_prop<std::vector<unsigned>>("original-states");
}
std::vector<unsigned>* get_original_classes()
{
return self->get_named_prop<std::vector<unsigned>>("original-classes");
}
twa* highlight_state(unsigned state, unsigned color)
{