Fix computation of syntactic classes for Implies.

* src/ltlast/binop.cc (binop::binop): Fix computation
of syntactic guarantee and syntactic obligation for the Implies
operator.  Reported by Étienne Renault.
* src/ltltest/kind.test: Add more tests.
This commit is contained in:
Alexandre Duret-Lutz 2012-02-06 13:18:52 +01:00
parent 395793d986
commit 54fd973a90
2 changed files with 9 additions and 4 deletions

View file

@ -95,9 +95,9 @@ namespace spot
is.sugar_free_boolean = false;
is.in_nenoform = false;
is.syntactic_safety =
first->is_syntactic_obligation() && second->is_syntactic_safety();
is.syntactic_obligation =
first->is_syntactic_safety() && second->is_syntactic_obligation();
first->is_syntactic_guarantee() && second->is_syntactic_safety();
is.syntactic_guarantee =
first->is_syntactic_safety() && second->is_syntactic_guarantee();
// is.syntactic_obligation inherited
is.syntactic_persistence = first->is_syntactic_recurrence()
&& second->is_syntactic_persistence();