summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/commutative.sy
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress/regress1/sygus/commutative.sy')
-rw-r--r--test/regress/regress1/sygus/commutative.sy22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/regress/regress1/sygus/commutative.sy b/test/regress/regress1/sygus/commutative.sy
new file mode 100644
index 000000000..24201b453
--- /dev/null
+++ b/test/regress/regress1/sygus/commutative.sy
@@ -0,0 +1,22 @@
+; EXPECT: unsat
+; COMMAND-LINE: --sygus-out=status
+
+(set-logic LIA)
+
+(synth-fun comm ((x Int) (y Int)) Int
+ ((Start Int (x
+ y
+ (+ Start Start)
+ (- Start Start)
+ ))
+ ))
+
+(declare-var x Int)
+(declare-var y Int)
+
+(constraint (= (comm x y) (comm y x)))
+
+
+(check-synth)
+
+; (+ x y) is a valid solution
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback