C++: overlapping def/use must share IRVariable

This commit is contained in:
Robert Marsh
2019-07-15 10:35:57 -07:00
parent 20e67eb37a
commit 86a018b0b4

View File

@@ -263,6 +263,7 @@ predicate hasUnknownOffset(VariableMemoryLocation vml, VirtualVariable vv) {
Overlap getVariableMemoryLocationOverlap(VariableMemoryLocation def, VariableMemoryLocation use) {
def.getVariable() = use.getVariable() and
(
exists(VirtualVariable vv, IntValue offset | isCoveredOffset(def, vv, offset) and isCoveredOffset(use, vv, offset))
or