connglli / ELEGANT

ELEGANT - a tool to Effectively LocatE fraGmentAtion-iNduced compaTibility issues.
MIT License
3 stars 0 forks source link

unitIteratorOfPDGNode is not returning the correct units #20

Open DulingLai opened 5 years ago

DulingLai commented 5 years ago

The line: iterator = ((IRegion) n.getNode()).getUnitGraph().iterator() in unitIteratorOfPDGNode(PDGNode n)

I think it would return the iterator of the unit graph instead of the Region.

What you are looking for might be iterator = ((IRegion) n.getNode()).getUnits().iterator()?

It would not affect your analysis as the PDG-based backslicing would always give you an empty set, since getBackDependet of the PDG might have an issue and always return 0.