test/regress/cli/regress1/sygus/array-uc.sy
raw| 1 | ; COMMAND-LINE: --sygus-out=status --arrays-exp |
| 2 | ; EXPECT: feasible |
| 3 | (set-logic ALL) |
| 4 | (declare-sort U 0) |
| 5 | (synth-fun f ((x (Array U Int)) (y U)) Bool) |
| 6 | |
| 7 | (declare-var x (Array U Int)) |
| 8 | (declare-var y U) |
| 9 | |
| 10 | (constraint (= (f (store x y 0) y) true)) |
| 11 | (constraint (= (f (store x y 1) y) false)) |
| 12 | |
| 13 | ; f can be (= (select x y) 0) |
| 14 | (check-synth) |