Skip to content

Commit 8254d29

Browse files
authored
Merge pull request #1025 from diffblue/fix-sva_s_always
Bugfix: `s_always` is a temporal logic operator
2 parents 295cdef + 615038c commit 8254d29

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

regression/verilog/SVA/initial1.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ initial1.sv
55
^\[main\.p1\] main\.counter == 100: REFUTED$
66
^\[main\.p2\] ##1 main\.counter == 1: PROVED up to bound 5$
77
^\[main\.p3\] ##1 main\.counter == 100: REFUTED$
8-
^\[main\.p4\] s_nexttime main\.counter == 1: PROVED$
8+
^\[main\.p4\] s_nexttime main\.counter == 1: PROVED up to bound 5$
99
^EXIT=10$
1010
^SIGNAL=0$
1111
--

src/temporal-logic/temporal_logic.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,14 @@ bool is_SVA_operator(const exprt &expr)
117117
return is_SVA_sequence(expr) || id == ID_sva_disable_iff ||
118118
id == ID_sva_accept_on || id == ID_sva_reject_on ||
119119
id == ID_sva_sync_accept_on || id == ID_sva_sync_reject_on ||
120-
id == ID_sva_always || id == ID_sva_ranged_always ||
121-
id == ID_sva_nexttime || id == ID_sva_s_nexttime ||
122-
id == ID_sva_indexed_nexttime || id == ID_sva_until ||
123-
id == ID_sva_s_until || id == ID_sva_until_with ||
124-
id == ID_sva_s_until_with || id == ID_sva_eventually ||
125-
id == ID_sva_s_eventually || id == ID_sva_ranged_s_eventually ||
126-
id == ID_sva_cycle_delay || id == ID_sva_overlapped_followed_by ||
120+
id == ID_sva_always || id == ID_sva_s_always ||
121+
id == ID_sva_ranged_always || id == ID_sva_nexttime ||
122+
id == ID_sva_s_nexttime || id == ID_sva_indexed_nexttime ||
123+
id == ID_sva_until || id == ID_sva_s_until ||
124+
id == ID_sva_until_with || id == ID_sva_s_until_with ||
125+
id == ID_sva_eventually || id == ID_sva_s_eventually ||
126+
id == ID_sva_ranged_s_eventually || id == ID_sva_cycle_delay ||
127+
id == ID_sva_overlapped_followed_by ||
127128
id == ID_sva_nonoverlapped_followed_by;
128129
}
129130

0 commit comments

Comments
 (0)