init - first working version
This commit is contained in:
30
tests/reorder/t1-reorder.pml
Normal file
30
tests/reorder/t1-reorder.pml
Normal file
@@ -0,0 +1,30 @@
|
||||
// intended behavior: no violation
|
||||
// explanation: the rearrange attacker gadget shouldn't be able to violate the claim, as
|
||||
// it doesn't have enough mem
|
||||
chan c = [8] of { byte };
|
||||
byte q=0;
|
||||
|
||||
init {
|
||||
c!3;
|
||||
c!5;
|
||||
}
|
||||
|
||||
active proctype consume() {
|
||||
MAIN:
|
||||
do
|
||||
:: c ? 5 ->
|
||||
q = q+1;
|
||||
goto B1;
|
||||
od
|
||||
B1:
|
||||
do
|
||||
:: c ? 3 ->
|
||||
q = q + 1;
|
||||
goto END;
|
||||
od
|
||||
END:
|
||||
}
|
||||
|
||||
ltl proc {
|
||||
always !(q==2);
|
||||
}
|
||||
Reference in New Issue
Block a user