comparison Samples/p97.2.pml @ 0:86e67be8bc5f draft

add some files
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Fri, 29 Jun 2012 01:14:43 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:86e67be8bc5f
1 proctype nr(short id, a, b)
2 { int res;
3
4 atomic { res = (a*a+b)/2*a;
5 printf("result %d: %d\n", id, res)
6 }
7 }
8 init { run nr(1,1,1); run nr(1,2,2); run nr(1,3,2) }