Read guard of the form !(x) in neverclaims.

So far all neverclaims encountered would use (!(x)), but the
files from the Büchi store do not.

* src/neverparse/neverclaimscan.ll: Accept ! in front of guard,
so that we can read Promela files from Goal's Büchi store.
* src/tgbatest/neverclaimread.test: Test it.
This commit is contained in:
Alexandre Duret-Lutz 2011-02-03 22:33:47 +01:00
parent 3278844c2a
commit 91e51c4c3f
3 changed files with 15 additions and 2 deletions

View file

@ -35,6 +35,7 @@ T1:
if
:: (p1 && (! p0)) -> goto accept_all
:: (p1) -> goto T1
:: !(p1) -> goto T2_init
fi;
accept_all:
skip
@ -53,6 +54,7 @@ digraph G {
2 [label="T1"]
2 -> 3 [label="p1 & !p0\n"]
2 -> 2 [label="p1\n"]
2 -> 1 [label="!p1\n"]
3 [label="accept_all"]
3 -> 3 [label="1\n{Acc[1]}"]
}