unit_propagation: Correct a segfault when we have true in the condition
* spot/twa/acc.cc: Check if we have a "true" condition in unit_propagation.
This commit is contained in:
parent
ee3e09f8c9
commit
d784094ab9
1 changed files with 2 additions and 0 deletions
|
|
@ -2651,6 +2651,8 @@ namespace spot
|
||||||
result = init_code | result.remove(mark, fin == conj);
|
result = init_code | result.remove(mark, fin == conj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (result.is_t())
|
||||||
|
return result;
|
||||||
auto pos = &result.back();
|
auto pos = &result.back();
|
||||||
auto fo = pos->sub.op;
|
auto fo = pos->sub.op;
|
||||||
bool is_and = (fo == acc_cond::acc_op::And);
|
bool is_and = (fo == acc_cond::acc_op::And);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue