This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow][NFC] Fix comments related to widening.
ClosedPublic

Authored by ymandel on Dec 19 2022, 8:10 AM.

Details

Summary

The comments describing the API for analysis widen and the environment widen
were overly strict in the preconditions they assumed for the operation. In
particular, both assumed that the previous value preceded the current value in
the relevant ordering. However, that's not generally how widen operators work
and widening itself can violate this property. That is, when the previous value
is the result of a widening, it can easily be "greater" than the current value.

This patch updates the comments to accurately reflect the expectations.

Diff Detail

Event Timeline

ymandel created this revision.Dec 19 2022, 8:10 AM
Herald added a project: Restricted Project. · View Herald Transcript
ymandel requested review of this revision.Dec 19 2022, 8:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 19 2022, 8:10 AM
xazax.hun accepted this revision.Dec 19 2022, 9:51 AM
This revision is now accepted and ready to land.Dec 19 2022, 9:51 AM
This revision was landed with ongoing or failed builds.Dec 19 2022, 1:02 PM
This revision was automatically updated to reflect the committed changes.