This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Generalize bitwise AND rules for ranges
ClosedPublic

Authored by vsavchenko on May 5 2020, 10:32 AM.

Details

Summary

Previously the current solver started reasoning about bitwise AND
expressions only when one of the operands is a constant. However,
very similar logic could be applied to ranges. This commit addresses
this shortcoming. Additionally, it refines how we deal with negative
operands.

Diff Detail

Event Timeline

vsavchenko created this revision.May 5 2020, 10:32 AM

Add parent change

NoQ accepted this revision.May 28 2020, 7:28 AM

Looks correct, thanks!!

This revision is now accepted and ready to land.May 28 2020, 7:28 AM
This revision was automatically updated to reflect the committed changes.