summaryrefslogtreecommitdiff
path: root/tests/fulladder.mj
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2013-11-05 10:18:00 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2013-11-05 10:18:00 +0100
commit94e88e887cf2ee4c6b445924d26e134a90bcbd50 (patch)
tree14090e40b781d9469c794cb3ed4239115f89edac /tests/fulladder.mj
parent7950298bf80fd1d1f311e7bd4f75b442df7c679c (diff)
downloadSystDigit-Projet-94e88e887cf2ee4c6b445924d26e134a90bcbd50.tar.gz
SystDigit-Projet-94e88e887cf2ee4c6b445924d26e134a90bcbd50.zip
Reorganized folders.
Diffstat (limited to 'tests/fulladder.mj')
-rw-r--r--tests/fulladder.mj4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/fulladder.mj b/tests/fulladder.mj
new file mode 100644
index 0000000..c4b6b0e
--- /dev/null
+++ b/tests/fulladder.mj
@@ -0,0 +1,4 @@
+main(a,b,c) = (s, r) where
+ s = (a xor b) xor c;
+ r = (a and b) or ((a xor b) and c);
+end where \ No newline at end of file