diff options
author | ajreynol <andrew.j.reynolds@gmail.com> | 2015-06-11 18:13:37 +0200 |
---|---|---|
committer | ajreynol <andrew.j.reynolds@gmail.com> | 2015-06-11 18:13:37 +0200 |
commit | aaabd78a7573bf03068ca1bf4aa1389627f11326 (patch) | |
tree | d5c31aba04dab2c33dfd04189f184dbbe26b961c /test | |
parent | 711c63d026ce7d98724fe945eaf30077f0dad28d (diff) |
Avoid naming conflicts in sygus, refactor. Add missing regression. Detect Start grammar. Add regression.
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/regress0/sygus/Makefile.am | 3 | ||||
-rw-r--r-- | test/regress/regress0/sygus/dup-op.sy | 11 | ||||
-rw-r--r-- | test/regress/regress0/sygus/nflat-fwd.sy | 11 |
3 files changed, 24 insertions, 1 deletions
diff --git a/test/regress/regress0/sygus/Makefile.am b/test/regress/regress0/sygus/Makefile.am index 50f755fef..dbef0494a 100644 --- a/test/regress/regress0/sygus/Makefile.am +++ b/test/regress/regress0/sygus/Makefile.am @@ -37,7 +37,8 @@ TESTS = commutative.sy \ let-ringer.sy \ let-simp.sy \ tl-type.sy \ - dup-op.sy + dup-op.sy \ + nflat-fwd.sy # sygus tests currently taking too long for make regress EXTRA_DIST = $(TESTS) \ diff --git a/test/regress/regress0/sygus/dup-op.sy b/test/regress/regress0/sygus/dup-op.sy new file mode 100644 index 000000000..dbf415986 --- /dev/null +++ b/test/regress/regress0/sygus/dup-op.sy @@ -0,0 +1,11 @@ +; EXPECT: unsat +; COMMAND-LINE: --cegqi --no-cegqi-si +(set-logic LIA) +(synth-fun f ((x Int)) Int + ((Start Int ((+ Con Con) (+ Start Start) x)) + (Con Int (0 1)))) + +(declare-var x Int) +(constraint (= (f x) (* 2 x))) +(check-synth) + diff --git a/test/regress/regress0/sygus/nflat-fwd.sy b/test/regress/regress0/sygus/nflat-fwd.sy new file mode 100644 index 000000000..0f9d46215 --- /dev/null +++ b/test/regress/regress0/sygus/nflat-fwd.sy @@ -0,0 +1,11 @@ +; EXPECT: unsat +; COMMAND-LINE: --cegqi +(set-logic LIA) +(synth-fun f ((x Int)) Int + ((Start Int ((+ Con Con) (+ (+ Start Start) Con) x)) + (Con Int (0 1)))) + +(declare-var x Int) +(constraint (= (f x) (* 2 x))) +(check-synth) + |