tl: fix detection of goto
Fixes #559. * spot/tl/print.cc (strip_star_not): Only match a full star. * tests/core/sugar.test: Add test case.
This commit is contained in:
parent
94ab42612a
commit
db168f97e6
3 changed files with 14 additions and 0 deletions
|
|
@ -348,6 +348,8 @@ namespace spot
|
|||
static formula
|
||||
strip_star_not(formula f)
|
||||
{
|
||||
if (!f.is_Kleene_star())
|
||||
return nullptr;
|
||||
return f.get_child_of({op::Star, op::Not});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue