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

BIN
korg-examples/pan Executable file

Binary file not shown.

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) }

View File

@@ -0,0 +1,29 @@
-2:2:-2
-4:-4:-4
1:0:18
2:2:0
3:0:18
4:1:0
5:0:18
6:2:1
7:0:18
8:4:8
9:0:18
10:4:9
11:0:18
12:2:2
13:0:18
14:1:1
15:0:18
16:2:0
17:0:18
18:4:8
19:0:18
20:4:9
21:0:18
22:2:1
23:0:18
24:4:8
25:0:18
26:4:9
27:0:15