hoaparse: catch non-Boolean guard in LBTT format
Fixes #90. * src/hoaparse/hoaparse.yy: Here. * src/tests/hoaparse.test: Test it.
This commit is contained in:
parent
7f8aad05e8
commit
da5ba0b138
2 changed files with 23 additions and 2 deletions
|
|
@ -1415,8 +1415,17 @@ lbtt-guard: STRING
|
|||
}
|
||||
else
|
||||
{
|
||||
res.cur_label =
|
||||
formula_to_bdd(f, res.h->aut->get_dict(), res.h->aut);
|
||||
if (!f->is_boolean())
|
||||
{
|
||||
error(@$,
|
||||
"non-Boolean transition label (replaced by true)");
|
||||
res.cur_label = bddtrue;
|
||||
}
|
||||
else
|
||||
{
|
||||
res.cur_label =
|
||||
formula_to_bdd(f, res.h->aut->get_dict(), res.h->aut);
|
||||
}
|
||||
f->destroy();
|
||||
}
|
||||
delete $1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue