| 1 |
; COMMAND-LINE: --sygus-si=all --dag-thresh=0 |
| 2 |
; EXPECT: ( |
| 3 |
; EXPECT: (define-fun f1 ((x Bool) (y Bool)) Bool (ite true true false)) |
| 4 |
; EXPECT: (define-fun f2 ((x Bool) (y Bool)) Bool (ite false false (not (ite x y (not false))))) |
| 5 |
; EXPECT: ) |
| 6 |
|
| 7 |
; Test ensures that the solution does not contain a random variable |
| 8 |
|
| 9 |
(set-logic UF) |
| 10 |
|
| 11 |
(synth-fun f1 ((x Bool) (y Bool)) Bool |
| 12 |
((Start Bool)) |
| 13 |
((Start Bool (false (ite true true Start))))) |
| 14 |
|
| 15 |
(synth-fun f2 ((x Bool) (y Bool)) Bool |
| 16 |
((Start Bool)) |
| 17 |
((Start Bool (false x y (ite Start Start (not Start)))))) |
| 18 |
|
| 19 |
(declare-var x Bool) |
| 20 |
(declare-var y Bool) |
| 21 |
|
| 22 |
(constraint (= (f1 x y) true)) |
| 23 |
(constraint (= (f2 x y) (not (ite x y true)))) |
| 24 |
|
| 25 |
(check-synth) |