File: sat.pml

package info (click to toggle)
spin 6.4.9%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,136 kB
  • sloc: ansic: 39,791; yacc: 1,015; makefile: 40; sh: 8
file content (11 lines) | stat: -rw-r--r-- 187 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
active proctype P() {
	bool a, b, c

	select(a: 0..1)
	select(b: 0..1)
	select(c: 0..1)

	assert(!((a ||  c) && (!a || !c) &&
		 (a || !b) && (!a ||  b) &&
		 (b || !c) && (!b || !c)))
}