|
Static Value-Flow Analysis
|
DiffPTData implemented with points-to sets which are updated continuously. More...
#include <MutablePointsToDS.h>
Public Types | |
| typedef PTData< Key, KeySet, Data, DataSet > | BasePTData |
| typedef DiffPTData< Key, KeySet, Data, DataSet > | BaseDiffPTData |
| typedef BasePTData::PTDataTy | PTDataTy |
| typedef MutablePTData< Key, KeySet, Data, DataSet >::PtsMap | PtsMap |
Public Types inherited from SVF::DiffPTData< Key, KeySet, Data, DataSet > | |
| typedef PTData< Key, KeySet, Data, DataSet > | BasePTData |
| typedef BasePTData::PTDataTy | PTDataTy |
Public Types inherited from SVF::PTData< Key, KeySet, Data, DataSet > | |
| enum | PTDataTy { Base , MutBase , Diff , MutDiff , DataFlow , MutDataFlow , MutIncDataFlow , Versioned , MutVersioned , PersBase , PersDiff , PersDataFlow , PersIncDataFlow , PersVersioned } |
| Types of a points-to data structures. More... | |
Public Member Functions | |
| MutableDiffPTData (bool reversePT=true, PTDataTy ty=PTDataTy::Diff) | |
| Constructor. | |
| ~MutableDiffPTData () override=default | |
| virtual const PtsMap & | getPtsMap () const |
| void | clear () override |
| Clears all points-to sets as if nothing is stored. | |
| virtual const DataSet & | getPts (const Key &var) override |
| Get points-to set of var. | |
| virtual const KeySet & | getRevPts (const Data &datum) override |
| Get reverse points-to set of a datum. | |
| virtual bool | addPts (const Key &dstKey, const Data &element) override |
| Adds element to the points-to set associated with var. | |
| virtual bool | unionPts (const Key &dstKey, const Key &srcKey) override |
| Performs pts(dstVar) = pts(dstVar) U pts(srcVar). | |
| virtual bool | unionPts (const Key &dstKey, const DataSet &srcDataSet) override |
| Performs pts(dstVar) = pts(dstVar) U srcDataSet. | |
| virtual void | clearPts (const Key &var, const Data &element) override |
| Clears element from the points-to set of var. | |
| virtual void | clearFullPts (const Key &var) override |
| Fully clears the points-to set of var. | |
| virtual void | remapAllPts (void) override |
| Remaps all points-to sets to use the current mapping. | |
| virtual void | dumpPTData () override |
| Dump stored keys and points-to sets. | |
| virtual const DataSet & | getDiffPts (Key &var) override |
| Get diff points to. | |
| virtual bool | computeDiffPts (Key &var, const DataSet &all) override |
| virtual void | updatePropaPtsMap (Key &src, Key &dst) override |
| virtual void | clearPropaPts (Key &var) override |
| Clear propagated points-to set of var. | |
| virtual Map< DataSet, unsigned > | getAllPts (bool liveOnly) const override |
Public Member Functions inherited from SVF::DiffPTData< Key, KeySet, Data, DataSet > | |
| DiffPTData (bool reversePT=true, PTDataTy ty=PTDataTy::Diff) | |
| virtual | ~DiffPTData () |
Public Member Functions inherited from SVF::PTData< Key, KeySet, Data, DataSet > | |
| PTData (bool reversePT=true, PTDataTy ty=PTDataTy::Base) | |
| virtual | ~PTData () |
| PTDataTy | getPTDTY () const |
| Get the type of points-to data structure that this is. | |
| bool | hasReversePts () const |
| Whether we maintain reverse points-to sets. | |
Static Public Member Functions | |
| static bool | classof (const MutableDiffPTData< Key, KeySet, Data, DataSet > *) |
| static bool | classof (const PTData< Key, KeySet, Data, DataSet > *ptd) |
Static Public Member Functions inherited from SVF::DiffPTData< Key, KeySet, Data, DataSet > | |
| static bool | classof (const DiffPTData< Key, KeySet, Data, DataSet > *) |
| static bool | classof (const PTData< Key, KeySet, Data, DataSet > *ptd) |
Protected Member Functions | |
| DataSet & | getPropaPts (Key &var) |
| Get propagated points to. | |
Private Attributes | |
| MutablePTData< Key, KeySet, Data, DataSet > | mutPTData |
| Backing to implement the basic PTData methods. This allows us to avoid multiple-inheritance. | |
| PtsMap | diffPtsMap |
| Diff points-to to be propagated. | |
| PtsMap | propaPtsMap |
| Points-to already propagated. | |
Additional Inherited Members | |
Protected Attributes inherited from SVF::PTData< Key, KeySet, Data, DataSet > | |
| bool | rev |
| Whether we maintain reverse points-to sets or not. | |
| PTDataTy | ptdTy |
DiffPTData implemented with points-to sets which are updated continuously.
Definition at line 226 of file MutablePointsToDS.h.
| typedef DiffPTData<Key, KeySet, Data, DataSet> SVF::MutableDiffPTData< Key, KeySet, Data, DataSet >::BaseDiffPTData |
Definition at line 230 of file MutablePointsToDS.h.
| typedef PTData<Key, KeySet, Data, DataSet> SVF::MutableDiffPTData< Key, KeySet, Data, DataSet >::BasePTData |
Definition at line 229 of file MutablePointsToDS.h.
| typedef BasePTData::PTDataTy SVF::MutableDiffPTData< Key, KeySet, Data, DataSet >::PTDataTy |
Definition at line 231 of file MutablePointsToDS.h.
| typedef MutablePTData<Key,KeySet,Data,DataSet>::PtsMap SVF::MutableDiffPTData< Key, KeySet, Data, DataSet >::PtsMap |
Definition at line 233 of file MutablePointsToDS.h.
|
inlineexplicit |
Constructor.
Definition at line 236 of file MutablePointsToDS.h.
|
overridedefault |
|
inlineoverridevirtual |
Adds element to the points-to set associated with var.
Implements SVF::PTData< Key, KeySet, Data, DataSet >.
Definition at line 261 of file MutablePointsToDS.h.
|
inlinestatic |
Methods to support type inquiry through isa, cast, and dyn_cast:
Definition at line 334 of file MutablePointsToDS.h.
|
inlinestatic |
Definition at line 339 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Clears all points-to sets as if nothing is stored.
Implements SVF::PTData< Key, KeySet, Data, DataSet >.
Definition at line 245 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Fully clears the points-to set of var.
Implements SVF::PTData< Key, KeySet, Data, DataSet >.
Definition at line 281 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Clear propagated points-to set of var.
Implements SVF::DiffPTData< Key, KeySet, Data, DataSet >.
Definition at line 322 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Clears element from the points-to set of var.
Implements SVF::PTData< Key, KeySet, Data, DataSet >.
Definition at line 276 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Compute diff points to. Return TRUE if diff is not empty.
Clear diff pts.
Get all pts.
Implements SVF::DiffPTData< Key, KeySet, Data, DataSet >.
Definition at line 303 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Dump stored keys and points-to sets.
Implements SVF::PTData< Key, KeySet, Data, DataSet >.
Definition at line 293 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Returns a mapping of points-to sets to the number of times they are stored. liveOnly indicates whether to include only points-to sets which correspond to a variable (matters when dealing with non-GC persistent PT).
Implements SVF::PTData< Key, KeySet, Data, DataSet >.
Definition at line 327 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Get diff points to.
Implements SVF::DiffPTData< Key, KeySet, Data, DataSet >.
Definition at line 298 of file MutablePointsToDS.h.
|
inlineprotected |
Get propagated points to.
Definition at line 347 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Get points-to set of var.
Implements SVF::PTData< Key, KeySet, Data, DataSet >.
Definition at line 250 of file MutablePointsToDS.h.
|
inlinevirtual |
Definition at line 240 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Get reverse points-to set of a datum.
Implements SVF::PTData< Key, KeySet, Data, DataSet >.
Definition at line 255 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Remaps all points-to sets to use the current mapping.
Implements SVF::PTData< Key, KeySet, Data, DataSet >.
Definition at line 286 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Performs pts(dstVar) = pts(dstVar) U srcDataSet.
Implements SVF::PTData< Key, KeySet, Data, DataSet >.
Definition at line 271 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Performs pts(dstVar) = pts(dstVar) U pts(srcVar).
Implements SVF::PTData< Key, KeySet, Data, DataSet >.
Definition at line 266 of file MutablePointsToDS.h.
|
inlineoverridevirtual |
Update dst's propagated points-to set with src's. The final result is the intersection of these two sets.
Implements SVF::DiffPTData< Key, KeySet, Data, DataSet >.
Definition at line 315 of file MutablePointsToDS.h.
|
private |
Diff points-to to be propagated.
Definition at line 356 of file MutablePointsToDS.h.
|
private |
Backing to implement the basic PTData methods. This allows us to avoid multiple-inheritance.
Definition at line 354 of file MutablePointsToDS.h.
|
private |
Points-to already propagated.
Definition at line 358 of file MutablePointsToDS.h.