Skip to content

Commit b41f57d

Browse files
committed
SVA-to-Buechi: fix [+]
This fixes the translation of the SVA [+] operator to Buechi.
1 parent 96e6ba3 commit b41f57d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/temporal-logic/ltl_sva_to_string.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,11 @@ ltl_sva_to_stringt::rec(const exprt &expr, modet mode)
477477
else if(expr.id() == ID_sva_sequence_repetition_plus) // something[+]
478478
{
479479
PRECONDITION(mode == SVA_SEQUENCE);
480-
return suffix("[+]", expr, mode);
480+
unary_exprt new_expr{
481+
ID_sva_sequence_repetition_plus,
482+
to_sva_sequence_repetition_plus_expr(expr).op(),
483+
expr.type()};
484+
return suffix("[+]", new_expr, mode);
481485
}
482486
else if(expr.id() == ID_sva_sequence_goto_repetition) // something[->n]
483487
{

0 commit comments

Comments
 (0)