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

@ -1,4 +1,4 @@
/* Copyright (C) 2010 Laboratoire de Recherche et Développement de
/* Copyright (C) 2010, 2011 Laboratoire de Recherche et Développement de
** l'Epita (LRDE).
**
** This file is part of Spot, a model checking library.
@ -56,7 +56,7 @@ eol \n|\r|\n\r|\r\n
"goto" return token::GOTO;
"false"|"0" return token::FALSE;
"(".*")"|"true"|"1" {
"!"?"(".*")"|"true"|"1" {
yylval->str = new std::string(yytext, yyleng);
return token::FORMULA;
}