init - first working version
This commit is contained in:
29
tests/replay/3-jump.pml
Normal file
29
tests/replay/3-jump.pml
Normal file
@@ -0,0 +1,29 @@
|
||||
// INTENDED BEHAVIOR: no violation
|
||||
// explanation: can only replay once
|
||||
chan c = [8] of { byte };
|
||||
byte q=1;
|
||||
|
||||
init {
|
||||
c!5;
|
||||
}
|
||||
|
||||
active proctype consume() {
|
||||
MAIN:
|
||||
do
|
||||
:: c ? 5 -> goto PROC1;
|
||||
od
|
||||
PROC1:
|
||||
do
|
||||
:: c ? 5 -> goto PROC2;
|
||||
od
|
||||
PROC2:
|
||||
do
|
||||
:: c ? 5 -> goto PROC3;
|
||||
od
|
||||
PROC3:
|
||||
q=0;
|
||||
}
|
||||
|
||||
ltl proc {
|
||||
always !(q == 0);
|
||||
}
|
||||
Reference in New Issue
Block a user