summaryrefslogtreecommitdiff
path: root/tests/examples/ex67.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ex67.hs')
-rw-r--r--tests/examples/ex67.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/examples/ex67.hs b/tests/examples/ex67.hs
new file mode 100644
index 0000000..ecf451c
--- /dev/null
+++ b/tests/examples/ex67.hs
@@ -0,0 +1,10 @@
+import Yices.Painless.Language
+
+main = print =<< solve p
+
+p :: Exp Int -> Exp Int -> Exp Int -> Exp Bool
+p x y z =
+ (3 * x) + (6 * y) + z ==* 1
+ &&*
+ z ==* 2
+