summaryrefslogtreecommitdiff
path: root/omegalib/examples/old_test/affineClosure.oc-rt
diff options
context:
space:
mode:
Diffstat (limited to 'omegalib/examples/old_test/affineClosure.oc-rt')
-rw-r--r--omegalib/examples/old_test/affineClosure.oc-rt32
1 files changed, 32 insertions, 0 deletions
diff --git a/omegalib/examples/old_test/affineClosure.oc-rt b/omegalib/examples/old_test/affineClosure.oc-rt
new file mode 100644
index 0000000..fbf8bf9
--- /dev/null
+++ b/omegalib/examples/old_test/affineClosure.oc-rt
@@ -0,0 +1,32 @@
+# Omega Calculator v1.2 (based on Omega Library 1.2, August, 2000):
+#
+# symbolic n;
+#
+# symbolic c;
+#
+#
+# R := {[i,j] : 1 <= i <= 10 && 1 <= j <= n};
+#
+# R;
+
+{[i,j]: 1 <= i <= 10 && 1 <= j <= n}
+
+#
+# ac := approximate {[i,j] : exists (lambda0, lambda1,lambda2,lambda3,lambda4 :
+# 0 <= lambda0, lambda1,lambda2,lambda3,lambda4
+# && c = lambda0-lambda1+ 10 lambda2 - lambda3
+# && i = lambda1-lambda2
+# && j = lambda3-lambda4
+# && n = lambda4)};
+#
+# ac;
+
+{[i,j]: 0 <= n && 0 <= n+c+i+j && 0 <= n+c+10i+j && 0 <= n+j}
+
+#
+#
+# #ac intersection {[i,j] : i = 1 && c = -1} ;
+# #ac intersection {[i,j] : i = -1 && c = 10} ;
+# #ac intersection {[i,j] : j = 1 && c = -1 } ;
+# #ac intersection {[i,j] : j = -1 && n = 1} ;
+#