| 1 |
; COMMAND-LINE: --produce-abducts --sygus-stream --sygus-abort-size=3 |
| 2 |
; EXPECT: (error "Maximum term size (3) for enumerative SyGuS exceeded.") |
| 3 |
; SCRUBBER: sed -e 's/.*(>= j (+ 1 1))/SPURIOUS/; s/(define-fun.*//; /^$/d' |
| 4 |
; EXIT: 1 |
| 5 |
|
| 6 |
(set-logic QF_LIA) |
| 7 |
(set-option :produce-abducts true) |
| 8 |
|
| 9 |
(declare-fun n () Int) |
| 10 |
(declare-fun m () Int) |
| 11 |
(declare-fun i () Int) |
| 12 |
(declare-fun j () Int) |
| 13 |
|
| 14 |
(assert (and (>= n 0) (>= m 0))) |
| 15 |
(assert (< n i)) |
| 16 |
(assert (< (+ i j) m)) |
| 17 |
|
| 18 |
; This test ensures that (>= j (+ 1 1)) is not printed as a solution, |
| 19 |
; since it is spurious: (>= j 0) is a stronger solution and will be enumerated |
| 20 |
; first. |
| 21 |
(get-abduct A |
| 22 |
(<= n m) |
| 23 |
((GA Bool) (GI Int)) |
| 24 |
( |
| 25 |
(GA Bool ((>= GI GI))) |
| 26 |
(GI Int ((+ GI GI) (- GI) i j 0 1)) |
| 27 |
) |
| 28 |
) |