diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-05-14 11:33:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 11:33:14 -0500 |
commit | c308c094548bcd9bee59e33334d147a9afe97018 (patch) | |
tree | 0191612aa290c1f3bcf915f140e0494cbb12d1e9 /test/regress/regress2 | |
parent | 33420e77e9f7ee7a429708db3a7f6c28aef7d0ec (diff) |
Add regressions, change defaults. (#1911)
Diffstat (limited to 'test/regress/regress2')
-rw-r--r-- | test/regress/regress2/sygus/ex23.sy | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/regress/regress2/sygus/ex23.sy b/test/regress/regress2/sygus/ex23.sy new file mode 100644 index 000000000..61b08a838 --- /dev/null +++ b/test/regress/regress2/sygus/ex23.sy @@ -0,0 +1,23 @@ +; EXPECT: unsat +; COMMAND-LINE: --sygus-out=status +(set-logic LIA) + +(synth-inv inv-f ((y Int) (z Int) (c Int))) + +(declare-primed-var y Int) +(declare-primed-var z Int) +(declare-primed-var c Int) + +(define-fun pre-f ((y Int) (z Int) (c Int)) Bool +(and (and (= c 0) (>= y 0)) (and (>= 127 y) (= z (* 36 y))))) + + +(define-fun trans-f ((y Int) (z Int) (c Int) (y! Int) (z! Int) (c! Int)) Bool +(and (and (and (< c 36) (= z! (+ z 1))) (= c! (+ c 1))) (= y! y))) + +(define-fun post-f ((y Int) (z Int) (c Int)) Bool +(not (and (< c 36) (or (< z 0) (>= z 4608))))) + +(inv-constraint inv-f pre-f trans-f post-f) + +(check-synth) |