From 290f2a718a8ebe9532239fa53fabc9763564b5dc Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Tue, 21 Aug 2018 12:10:38 -0500 Subject: Use cbqi-full for sygus (#2346) --- test/regress/Makefile.tests | 1 + test/regress/regress1/sygus/max2-bv.sy | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 test/regress/regress1/sygus/max2-bv.sy (limited to 'test') diff --git a/test/regress/Makefile.tests b/test/regress/Makefile.tests index 08f64a925..e773bf698 100644 --- a/test/regress/Makefile.tests +++ b/test/regress/Makefile.tests @@ -1549,6 +1549,7 @@ REG1_TESTS = \ regress1/sygus/list-head-x.sy \ regress1/sygus/logiccell_help.sy \ regress1/sygus/max.sy \ + regress1/sygus/max2-bv.sy \ regress1/sygus/multi-fun-polynomial2.sy \ regress1/sygus/nflat-fwd-3.sy \ regress1/sygus/nflat-fwd.sy \ diff --git a/test/regress/regress1/sygus/max2-bv.sy b/test/regress/regress1/sygus/max2-bv.sy new file mode 100644 index 000000000..297bd9179 --- /dev/null +++ b/test/regress/regress1/sygus/max2-bv.sy @@ -0,0 +1,26 @@ +; EXPECT: unsat +; COMMAND-LINE: --sygus-out=status +(set-logic BV) + +(synth-fun max2 ((x (BitVec 32))(y (BitVec 32))) (BitVec 32) +) + +(declare-var x (BitVec 32)) + +(declare-var y (BitVec 32)) + +(constraint +(bvuge (max2 x y) x) +) + +(constraint +(bvuge (max2 x y) y) +) + +(constraint +(or (= x (max2 x y)) (= y (max2 x y))) +) + +(check-synth) + + -- cgit v1.2.3