summaryrefslogtreecommitdiff
path: root/test/regress/regress2
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-01-09 15:39:07 -0600
committerGitHub <noreply@github.com>2019-01-09 15:39:07 -0600
commitfb145effd5bfe67090736969478ff54cf7f62984 (patch)
tree275c110d057f195bb3e264d91a00706d7d575ebe /test/regress/regress2
parent1df477011ed5d35f222340580cba916af3ba73b5 (diff)
Do not rewrite 1-constructor sygus testers to true (#2780)
Diffstat (limited to 'test/regress/regress2')
-rw-r--r--test/regress/regress2/sygus/min_IC_1.sy25
1 files changed, 25 insertions, 0 deletions
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)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback