I want to encode If-the-else in python Z3, but cannot find any documents or examples of how to do this.
I have some sample code as below.
F = True
tmp = BitVec('tmp', 1)
tmp1 = BitVec('tmp1', 8)
Now, how can I encode this condition in F:
if tmp == 1, then tmp1 == 100. otherwise, tmp1 == 0
Many thanks.
source
share