You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
384 B
23 lines
384 B
\item \self
|
|
Let $x$ and $y$ be two 32-bit vector variables.
|
|
Complete the python code with the appropriate variable declarations and constraint statements to check whether the following equivalence holds:
|
|
|
|
$$x \lxor y \equiv (((y \land x)*-2) + (y + x))$$
|
|
|
|
\begin{pythonSourceCode}
|
|
from z3 import *
|
|
|
|
s = Solver()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print(s.check())
|
|
|
|
\end{pythonSourceCode}
|