relabel: fix infinite recursion in relabel_bse()
Reported by František Blahoudek. * spot/tl/relabel.cc: Fix. * tests/core/ltlrel.test: Add test case. * NEWS: Mention the bug.
This commit is contained in:
parent
272daf62fc
commit
a0cd56735a
3 changed files with 16 additions and 2 deletions
|
|
@ -433,13 +433,14 @@ namespace spot
|
|||
/// it as ((a & b) & Xc) in the graph to isolate the
|
||||
/// Boolean operands as a single node.
|
||||
formula b = f.boolean_operands(&i);
|
||||
if (b)
|
||||
if (b && b != f)
|
||||
{
|
||||
res.reserve(sz - i + 1);
|
||||
res.push_back(visit(b));
|
||||
}
|
||||
else
|
||||
{
|
||||
i = 0;
|
||||
res.reserve(sz);
|
||||
}
|
||||
for (; i < sz; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue