3
我寫了下面的Z3 Python代碼按位與Z3?
x, y = Ints('x y')
F = (x == y & 16) # x has the value of (y & 16)
print F
,但我得到波紋管錯誤:
TypeError: unsupported operand type(s) for &: 'instance' and 'int'
怎麼辦按位運算(&在這種情況下)在Z3方程?
謝謝。
謝謝,irrelephant! – user311703