| 1 |
; EXPECT: feasible |
| 2 |
; COMMAND-LINE: --lang=sygus2 --sygus-out=status |
| 3 |
|
| 4 |
(set-logic BV) |
| 5 |
|
| 6 |
(define-fun Spec ((k1 Bool) (k2 Bool) (k3 Bool) ) Bool |
| 7 |
(xor k1 (and k3 (not k2))) |
| 8 |
) |
| 9 |
|
| 10 |
(synth-fun Imp ((k1 Bool) (k2 Bool) (k3 Bool)) Bool |
| 11 |
((Start Bool) (d1 Bool) (d2 Bool)) |
| 12 |
((Start Bool ( (and d1 d1) (or d1 d1) (xor d1 d1) (not d1) ) ) |
| 13 |
(d1 Bool ( (and d2 d2) (or d2 d2) (xor d2 d2) (not d2) ) ) |
| 14 |
(d2 Bool ( k1 k2 k3) ) ) |
| 15 |
) |
| 16 |
|
| 17 |
(declare-var k1 Bool) |
| 18 |
(declare-var k2 Bool) |
| 19 |
(declare-var k3 Bool) |
| 20 |
|
| 21 |
(constraint (= (Spec k1 k2 k3) (Imp k1 k2 k3))) |
| 22 |
(check-synth) |