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:
Alexandre Duret-Lutz 2015-06-09 08:33:37 +02:00
parent 7f8aad05e8
commit da5ba0b138
2 changed files with 23 additions and 2 deletions

View file

@ -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;