summaryrefslogtreecommitdiff
path: root/test/regress/regress2/sygus/nia-max-square.sy
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress/regress2/sygus/nia-max-square.sy')
-rw-r--r--test/regress/regress2/sygus/nia-max-square.sy21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/regress/regress2/sygus/nia-max-square.sy b/test/regress/regress2/sygus/nia-max-square.sy
new file mode 100644
index 000000000..e023e837b
--- /dev/null
+++ b/test/regress/regress2/sygus/nia-max-square.sy
@@ -0,0 +1,21 @@
+; EXPECT: unsat
+; COMMAND-LINE: --sygus-out=status --nl-ext-tplanes
+(set-logic NIA)
+
+(synth-fun max ((x Int) (y Int)) Int
+ ((Start Int (0 1 x y
+ (+ Start Start)
+ (- Start Start)
+ (* Start Start)
+ (ite StartBool Start Start)))
+ (StartBool Bool ((and StartBool StartBool)
+ (not StartBool)
+ (<= Start Start)))))
+
+(declare-var x Int)
+(declare-var y Int)
+
+(constraint (>= (max x y) (* x x)))
+(constraint (>= (max x y) (* y y)))
+
+(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback