summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/coeff-solve-inv.sy
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress/regress1/sygus/coeff-solve-inv.sy')
-rw-r--r--test/regress/regress1/sygus/coeff-solve-inv.sy29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/regress/regress1/sygus/coeff-solve-inv.sy b/test/regress/regress1/sygus/coeff-solve-inv.sy
new file mode 100644
index 000000000..edfcd6089
--- /dev/null
+++ b/test/regress/regress1/sygus/coeff-solve-inv.sy
@@ -0,0 +1,29 @@
+; EXPECT: unsat
+; COMMAND-LINE: --sygus-out=status --sygus-repair-const --lang=sygus2
+(set-logic LIA)
+
+(synth-inv inv-f ((x Int) (y Int)) )
+
+
+(define-fun pre-f ((x Int) (y Int)) Bool
+ (and
+ (= x 0)
+ (= y 100)
+ )
+)
+
+(define-fun trans-f ((x Int) (y Int) (x! Int) (y! Int)) Bool
+ (and
+ (< x 100)
+ (= x! (+ x 1))
+ (= y! (+ y 1))
+ )
+)
+
+(define-fun post-f ((x Int) (y Int)) Bool
+ (=> (>= x 100) (>= y 200))
+)
+
+(inv-constraint inv-f pre-f trans-f post-f)
+
+(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback