Skip to content

Commit

Permalink
fix condition for isPointer
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleisui committed Jan 3, 2024
1 parent e7e602d commit 21ba463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions svf/lib/WPA/FlowSensitive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ bool FlowSensitive::processLoad(const LoadSVFGNode* load)
{
NodeID ptd = *ptdIt;

if (pag->isConstantObj(ptd) || pag->getGNode(load->getPAGDstNodeID())->isPointer())
if (pag->isConstantObj(ptd) || pag->getGNode(load->getPAGDstNodeID())->isPointer()==false)
continue;

if (unionPtsFromIn(load, ptd, dstVar))
Expand Down Expand Up @@ -615,7 +615,7 @@ bool FlowSensitive::processStore(const StoreSVFGNode* store)
{
NodeID ptd = *it;

if (pag->isConstantObj(ptd) || pag->getGNode(store->getPAGSrcNodeID())->isPointer())
if (pag->isConstantObj(ptd) || pag->getGNode(store->getPAGSrcNodeID())->isPointer()==false)
continue;

if (unionPtsFromTop(store, store->getPAGSrcNodeID(), ptd))
Expand Down
4 changes: 2 additions & 2 deletions svf/lib/WPA/VersionedFlowSensitive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ bool VersionedFlowSensitive::processLoad(const LoadSVFGNode* load)
const PointsTo& qpt = getPts(q);
for (NodeID o : qpt)
{
if (pag->isConstantObj(o) || pag->getGNode(load->getPAGDstNodeID())->isPointer()) continue;
if (pag->isConstantObj(o) || pag->getGNode(load->getPAGDstNodeID())->isPointer()==false) continue;

const Version c = getConsume(l, o);
if (c != invalidVersion && vPtD->unionPts(p, atKey(o, c)))
Expand Down Expand Up @@ -709,7 +709,7 @@ bool VersionedFlowSensitive::processStore(const StoreSVFGNode* store)
{
for (NodeID o : ppt)
{
if (pag->isConstantObj(o) || pag->getGNode(store->getPAGSrcNodeID())->isPointer()) continue;
if (pag->isConstantObj(o) || pag->getGNode(store->getPAGSrcNodeID())->isPointer()==false) continue;

const Version y = getYield(l, o);
if (y != invalidVersion && vPtD->unionPts(atKey(o, y), q))
Expand Down

0 comments on commit 21ba463

Please sign in to comment.