Skip to content

Commit 857e19f

Browse files
authored
Merge pull request #1384 from diffblue/smv_ltlspec_X1
SMV: test for precedence of X vs &
2 parents 4e11cbc + a22bb78 commit 857e19f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CORE
2+
smv_ltlspec_X1.smv
3+
4+
^\[.*\] X x & x: REFUTED$
5+
^\[.*\] X x & x: REFUTED$
6+
^\[.*\] X \(x & x\): PROVED \(CT=1\)$
7+
^EXIT=10$
8+
^SIGNAL=0$
9+
--
10+
^warning: ignoring
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
MODULE main
2+
3+
VAR x : boolean;
4+
5+
ASSIGN next(x) := TRUE;
6+
init(x) := FALSE;
7+
8+
-- X binds stronger than &
9+
LTLSPEC X x & x -- should parse as (X x) & x
10+
LTLSPEC (X x) & x -- should fail
11+
LTLSPEC X (x & x) -- should pass

0 commit comments

Comments
 (0)