| 1 |
; EXPECT: feasible |
| 2 |
; COMMAND-LINE: --lang=sygus2 --sygus-si=all --sygus-out=status |
| 3 |
(set-logic LIA) |
| 4 |
|
| 5 |
;; f1 is x plus 2 ;; f2 is 2x plus 5 |
| 6 |
|
| 7 |
(define-fun let0 ((x Int) (y Int) (z Int)) Int (+ (+ y x) z)) |
| 8 |
|
| 9 |
(synth-fun f1 ((x Int)) Int |
| 10 |
((Start Int) (Intx Int) (CInt Int)) |
| 11 |
( |
| 12 |
(Start Int ( |
| 13 |
(let0 Intx CInt CInt) |
| 14 |
) |
| 15 |
) |
| 16 |
(Intx Int (x)) |
| 17 |
(CInt Int (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15)) |
| 18 |
) |
| 19 |
) |
| 20 |
|
| 21 |
(synth-fun f2 ((x Int)) Int |
| 22 |
((Start Int) (Intx Int) (CInt Int)) |
| 23 |
( |
| 24 |
(Start Int (x |
| 25 |
(let0 Intx Start CInt) |
| 26 |
) |
| 27 |
) |
| 28 |
(Intx Int (x)) |
| 29 |
(CInt Int (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15)) |
| 30 |
) |
| 31 |
) |
| 32 |
|
| 33 |
|
| 34 |
(declare-var x Int) |
| 35 |
|
| 36 |
(constraint (= (+ (f1 x) (f2 x)) (+ (+ x x) (+ x 8)))) |
| 37 |
(constraint (= (- (f2 x) (f1 x)) (+ x 2))) |
| 38 |
|
| 39 |
(check-synth) |