improve replay attacker, add deadlock tests

This commit is contained in:
2025-11-05 15:24:56 -05:00
parent 3bb51d1263
commit a6ba78790e
8 changed files with 622 additions and 130 deletions

35
tests/replay/weave.pml Normal file
View File

@@ -0,0 +1,35 @@
// 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 ->
c!3;
goto PROC2;
od
PROC2:
do
:: c ? 3 -> goto PROC3;
od
PROC3:
do
:: c ? 3 -> goto PROC4;
od
PROC4:
q=0;
}
ltl proc {
always !(q == 0);
}