diff Samples/p96.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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Samples/p96.2.pml	Fri Jun 29 01:14:43 2012 +0900
@@ -0,0 +1,22 @@
+#define true	1
+#define false	0
+#define Aturn	1
+#define Bturn	0
+
+bool x, y, t;
+
+proctype A()
+{	x = true;
+	t = Bturn;
+	(y == false || t == Aturn);
+	/* critical section */
+	x = false
+}
+proctype B()
+{	y = true;
+	t = Aturn;
+	(x == false || t == Bturn);
+	/* critical section */
+	y = false
+}
+init { run A(); run B() }