File: loops.pml

package info (click to toggle)
spin 6.5.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,512 kB
  • sloc: ansic: 39,876; yacc: 1,021; makefile: 58; sh: 8
file content (12 lines) | stat: -rwxr-xr-x 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
}