view Samples/p99.pml @ 2:a2dac3fa7383 draft default tip

add Makefile
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Fri, 29 Jun 2012 06:22:47 +0900
parents 86e67be8bc5f
children
line wrap: on
line source

proctype A(chan q1)
{	chan q2;

	q1?q2;
	q2!123
}

proctype B(chan qforb)
{	int x;

	qforb?x;
	printf("x = %d\n", x)
}

init
{	chan qname[2] = [1] of { chan };
	chan qforb = [1] of { int };

	run A(qname[0]);
	run B(qforb);

	qname[0]!qforb
}