Skip to content

Commit 24176e6

Browse files
committed
SMV: KNOWNBUG test for bare section headers
Bare TRANS/INIT/INVAR/FAIRNESS/SPEC/CTLSPEC/LTLSPEC headers are accepted as empty sections (parser.y:447). Truncated or malformed SMV input can silently weaken the model instead of failing with a parse error.
1 parent d05d74c commit 24176e6

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
bare_section_headers1.smv
3+
--bound 1
4+
^EXIT=1$
5+
^SIGNAL=0$
6+
--
7+
Bare TRANS/INIT/INVAR/FAIRNESS/SPEC/CTLSPEC/LTLSPEC headers are accepted
8+
as empty sections (parser.y:447). Truncated or malformed SMV input can
9+
silently weaken the model instead of failing with a parse error.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-- Bare section headers with no formula should be rejected.
2+
-- Truncated or malformed input can silently weaken the model.
3+
4+
MODULE main
5+
6+
VAR x : boolean;
7+
8+
TRANS
9+
INIT
10+
INVAR
11+
FAIRNESS
12+
SPEC
13+
CTLSPEC
14+
LTLSPEC

0 commit comments

Comments
 (0)