--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Samples/p97.2.pml Fri Jun 29 01:14:43 2012 +0900 @@ -0,0 +1,8 @@ +proctype nr(short id, a, b) +{ int res; + +atomic { res = (a*a+b)/2*a; + printf("result %d: %d\n", id, res) + } +} +init { run nr(1,1,1); run nr(1,2,2); run nr(1,3,2) }