| 1 |
; EXPECT: feasible |
| 2 |
; COMMAND-LINE: --lang=sygus2 --sygus-out=status |
| 3 |
|
| 4 |
(set-logic LIA) |
| 5 |
(synth-fun inv ((x Int)) Bool |
| 6 |
((Start Bool) (AtomicFormula Bool) (Sum Int) (Term Int) (Sign Int) (Var Int) (Const Int)) |
| 7 |
( |
| 8 |
(Start Bool ((and AtomicFormula AtomicFormula) |
| 9 |
(or AtomicFormula AtomicFormula))) |
| 10 |
(AtomicFormula Bool ((<= Sum Const) (= Sum Const))) |
| 11 |
(Sum Int ((+ Term Term))) |
| 12 |
(Term Int ((* Sign Var))) |
| 13 |
(Sign Int (0 1 (- 1))) |
| 14 |
(Var Int (x)) |
| 15 |
(Const Int ((+ Const Const) (- Const Const) 0 1)) |
| 16 |
) |
| 17 |
) |
| 18 |
|
| 19 |
(define-fun implies ((b1 Bool) (b2 Bool)) Bool (or (not b1) b2)) |
| 20 |
(define-fun and3 ((b1 Bool) (b2 Bool) (b3 Bool)) Bool (and (and b1 b2) b3)) |
| 21 |
(define-fun and4 ((b1 Bool) (b2 Bool) (b3 Bool) (b4 Bool)) Bool (and (and3 b1 b2 b3) b4)) |
| 22 |
(define-fun and5 ((b1 Bool) (b2 Bool) (b3 Bool) (b4 Bool) (b5 Bool)) Bool (and (and4 b1 b2 b3 b4) b5)) |
| 23 |
(define-fun and6 ((b1 Bool) (b2 Bool) (b3 Bool) (b4 Bool) (b5 Bool) (b6 Bool)) Bool (and (and5 b1 b2 b3 b4 b5) b6)) |
| 24 |
(define-fun or3 ((b1 Bool) (b2 Bool) (b3 Bool)) Bool (or (or b1 b2) b3)) |
| 25 |
(define-fun or4 ((b1 Bool) (b2 Bool) (b3 Bool) (b4 Bool)) Bool (or (or3 b1 b2 b3) b4)) |
| 26 |
(define-fun or5 ((b1 Bool) (b2 Bool) (b3 Bool) (b4 Bool) (b5 Bool)) Bool (or (or4 b1 b2 b3 b4) b5)) |
| 27 |
|
| 28 |
(declare-var s Int) |
| 29 |
|
| 30 |
(declare-var x Int) |
| 31 |
|
| 32 |
(constraint (implies (= x 0) (inv x))) |
| 33 |
(constraint (implies (inv x) (= x 0))) |
| 34 |
(constraint (implies (inv x) (inv x))) |
| 35 |
(constraint (implies (and (inv x) false) (not (= x 0)))) |
| 36 |
|
| 37 |
(check-synth) |