summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/regress/CMakeLists.txt1
-rw-r--r--test/regress/regress2/sygus/min_IC_1.sy25
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)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback