Skip to content

Commit

Permalink
SMV: two tests for range types
Browse files Browse the repository at this point in the history
This adds two further tests for SMV range types.
  • Loading branch information
kroening committed Dec 20, 2024
1 parent 35fdabf commit e89a6ed
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
8 changes: 8 additions & 0 deletions regression/ebmc/range_type/range_type7.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CORE broken-smt-backend
range_type7.smv
--bound 5
^\[spec1\] G x != 1: REFUTED$
^EXIT=10$
^SIGNAL=0$
--
--
14 changes: 14 additions & 0 deletions regression/ebmc/range_type/range_type7.smv
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
MODULE main
VAR x:1..6;

ASSIGN
init(x) := 6;

next(x) :=
case
x!=1 : x - 1;
TRUE: 1;
esac;

-- should fail
LTLSPEC G x!=1
9 changes: 9 additions & 0 deletions regression/ebmc/range_type/range_type8.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
KNOWNBUG broken-smt-backend
range_type8.smv
--bound 5
^\[spec1\] G x != 1: REFUTED$
^EXIT=10$
^SIGNAL=0$
--
--
We do not have type checking for unary minus.
14 changes: 14 additions & 0 deletions regression/ebmc/range_type/range_type8.smv
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
MODULE main
VAR x:1..6;

ASSIGN
init(x) := 6;

next(x) :=
case
x!=1 : x + -1; -- unary minus
TRUE: 1;
esac;

-- should fail
LTLSPEC G x!=1

0 comments on commit e89a6ed

Please sign in to comment.