File: loops.pml

package info (click to toggle)
spin 6.4.5%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,636 kB
  • ctags: 2,878
  • sloc: ansic: 40,035; yacc: 996; makefile: 37; sh: 5
file content (12 lines) | stat: -rw-r--r-- 135 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
active proctype loop()
{	byte a, b;

	do
	:: a = (a+1)%3;
		if
		:: b = 2*a; skip
		:: b = 2*a; accept: skip
		fi;
progress:	b--
	od
}