summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/hd-sdiv.sy
blob: 2fdfb1c438d528892c4a92c473390fd2b7ef4a38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; EXPECT: unsat
; COMMAND-LINE: --lang=sygus2 --sygus-si=none --sygus-out=status
(set-logic BV)

(define-fun hd01 ((x (_ BitVec 32))) (_ BitVec 32) (bvand x #x00000001))

(synth-fun f ((x (_ BitVec 32))) (_ BitVec 32)
    ((Start (_ BitVec 32)))
    ((Start (_ BitVec 32) ((bvsdiv Start Start)
                         (bvand Start Start)
                         x
                         #x00000001))))

(declare-var y (_ BitVec 32))
(constraint (= (hd01 y) (f y)))
(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback