Commit 54fd973a authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Fix computation of syntactic classes for Implies.

* src/ltlast/ (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.
parent 395793d9
......@@ -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();
#! /bin/sh
# Copyright (C) 2010, 2011 Laboratoire de Recherche et Developement to
# Copyright (C) 2010, 2011, 2012 Laboratoire de Recherche et Developement to
# l'Epita (LRDE).
# This file is part of Spot, a model checking library.
......@@ -53,6 +53,11 @@ check 'a R (b R (c R d))' '&!xfLPsopr'
check 'a U (b U (c U d))' '&!xfLPgopr'
check 'a W (b W (c W d))' '&!xfLPsopr'
check 'a M (b M (c M d))' '&!xfLPgopr'
check 'Fa -> Fb' 'xLPopr'
check 'Ga -> Fb' 'xLPgopr'
check 'Fa -> Gb' 'xLPsopr'
check '(Ga|Fc) -> Fb' 'xLPopr'
check '(Ga|Fa) -> Gb' 'xLPopr'
check '{a;c*;b}|->!Xb' '&fPsopr'
check '{a;c*;b}|->X!b' '&!fPsopr'
check '{a;c*;b}|->!Fb' '&xPsopr'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment