diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-01-09 15:39:07 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-09 15:39:07 -0600 |
commit | fb145effd5bfe67090736969478ff54cf7f62984 (patch) | |
tree | 275c110d057f195bb3e264d91a00706d7d575ebe /test | |
parent | 1df477011ed5d35f222340580cba916af3ba73b5 (diff) |
Do not rewrite 1-constructor sygus testers to true (#2780)
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/CMakeLists.txt | 1 | ||||
-rw-r--r-- | test/regress/regress2/sygus/min_IC_1.sy | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt index 0b196855f..e6e28336e 100644 --- a/test/regress/CMakeLists.txt +++ b/test/regress/CMakeLists.txt @@ -1748,6 +1748,7 @@ set(regress_2_tests regress2/sygus/inv_gen_n_c11.sy regress2/sygus/lustre-real.sy regress2/sygus/max2-univ.sy + regress2/sygus/min_IC_1.sy regress2/sygus/mpg_guard1-dd.sy regress2/sygus/multi-udiv.sy regress2/sygus/nia-max-square.sy diff --git a/test/regress/regress2/sygus/min_IC_1.sy b/test/regress/regress2/sygus/min_IC_1.sy new file mode 100644 index 000000000..92e171312 --- /dev/null +++ b/test/regress/regress2/sygus/min_IC_1.sy @@ -0,0 +1,25 @@ +; REQUIRES: symfpu +; EXPECT: unsat +; COMMAND-LINE: --sygus-out=status +(set-logic ALL) +(define-sort FP () (_ FloatingPoint 3 5)) +(define-fun IC ((t FP)) Bool (=> (fp.isInfinite t) (fp.isNegative t))) + +(synth-fun simpIC ((t FP)) Bool + ((Start Bool ( + (and Start Start) + (not Start) + + (fp.isInfinite StartFP) + (fp.isNegative StartFP) + + (ite Start Start Start) + )) + (StartFP FP ( + t + )) +)) + +(declare-var x FP) +(constraint (= (simpIC x) (IC x))) +(check-synth) |