Skip to content

SMV: KNOWNBUG test for integer range with negative numbers #1184

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 7, 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
8 changes: 8 additions & 0 deletions regression/smv/range-type/range_type10.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
KNOWNBUG
range_type10.smv

^EXIT=0$
^SIGNAL=0$
--
--
This fails to parse.
22 changes: 22 additions & 0 deletions regression/smv/range-type/range_type10.smv
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MODULE main

VAR x : 1..6;
VAR y : -6..-1;

ASSIGN init(x) := 1;
ASSIGN init(y) := -1;

ASSIGN next(x) :=
case
x=6 : 1;
TRUE: x+1;
esac;

ASSIGN next(y) :=
case
y=-6 : -1;
TRUE: y + -1;
esac;

-- should pass
LTLSPEC G x + y = 0
Loading