Skip to content

Commit d88f6f6

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

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
@@ -473,7 +473,11 @@ ltl_sva_to_stringt::rec(const exprt &expr, modet mode)
473473
else if(expr.id() == ID_sva_sequence_repetition_plus) // something[+]
474474
{
475475
PRECONDITION(mode == SVA_SEQUENCE);
476-
return suffix("[+]", expr, mode);
476+
unary_exprt new_expr{
477+
ID_sva_sequence_repetition_plus,
478+
to_sva_sequence_repetition_plus_expr(expr).op(),
479+
expr.type()};
480+
return suffix("[+]", new_expr, mode);
477481
}
478482
else if(expr.id() == ID_sva_sequence_goto_repetition) // something[->n]
479483
{

0 commit comments

Comments
 (0)