* src/tgbaparse/tgbaparse.yy (acc_decl): Diagnose acceptance
conditions rejected by the environment.
This commit is contained in:
parent
d2cf7199bc
commit
e5481ee3ac
2 changed files with 16 additions and 3 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2006-02-10 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
2006-02-10 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
||||||
|
|
||||||
|
* src/tgbaparse/tgbaparse.yy (acc_decl): Diagnose acceptance
|
||||||
|
conditions rejected by the environment.
|
||||||
|
|
||||||
* iface/gspn/ltlgspn.cc (display_stats): New function.
|
* iface/gspn/ltlgspn.cc (display_stats): New function.
|
||||||
(main): Use it.
|
(main): Use it.
|
||||||
* iface/gspn/ssp.cc: Add more counters for statistics.
|
* iface/gspn/ssp.cc: Add more counters for statistics.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/* Copyright (C) 2003, 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
|
/* Copyright (C) 2003, 2004, 2005, 2006 Laboratoire d'Informatique de
|
||||||
** département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
** Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
|
||||||
** et Marie Curie.
|
** Université Pierre et Marie Curie.
|
||||||
**
|
**
|
||||||
** This file is part of Spot, a model checking library.
|
** This file is part of Spot, a model checking library.
|
||||||
**
|
**
|
||||||
|
|
@ -196,6 +196,16 @@ acc_decl:
|
||||||
| acc_decl strident
|
| acc_decl strident
|
||||||
{
|
{
|
||||||
formula* f = parse_environment.require(*$2);
|
formula* f = parse_environment.require(*$2);
|
||||||
|
if (! f)
|
||||||
|
{
|
||||||
|
std::string s = "acceptance condition `";
|
||||||
|
s += *$2;
|
||||||
|
s += "' unknown in environment `";
|
||||||
|
s += parse_environment.name();
|
||||||
|
s += "'";
|
||||||
|
error_list.push_back(spot::tgba_parse_error(@2, s));
|
||||||
|
YYERROR;
|
||||||
|
}
|
||||||
result->declare_acceptance_condition(f);
|
result->declare_acceptance_condition(f);
|
||||||
delete $2;
|
delete $2;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue