Skip to content
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

add tests for SMV LTLSPEC #732

Merged
merged 1 commit into from
Sep 25, 2024
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
13 changes: 13 additions & 0 deletions regression/ebmc/smv/smv_ltlspec_F3.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CORE broken-smt-backend
smv_ltlspec_F3.smv
--bound 10 --numbered-trace
^\[.*\] F x = 0: REFUTED$
^Counterexample with 4 states:$
^x@0 = 1$
^x@1 = 2$
^x@2 = 3$
^x@3 = 3$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
15 changes: 15 additions & 0 deletions regression/ebmc/smv/smv_ltlspec_F3.smv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
MODULE main

VAR x : 0..3;

ASSIGN
init(x) := 1;

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

-- trace should be 1, 2, 3, 3, ...
LTLSPEC F x = 0
12 changes: 12 additions & 0 deletions regression/ebmc/smv/smv_ltlspec_G3.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CORE broken-smt-backend
smv_ltlspec_G3.smv
--bound 10 --numbered-trace
^\[.*\] G X x != 3: REFUTED$
^Counterexample with 3 states:$
^x@0 = 1$
^x@1 = 2$
^x@2 = 3$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
15 changes: 15 additions & 0 deletions regression/ebmc/smv/smv_ltlspec_G3.smv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
MODULE main

VAR x : 0..3;

ASSIGN
init(x) := 1;

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

-- trace should be 1, 2, 3
LTLSPEC G X x!=3
14 changes: 14 additions & 0 deletions regression/ebmc/smv/smv_ltlspec_R2.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
KNOWNBUG broken-smt-backend
smv_ltlspec_R2.smv
--bound 10
^\[.*\] FALSE R x != 3: REFUTED$
^Counterexample with 4 states:$
^x@0 = 1$
^x@1 = 2$
^x@2 = 3$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
--
The trace has too many states.
15 changes: 15 additions & 0 deletions regression/ebmc/smv/smv_ltlspec_R2.smv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
MODULE main

VAR x : 0..3;

ASSIGN
init(x) := 1;

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

-- trace should be 1, 2, 3
LTLSPEC FALSE R x != 3
10 changes: 10 additions & 0 deletions regression/ebmc/smv/smv_ltlspec_R3.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
KNOWNBUG broken-smt-backend
smv_ltlspec_R3.smv
--bound 1
^\[.*\] FALSE R x != 3: PROVED up to bound 1$
^EXIT=0$
^SIGNAL=0$
--
^warning: ignoring
--
The counterexample is wrong.
16 changes: 16 additions & 0 deletions regression/ebmc/smv/smv_ltlspec_R3.smv
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
MODULE main

VAR x : 0..3;

ASSIGN
init(x) := 1;

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

-- trace should be 1, 2, 3
-- hence no trace with k=1
LTLSPEC FALSE R x != 3
10 changes: 10 additions & 0 deletions regression/ebmc/smv/smv_ltlspec_R4.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
KNOWNBUG broken-smt-backend
smv_ltlspec_R4.smv
--bound 10
^\[.*\] FALSE R x != 0: PROVED up to bound 10$
^EXIT=0$
^SIGNAL=0$
--
^warning: ignoring
--
Property fails.
15 changes: 15 additions & 0 deletions regression/ebmc/smv/smv_ltlspec_R4.smv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
MODULE main

VAR x : 0..3;

ASSIGN
init(x) := 1;

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

-- should pass
LTLSPEC FALSE R x != 0
15 changes: 15 additions & 0 deletions regression/ebmc/smv/smv_ltlspec_U2.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
KNOWNBUG broken-smt-backend
smv_ltlspec_U2.smv
--bound 10
^\[.*\] TRUE U x = 0: REFUTED$
^Counterexample with 4 states:$
^x@0 = 1$
^x@1 = 2$
^x@2 = 3$
^x@3 = 3$
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
--
The property is proven, but should be refuted.
15 changes: 15 additions & 0 deletions regression/ebmc/smv/smv_ltlspec_U2.smv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
MODULE main

VAR x : 0..3;

ASSIGN
init(x) := 1;

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

-- trace should be 1, 2, 3, 3, ...
LTLSPEC TRUE U x = 0