Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
refine field-sensitive and array-insensitive pta
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleisui committed Jul 20, 2022
1 parent ab06807 commit 6f42ece
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/WPA/Andersen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ bool Andersen::processGepPts(const PointsTo& pts, const GepCGEdge* edge)
// base object is always returned.
for (NodeID o : pts)
{
if (consCG->isBlkObjOrConstantObj(o))
if (consCG->isBlkObjOrConstantObj(o) || isFieldInsensitive(o))
{
tmpDstPts.set(o);
continue;
Expand Down
2 changes: 1 addition & 1 deletion lib/WPA/FlowSensitive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ bool FlowSensitive::processGep(const GepSVFGNode* edge)
{
for (NodeID o : srcPts)
{
if (isBlkObjOrConstantObj(o))
if (isBlkObjOrConstantObj(o) || isFieldInsensitive(o))
{
tmpDstPts.set(o);
continue;
Expand Down

0 comments on commit 6f42ece

Please sign in to comment.