Fix return of is_deterministic(), it was inverted.

Reported by Étienne Renault.

* src/tgbaalgos/isdet.cc (is_deterministic): Invert return code.
* src/tgbatest/nondet.test: New file.
* src/tgbatest/Makefile.am (TESTS): Add it.
This commit is contained in:
Alexandre Duret-Lutz 2012-09-30 09:57:20 +02:00
parent 7854f629e5
commit 4ed4e4d2a8
3 changed files with 42 additions and 1 deletions

View file

@ -106,6 +106,6 @@ namespace spot
bool
is_deterministic(const tgba* aut)
{
return !!count_nondet_states_aux(aut, false);
return !count_nondet_states_aux(aut, false);
}
}