This is an archive of the discontinued LLVM Phabricator instance.

[analyzer][NFC] Add tests for extents
ClosedPublic

Authored by steakhal on Apr 6 2021, 8:00 AM.

Details

Summary

If we allocate memory, the extent of the MemRegion will be the symbolic
value of the size parameter. This way, if that symbol gets constrained,
the extent will be also constrained.

This test demonstrates that the extent is indeed the same symbol.

Diff Detail

Event Timeline

steakhal created this revision.Apr 6 2021, 8:00 AM
steakhal requested review of this revision.Apr 6 2021, 8:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2021, 8:00 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
NoQ accepted this revision.Apr 6 2021, 9:58 AM

More tests are great!

This revision is now accepted and ready to land.Apr 6 2021, 9:58 AM