zlktree: fix handling of automata with false acceptance

Reported by Florian.

* spot/twaalgos/zlktree.cc (zielonka_tree_transform, acd_transform):
Here.
* tests/python/zlktree.py: Add test cases.
This commit is contained in:
Alexandre Duret-Lutz 2021-10-07 11:11:49 +02:00
parent 0ec1ee6de3
commit 9b3956f892
2 changed files with 18 additions and 8 deletions

View file

@ -124,3 +124,13 @@ except RuntimeError as e:
assert 'unknown node' in str(e)
else:
report_missing_exception()
a = spot.translate('true')
a.set_acceptance(spot.acc_cond('f'))
b = spot.acd_transform(a)
assert a.equivalent_to(b)
a = spot.translate('true')
a.set_acceptance(spot.acc_cond('f'))
b = spot.zielonka_tree_transform(a)
assert a.equivalent_to(b)