summaryrefslogtreecommitdiff
path: root/omegalib/examples/old_test/fc2
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-17 03:22:53 +0000
committerTuowen Zhao <ztuowen@gmail.com>2016-09-17 03:22:53 +0000
commit75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5 (patch)
tree498ac06b4cf78568b807fafd2619856afff69c28 /omegalib/examples/old_test/fc2
parent29efa7b1a0d089e02a70f73f348f11878955287c (diff)
downloadchill-75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5.tar.gz
chill-75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5.tar.bz2
chill-75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5.zip
cmake build
Diffstat (limited to 'omegalib/examples/old_test/fc2')
-rw-r--r--omegalib/examples/old_test/fc229
1 files changed, 29 insertions, 0 deletions
diff --git a/omegalib/examples/old_test/fc2 b/omegalib/examples/old_test/fc2
new file mode 100644
index 0000000..b195d72
--- /dev/null
+++ b/omegalib/examples/old_test/fc2
@@ -0,0 +1,29 @@
+symbolic n;
+
+I1 := {[i,j] : 1 <= i < j <= n};
+I2 := {[i,j,k] : 1 <= i < j,k <= n};
+I3 := {[i] : 1 <= i <= n};
+I4 := {[i,j] : 1 <= j < i <= n};
+I5 := {[i] : 1 <= i <= n};
+
+T1 := {[i,j] -> [i-1,0,n-i,n-j]};
+T2 := {[i,j,k] -> [i-1,1,n-i,n-j]};
+T3 := {[i] -> [0,0,0,i]};
+T4 := {[i,j] -> [j+n-1,0,i,j]};
+T5 := {[i] -> [i+n-2,1,0,0]};
+
+first := {[i,*,*,*] -> [i]};
+
+first(T1(I1));
+first(T2(I2));
+first(T3(I3));
+first(T4(I4));
+first(T5(I5));
+T1(I1);
+T2(I2);
+T3(I3);
+T4(I4);
+T5(I5);
+codegen T1:I1,T2:I2;
+codegen T1:I1,T2:I2,T3:I3,T4:I4,T5:I5;
+