This commit is contained in:
JakeGinesin
2024-11-29 11:45:22 -05:00
parent 3434cb3a97
commit bf283fa9f4
4 changed files with 41 additions and 0 deletions

12
korg-examples/test.pml Normal file
View File

@@ -0,0 +1,12 @@
chan msgs = [4] of { bit };
int count = 0;
active [1] proctype Producer() { // one producer
do :: atomic { count++; msgs ! 1; } od
}
active [4] proctype Consumer() { // four consumers
do :: atomic { msgs ? 1 -> count--; } od
}
ltl always_positive { always (count >= 0) }