is_unambiguous: fix false negatives

Reported by Simon Jantsch and David Müller.

* tests/core/unambig.test: Test the issue.
* spot/twaalgos/isunamb.cc: Fix it.
* NEWS: Mention it.
* THANKS: Add Simon.
This commit is contained in:
Alexandre Duret-Lutz 2018-04-09 10:22:49 +02:00
parent 6cec43294d
commit 568a6180f1
4 changed files with 56 additions and 2 deletions

View file

@ -97,7 +97,7 @@ namespace spot
unsigned one_state = sccmap_prod.states_of(n).front();
bool accepting =
v[(*sprod)[one_state].first] && v[(*sprod)[one_state].second];
if (accepting)
if (accepting && !sccmap_prod.is_trivial(n))
{
useful[n] = true;
continue;