From e4b20015a4ee35f1279af4caa983478fa2ff0d4a Mon Sep 17 00:00:00 2001 From: dhuth Date: Mon, 6 Oct 2014 11:56:47 -0600 Subject: Added omega to source --- omega/examples/old_test/reach3 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 omega/examples/old_test/reach3 (limited to 'omega/examples/old_test/reach3') diff --git a/omega/examples/old_test/reach3 b/omega/examples/old_test/reach3 new file mode 100644 index 0000000..39c954d --- /dev/null +++ b/omega/examples/old_test/reach3 @@ -0,0 +1,18 @@ + +a2b:={[1]->[2]}; +a2a:={[i]->[i]}; +b2b2:={[i]->[i+1]}; +b2c3:={[i]->[i]}; +c2c:={[i]->[i]}; + +reachable of a in (a,b,c) { + a->b:a2b, b->c:b2c3, a->a:a2a, b->b:b2b2, c->c:c2c, + a:{[1]} + }; +reachable of b in (a,b,c) { + a->b:a2b, b->c:b2c3, a->a:a2a, a:{[1]}, b->b:b2b2, c->c:c2c + }; +cr := reachable of c in (a,b,c) { + a:{[1]},a->b:a2b, b->c:b2c3, a->a:a2a, + b->b:b2b2, c->c:c2c }; +cr; -- cgit v1.2.3-70-g09d2