| 1 |
; EXPECT: feasible |
| 2 |
; COMMAND-LINE: --lang=sygus2 --sygus-out=status |
| 3 |
(set-logic BV) |
| 4 |
|
| 5 |
(define-sort Stream () (_ BitVec 2)) |
| 6 |
|
| 7 |
(define-fun BV_ONE () Stream (_ bv1 2)) |
| 8 |
|
| 9 |
(define-fun |
| 10 |
O ( (X Stream) ) Stream |
| 11 |
(bvneg (bvand X (bvnot (bvsub X BV_ONE)))) |
| 12 |
) |
| 13 |
|
| 14 |
(synth-fun op ((x Stream)) Stream |
| 15 |
(( y_term Stream)) |
| 16 |
(( y_term Stream ( |
| 17 |
( Constant Stream) |
| 18 |
( Variable Stream) |
| 19 |
( bvnot y_term ) |
| 20 |
( bvand y_term y_term ) |
| 21 |
( bvor y_term y_term ) |
| 22 |
( bvneg y_term ) |
| 23 |
( bvadd y_term y_term ) |
| 24 |
( bvsub y_term y_term ) |
| 25 |
( bvmul y_term y_term ) |
| 26 |
( bvudiv y_term y_term ) |
| 27 |
( bvurem y_term y_term ) |
| 28 |
( bvshl y_term y_term ) |
| 29 |
( bvlshr y_term y_term ) |
| 30 |
)) |
| 31 |
)) |
| 32 |
|
| 33 |
(define-fun C ((x Stream)) Bool |
| 34 |
(= (op x) (O x)) |
| 35 |
) |
| 36 |
|
| 37 |
(constraint (and |
| 38 |
(C (_ bv0 2)) |
| 39 |
(C (_ bv1 2)) |
| 40 |
(C (_ bv2 2)) |
| 41 |
(C (_ bv3 2)) |
| 42 |
)) |
| 43 |
|
| 44 |
(check-synth) |