[PATCH] Xor reassociation

Sean Silva silvas at purdue.edu
Fri Mar 29 20:51:16 PDT 2013


FYI, it's really easy to use a theorem prover to show these kinds of
identities.

Microsoft Research's z3 theorem prover has a convenient web interface that
allows creating permalinks that are easy to share as "proof". It is also
well documented (see <http://rise4fun.com/Z3Py/tutorial/guide>; the "Bit
Tricks" section is especially relevant).

For example, here is a proof of the 4 identities you showed: <
http://rise4fun.com/Z3Py/slF3A>.

Also, z3 will give you a counterexample if the identity is not correct.

-- Sean Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130329/bf2ed6f3/attachment.html>


More information about the llvm-commits mailing list