This patch implements transform for pattern "(A ^ B) | ((~A) ^ B) -> True".
Please help in reviewing the same.
Thanks,
Sonam.
Differential D4828
Added InstCombine transform for pattern "(A & B) ^ ((A ^ C) | B) -> (~A)". sonamkumari on Aug 8 2014, 4:04 AM. Authored by
Details
This patch implements transform for pattern "(A ^ B) | ((~A) ^ B) -> True". Please help in reviewing the same. Thanks,
Diff Detail Event Timeline
Comment Actions Hi Sonam, I would strongly suggest you to include a link like http://rise4fun.com/Z3/Evslo along with any identities just to verify that no errors are slipping through? It's an easy way to increase confidence in correctness. Z3 is pretty easy to use and has a good tutorial http://rise4fun.com/Z3/tutorial/guide . You don't need to read all of it, just skip to the "bit vectors" section for the list of operations and just reuse the boilerplate in my link. Basically, if your identity is "foo == bar", then what you ask Z3 to do is check that the statement "foo != bar" is unsatisfiable. The online Z3 "permalink" feature is what gives you a URL like the above. Comment Actions Hi David,Suyog, Thanks David for pointing out the mistake.I have submitted the patch related to the expression you mentioned. Thanks Suyog for this valuable information.I have attached the Z3 link for this expression. Z3 Link : http://rise4fun.com/Z3/kOaU Please help in reviewing the patch. Regards, Comment Actions Hi David, Can you please commit this patch as I don't have the access. :) Regards, Comment Actions Please provide the information asked in other thread for similar pattern:
|
This is incorrect, it should be something like: