test/regress/cli/regress1/sygus/max2-bv.sy
raw| 1 | ; EXPECT: feasible |
| 2 | ; COMMAND-LINE: --lang=sygus2 --sygus-out=status --cegqi-bv |
| 3 | (set-logic BV) |
| 4 | |
| 5 | (synth-fun max2 ((x (_ BitVec 32)) (y (_ BitVec 32))) (_ BitVec 32)) |
| 6 | |
| 7 | (declare-var x (_ BitVec 32)) |
| 8 | |
| 9 | (declare-var y (_ BitVec 32)) |
| 10 | |
| 11 | (constraint (bvuge (max2 x y) x)) |
| 12 | |
| 13 | (constraint (bvuge (max2 x y) y)) |
| 14 | |
| 15 | (constraint (or (= x (max2 x y)) (= y (max2 x y)))) |
| 16 | |
| 17 | (check-synth) |