Skip to content

SMV: two tests for union #1179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions regression/smv/expressions/smv_union1.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CORE broken-smt-backend
smv_union1.smv

^\[spec1\] x != 3: PROVED \(CT=1\)$
^\[spec2\] x != 2: REFUTED$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
11 changes: 11 additions & 0 deletions regression/smv/expressions/smv_union1.smv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
MODULE main

VAR x : 1..3;
ASSIGN init(x) := 1 union 2;
next(x) := x;

-- passes
SPEC x != 3

-- fails
SPEC x != 2
11 changes: 11 additions & 0 deletions regression/smv/expressions/smv_union2.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
KNOWNBUG broken-smt-backend
smv_union2.smv

^\[spec1\] x != 3: PROVED \(CT=1\)$
^\[spec2\] x != 2: REFUTED$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
--
The type checker rejects this.
11 changes: 11 additions & 0 deletions regression/smv/expressions/smv_union2.smv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
MODULE main

VAR x : 1..3;
ASSIGN init(x) := 1 union { 2 };
next(x) := x;

-- passes
SPEC x != 3

-- fails
SPEC x != 2
Loading