Add missing regression.
authorajreynol <andrew.j.reynolds@gmail.com>
Mon, 11 May 2015 09:53:07 +0000 (11:53 +0200)
committerajreynol <andrew.j.reynolds@gmail.com>
Mon, 11 May 2015 09:53:07 +0000 (11:53 +0200)
test/regress/regress0/sygus/const-var-test.sy [new file with mode: 0644]

diff --git a/test/regress/regress0/sygus/const-var-test.sy b/test/regress/regress0/sygus/const-var-test.sy
new file mode 100644 (file)
index 0000000..0d753bd
--- /dev/null
@@ -0,0 +1,26 @@
+; EXPECT: unsat
+; COMMAND-LINE: --cegqi-si
+
+(set-logic LIA)
+
+(synth-fun max2 ((x Int) (y Int)) Int
+    ((Start Int ((Variable Int)
+                 (Constant Int)
+                 (+ Start Start)
+                 (- Start Start)
+                 (ite StartBool Start Start)))
+     (StartBool Bool ((and StartBool StartBool)
+                      (or  StartBool StartBool)
+                      (not StartBool)
+                      (<=  Start Start)
+                      (=   Start Start)
+                      (>=  Start Start)))))
+
+(declare-var x Int)
+(declare-var y Int)
+
+(constraint (= (max2 x y) (+ x y 500)))
+
+
+(check-synth)
+