summaryrefslogtreecommitdiff
path: root/omega/examples/old_test/lift1.oc-rt
diff options
context:
space:
mode:
authorDerick Huth <derickhuth@gmail.com>2014-10-06 12:42:34 -0600
committerDerick Huth <derickhuth@gmail.com>2014-10-06 12:42:34 -0600
commit8d73c8fcc75556c1df71dd39dd99783f8f86fc3e (patch)
tree157d627863d76a4c256a27cae27ce2e8566c7ea0 /omega/examples/old_test/lift1.oc-rt
parente87b55ad69f0ac6211daae741b32c8ee9dcbe470 (diff)
parent8c646f24570079eac53e58fcf42d0d4fbc437ee3 (diff)
downloadchill-8d73c8fcc75556c1df71dd39dd99783f8f86fc3e.tar.gz
chill-8d73c8fcc75556c1df71dd39dd99783f8f86fc3e.tar.bz2
chill-8d73c8fcc75556c1df71dd39dd99783f8f86fc3e.zip
Merge pull request #2 from dhuth/master
Moved omega into chill.
Diffstat (limited to 'omega/examples/old_test/lift1.oc-rt')
-rw-r--r--omega/examples/old_test/lift1.oc-rt147
1 files changed, 147 insertions, 0 deletions
diff --git a/omega/examples/old_test/lift1.oc-rt b/omega/examples/old_test/lift1.oc-rt
new file mode 100644
index 0000000..683ac07
--- /dev/null
+++ b/omega/examples/old_test/lift1.oc-rt
@@ -0,0 +1,147 @@
+>>> I1 := { [i,j,k,l,m] : 1 <= i <= 60 && 1 <= j,k,l,m <= 100 };
+>>> I2 := { [i,j,k,l,m] : 1 <= i,j,k,l,m <= 100 };
+>>>
+>>> codegen 0 I1,I2;
+for(t1 = 1; t1 <= 100; t1++) {
+ for(t2 = 1; t2 <= 100; t2++) {
+ for(t3 = 1; t3 <= 100; t3++) {
+ for(t4 = 1; t4 <= 100; t4++) {
+ for(t5 = 1; t5 <= 100; t5++) {
+ s2(t1,t2,t3,t4,t5);
+ if (t1 <= 60) {
+ s1(t1,t2,t3,t4,t5);
+ }
+ }
+ }
+ }
+ }
+}
+
+>>>
+>>> #default
+>>> codegen 1 I1,I2;
+for(t1 = 1; t1 <= 100; t1++) {
+ for(t2 = 1; t2 <= 100; t2++) {
+ for(t3 = 1; t3 <= 100; t3++) {
+ for(t4 = 1; t4 <= 100; t4++) {
+ if (t1 <= 60) {
+ for(t5 = 1; t5 <= 100; t5++) {
+ s1(t1,t2,t3,t4,t5);
+ s2(t1,t2,t3,t4,t5);
+ }
+ }
+ if (t1 >= 61) {
+ for(t5 = 1; t5 <= 100; t5++) {
+ s2(t1,t2,t3,t4,t5);
+ }
+ }
+ }
+ }
+ }
+}
+
+>>>
+>>> codegen 2 I1,I2;
+for(t1 = 1; t1 <= 100; t1++) {
+ for(t2 = 1; t2 <= 100; t2++) {
+ for(t3 = 1; t3 <= 100; t3++) {
+ if (t1 <= 60) {
+ for(t4 = 1; t4 <= 100; t4++) {
+ for(t5 = 1; t5 <= 100; t5++) {
+ s1(t1,t2,t3,t4,t5);
+ s2(t1,t2,t3,t4,t5);
+ }
+ }
+ }
+ if (t1 >= 61) {
+ for(t4 = 1; t4 <= 100; t4++) {
+ for(t5 = 1; t5 <= 100; t5++) {
+ s2(t1,t2,t3,t4,t5);
+ }
+ }
+ }
+ }
+ }
+}
+
+>>>
+>>> codegen 3 I1,I2;
+for(t1 = 1; t1 <= 100; t1++) {
+ for(t2 = 1; t2 <= 100; t2++) {
+ if (t1 <= 60) {
+ for(t3 = 1; t3 <= 100; t3++) {
+ for(t4 = 1; t4 <= 100; t4++) {
+ for(t5 = 1; t5 <= 100; t5++) {
+ s1(t1,t2,t3,t4,t5);
+ s2(t1,t2,t3,t4,t5);
+ }
+ }
+ }
+ }
+ if (t1 >= 61) {
+ for(t3 = 1; t3 <= 100; t3++) {
+ for(t4 = 1; t4 <= 100; t4++) {
+ for(t5 = 1; t5 <= 100; t5++) {
+ s2(t1,t2,t3,t4,t5);
+ }
+ }
+ }
+ }
+ }
+}
+
+>>>
+>>> codegen 4 I1,I2;
+for(t1 = 1; t1 <= 100; t1++) {
+ if (t1 <= 60) {
+ for(t2 = 1; t2 <= 100; t2++) {
+ for(t3 = 1; t3 <= 100; t3++) {
+ for(t4 = 1; t4 <= 100; t4++) {
+ for(t5 = 1; t5 <= 100; t5++) {
+ s1(t1,t2,t3,t4,t5);
+ s2(t1,t2,t3,t4,t5);
+ }
+ }
+ }
+ }
+ }
+ if (t1 >= 61) {
+ for(t2 = 1; t2 <= 100; t2++) {
+ for(t3 = 1; t3 <= 100; t3++) {
+ for(t4 = 1; t4 <= 100; t4++) {
+ for(t5 = 1; t5 <= 100; t5++) {
+ s2(t1,t2,t3,t4,t5);
+ }
+ }
+ }
+ }
+ }
+}
+
+>>>
+>>> codegen 5 I1,I2;
+for(t1 = 1; t1 <= 60; t1++) {
+ for(t2 = 1; t2 <= 100; t2++) {
+ for(t3 = 1; t3 <= 100; t3++) {
+ for(t4 = 1; t4 <= 100; t4++) {
+ for(t5 = 1; t5 <= 100; t5++) {
+ s1(t1,t2,t3,t4,t5);
+ s2(t1,t2,t3,t4,t5);
+ }
+ }
+ }
+ }
+}
+for(t1 = 61; t1 <= 100; t1++) {
+ for(t2 = 1; t2 <= 100; t2++) {
+ for(t3 = 1; t3 <= 100; t3++) {
+ for(t4 = 1; t4 <= 100; t4++) {
+ for(t5 = 1; t5 <= 100; t5++) {
+ s2(t1,t2,t3,t4,t5);
+ }
+ }
+ }
+ }
+}
+
+