Static Value-Flow Analysis
Loading...
Searching...
No Matches
PointerAnalysisImpl.h
Go to the documentation of this file.
1//===- PointerAnalysisImpl.h -- Pointer analysis implementation--------------------//
2//
3// SVF: Static Value-Flow Analysis
4//
5// Copyright (C) <2013-> <Yulei Sui>
6//
7
8// This program is free software: you can redistribute it and/or modify
9// it under the terms of the GNU Affero General Public License as published by
10// the Free Software Foundation, either version 3 of the License, or
11// (at your option) any later version.
12
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU Affero General Public License for more details.
17
18// You should have received a copy of the GNU Affero General Public License
19// along with this program. If not, see <http://www.gnu.org/licenses/>.
20//
21//===----------------------------------------------------------------------===//
22
23/*
24 * PointerAnalysis.h
25 *
26 * Created on: Nov 12, 2013
27 * Author: Yulei Sui
28 */
29
30#ifndef INCLUDE_MEMORYMODEL_POINTERANALYSISIMPL_H_
31#define INCLUDE_MEMORYMODEL_POINTERANALYSISIMPL_H_
32
33#include "Graphs/ConsG.h"
34#include "MemoryModel/PTATY.h"
40
41namespace SVF
42{
43
48{
49
50public:
55
61
67
70
72 ~BVDataPTAImpl() override = default;
73
78
79 static inline bool classof(const PointerAnalysis *pta)
80 {
81 return pta->getImplTy() == PTAImplTy::BVDataImpl;
82 }
83
86 inline const PointsTo& getPts(NodeID id) override
87 {
88 return ptD->getPts(id);
89 }
90 inline const NodeSet& getRevPts(NodeID nodeId) override
91 {
92 return ptD->getRevPts(nodeId);
93 }
95
97 virtual inline void clearPts(NodeID id, NodeID element)
98 {
99 ptD->clearPts(id, element);
100 }
101
103 virtual inline void clearFullPts(NodeID id)
104 {
105 ptD->clearFullPts(id);
106 }
107
110
111 virtual inline bool unionPts(NodeID id, const PointsTo& target)
112 {
113 return ptD->unionPts(id, target);
114 }
115 virtual inline bool unionPts(NodeID id, NodeID ptd)
116 {
117 return ptD->unionPts(id,ptd);
118 }
119 virtual inline bool addPts(NodeID id, NodeID ptd)
120 {
121 return ptD->addPts(id,ptd);
122 }
124
126 virtual inline void clearAllPts()
127 {
128 ptD->clear();
129 }
130
132 virtual void expandFIObjs(const PointsTo& pts, PointsTo& expandedPts);
134 virtual void expandFIObjs(const NodeBS& pts, NodeBS& expandedPts);
135
137 void remapPointsToSets(void);
138
140
141 virtual void writeToFile(const std::string& filename);
142 virtual void writeObjVarToFile(const std::string& filename);
143 virtual void writePtsResultToFile(std::fstream& f);
144 virtual void writeGepObjVarMapToFile(std::fstream& f);
145 virtual bool readFromFile(const std::string& filename);
146 virtual void readPtsResultFromFile(std::ifstream& f);
147 virtual void readGepObjVarMapFromFile(std::ifstream& f);
148 virtual void readAndSetObjFieldSensitivity(std::ifstream& f, const std::string& delimiterStr);
150
151protected:
153 inline PTDataTy* getPTDataTy() const
154 {
155 return ptD.get();
156 }
157
158
160 void finalize() override;
161
163 virtual inline bool updateCallGraph(const CallSiteToFunPtrMap&)
164 {
165 assert(false && "Virtual function not implemented!");
166 return false;
167 }
168
170 {
171 DiffPTDataTy* diff = SVFUtil::dyn_cast<DiffPTDataTy>(ptD.get());
172 assert(diff && "BVDataPTAImpl::getDiffPTDataTy: not a DiffPTDataTy!");
173 return diff;
174 }
175
176 inline DFPTDataTy* getDFPTDataTy() const
177 {
178 DFPTDataTy* df = SVFUtil::dyn_cast<DFPTDataTy>(ptD.get());
179 assert(df && "BVDataPTAImpl::getDFPTDataTy: not a DFPTDataTy!");
180 return df;
181 }
182
184 {
185 MutDFPTDataTy* mdf = SVFUtil::dyn_cast<MutDFPTDataTy>(ptD.get());
186 assert(mdf && "BVDataPTAImpl::getMutDFPTDataTy: not a MutDFPTDataTy!");
187 return mdf;
188 }
189
191 {
192 VersionedPTDataTy* v = SVFUtil::dyn_cast<VersionedPTDataTy>(ptD.get());
193 assert(v && "BVDataPTAImpl::getVersionedPTDataTy: not a VersionedPTDataTy!");
194 return v;
195 }
196
199
203
206 virtual void normalizePointsTo();
207
208private:
210 std::unique_ptr<PTDataTy> ptD;
211
213
214public:
217 const SVFVar* V2) override
218 {
219 return alias(V1->getId(), V2->getId());
220 }
221
224
226 virtual AliasResult alias(const PointsTo& pts1, const PointsTo& pts2);
227
229 inline bool mayAlias(const PointsTo& pts1, const PointsTo& pts2)
230 {
232 }
233
235
236 void dumpCPts() override
237 {
238 ptD->dumpPTData();
239 }
240
241 void dumpTopLevelPtsTo() override;
242
243 void dumpAllPts() override;
245};
246
250template<class Cond>
252{
253
254public:
262
265 {
267 ptD = new MutPTDataTy();
268 else
269 assert(false && "no points-to data available");
270
272 }
273
275 virtual ~CondPTAImpl()
276 {
277 destroy();
278 }
279
280 static inline bool classof(const PointerAnalysis *pta)
281 {
282 return pta->getImplTy() == PTAImplTy::CondImpl;
283 }
284
286 inline void destroy()
287 {
288 delete ptD;
289 ptD = nullptr;
290 }
291
293 inline PTDataTy* getPTDataTy() const
294 {
295 return ptD;
296 }
297
299 {
300 MutPTDataTy* mut = SVFUtil::dyn_cast<MutPTDataTy>(ptD);
301 assert(mut && "BVDataPTAImpl::getMutPTDataTy: not a MutPTDataTy!");
302 return mut;
303 }
304
305 inline bool hasPtsMap(void) const
306 {
307 return SVFUtil::isa<MutPTDataTy>(ptD);
308 }
309
310 inline const typename MutPTDataTy::PtsMap& getPtsMap() const
311 {
312 if (MutPTDataTy *m = SVFUtil::dyn_cast<MutPTDataTy>(ptD)) return m->getPtsMap();
313 assert(false && "CondPTAImpl::getPtsMap: not a PTData with a PtsMap!");
314 exit(1);
315 }
316
319 virtual inline const CPtSet& getPts(CVar id)
320 {
321 return ptD->getPts(id);
322 }
323 virtual inline const Set<CVar>& getRevPts(CVar nodeId)
324 {
325 return ptD->getRevPts(nodeId);
326 }
328
330 virtual inline void clearPts()
331 {
332 ptD->clear();
333 }
334
336 bool overlap(const CPtSet& cpts1, const CPtSet& cpts2) const
337 {
338 for (typename CPtSet::const_iterator it1 = cpts1.begin(); it1 != cpts1.end(); ++it1)
339 {
340 for (typename CPtSet::const_iterator it2 = cpts2.begin(); it2 != cpts2.end(); ++it2)
341 {
342 if(isSameVar(*it1,*it2))
343 return true;
344 }
345 }
346 return false;
347 }
348
351 {
352 expandedCpts = cpts;;
353 for(typename CPtSet::const_iterator cit = cpts.begin(), ecit=cpts.end(); cit!=ecit; ++cit)
354 {
355 if(pag->getBaseObjVarID(cit->get_id())==cit->get_id())
356 {
357 NodeBS& fields = pag->getAllFieldsObjVars(cit->get_id());
358 for(NodeBS::iterator it = fields.begin(), eit = fields.end(); it!=eit; ++it)
359 {
360 CVar cvar(cit->get_cond(),*it);
361 expandedCpts.set(cvar);
362 }
363 }
364 }
365 }
366
367protected:
368
370 virtual void finalize()
371 {
374 }
377
378 virtual inline bool unionPts(CVar id, const CPtSet& target)
379 {
380 return ptD->unionPts(id, target);
381 }
382
383 virtual inline bool unionPts(CVar id, CVar ptd)
384 {
385 return ptD->unionPts(id,ptd);
386 }
387
388 virtual inline bool addPts(CVar id, CVar ptd)
389 {
390 return ptD->addPts(id,ptd);
391 }
393
395
396 inline bool mustAlias(const CVar& var1, const CVar& var2)
397 {
398 if(isSameVar(var1,var2))
399 return true;
400
401 bool singleton = !(isHeapMemObj(var1.get_id()) || isLocalVarInRecursiveFun(var1.get_id()));
402 if(isCondCompatible(var1.get_cond(),var2.get_cond(),singleton) == false)
403 return false;
404
405 const CPtSet& cpts1 = getPts(var1);
406 const CPtSet& cpts2 = getPts(var2);
407 return (contains(cpts1,cpts2) && contains(cpts2,cpts1));
408 }
409
410 // Whether cpts1 contains all points-to targets of pts2
411 bool contains(const CPtSet& cpts1, const CPtSet& cpts2)
412 {
413 if (cpts1.empty() || cpts2.empty())
414 return false;
415
416 for (typename CPtSet::const_iterator it2 = cpts2.begin(); it2 != cpts2.end(); ++it2)
417 {
418 bool hasObj = false;
419 for (typename CPtSet::const_iterator it1 = cpts1.begin(); it1 != cpts1.end(); ++it1)
420 {
421 if(isSameVar(*it1,*it2))
422 {
423 hasObj = true;
424 break;
425 }
426 }
427 if(hasObj == false)
428 return false;
429 }
430 return true;
431 }
432
434 bool isSameVar(const CVar& var1, const CVar& var2) const
435 {
436 if(var1.get_id() != var2.get_id())
437 return false;
438
440 bool singleton = !(isHeapMemObj(var1.get_id()) || isLocalVarInRecursiveFun(var1.get_id()));
441 return isCondCompatible(var1.get_cond(),var2.get_cond(),singleton);
442 }
444
446 virtual void normalizePointsTo()
447 {
448 normalized = true;
449 if (hasPtsMap())
450 {
451 const typename MutPTDataTy::PtsMap& ptsMap = getPtsMap();
452 for(typename MutPTDataTy::PtsMap::const_iterator it = ptsMap.begin(), eit=ptsMap.end(); it!=eit; ++it)
453 {
454 for(typename CPtSet::const_iterator cit = it->second.begin(), ecit=it->second.end(); cit!=ecit; ++cit)
455 {
456 ptrToBVPtsMap[(it->first).get_id()].set(cit->get_id());
457 objToNSRevPtsMap[cit->get_id()].insert((it->first).get_id());
458 ptrToCPtsMap[(it->first).get_id()].set(*cit);
459 }
460 }
461 }
462 else
463 {
464 assert(false && "CondPTAImpl::NormalizePointsTo: could not normalize points-to sets");
465 }
466 }
477public:
479 virtual void dumpCPts()
480 {
481 ptD->dumpPTData();
482 }
484 virtual inline PointsTo getBVPointsTo(const CPtSet& cpts) const
485 {
487 for(typename CPtSet::const_iterator cit = cpts.begin(), ecit=cpts.end(); cit!=ecit; ++cit)
488 pts.set(cit->get_id());
489 return pts;
490 }
492 virtual inline PointsTo& getPts(NodeID ptr)
493 {
494 assert(normalized && "Pts of all context-var have to be merged/normalized. Want to use getPts(CVar cvar)??");
495 return ptrToBVPtsMap[ptr];
496 }
498 virtual inline const CPtSet& getCondPointsTo(NodeID ptr)
499 {
500 assert(normalized && "Pts of all context-vars have to be merged/normalized. Want to use getPts(CVar cvar)??");
501 return ptrToCPtsMap[ptr];
502 }
504 virtual inline NodeSet& getRevPts(NodeID obj)
505 {
506 assert(normalized && "Pts of all context-var have to be merged/normalized. Want to use getPts(CVar cvar)??");
507 return objToNSRevPtsMap[obj];
508 }
509
511 virtual inline AliasResult alias(const SVFVar* V1, const SVFVar* V2)
512 {
513 return alias(V1->getId(), V2->getId());
514 }
521 virtual AliasResult alias(const CVar& var1, const CVar& var2)
522 {
523 return alias(getPts(var1),getPts(var2));
524 }
526 virtual inline AliasResult alias(const CPtSet& pts1, const CPtSet& pts2)
527 {
534 else if(this->getAnalysisTy() == PTATY::PathS_DDA && contains(cpts1,cpts2) && contains(cpts2,cpts1))
535 {
537 }
538 else if(overlap(cpts1,cpts2))
540 else
542 }
544 inline bool containBlackHoleNode(const CPtSet& cpts)
545 {
546 for(typename CPtSet::const_iterator cit = cpts.begin(), ecit=cpts.end(); cit!=ecit; ++cit)
547 {
548 if(cit->get_id() == pag->getBlackHoleNode())
549 return true;
550 }
551 return false;
552 }
554 inline bool containConstantNode(const CPtSet& cpts)
555 {
556 for(typename CPtSet::const_iterator cit = cpts.begin(), ecit=cpts.end(); cit!=ecit; ++cit)
557 {
558 if(cit->get_id() == pag->getConstantNode())
559 return true;
560 }
561 return false;
562 }
564 virtual bool isCondCompatible(const Cond& cxt1, const Cond& cxt2, bool singleton) const = 0;
565
568 {
569 for (OrderedNodeSet::iterator nIter = this->getAllValidPtrs().begin(); nIter != this->getAllValidPtrs().end(); ++nIter)
570 {
571 const SVFVar* node = this->getPAG()->getSVFVar(*nIter);
572 if (this->getPAG()->isValidTopLevelPtr(node))
573 {
574 if (SVFUtil::isa<DummyObjVar>(node))
575 {
576 SVFUtil::outs() << "##<Blackhole or constant> id:" << node->getId();
577 }
578 else if (!SVFUtil::isa<DummyValVar>(node))
579 {
580 SVFUtil::outs() << "##<" << node->toString() << "> ";
581 //SVFUtil::outs() << "Source Loc: " << SVFUtil::getSourceLoc(node->getValue());
582 }
583
584 const PointsTo& pts = getPts(node->getId());
585 SVFUtil::outs() << "\nNodeID " << node->getId() << " ";
586 if (pts.empty())
587 {
588 SVFUtil::outs() << "\t\tPointsTo: {empty}\n\n";
589 }
590 else
591 {
592 SVFUtil::outs() << "\t\tPointsTo: { ";
593 for (PointsTo::iterator it = pts.begin(), eit = pts.end(); it != eit; ++it)
594 SVFUtil::outs() << *it << " ";
595 SVFUtil::outs() << "}\n\n";
596 }
597 }
598 }
599
600 SVFUtil::outs().flush();
601 }
602};
603
604} // End namespace SVF
605
606#endif /* INCLUDE_MEMORYMODEL_POINTERANALYSISIMPL_H_ */
newitem type
Definition cJSON.cpp:2739
#define false
Definition cJSON.cpp:70
VersionedPTDataTy * getVersionedPTDataTy() const
PersistentDiffPTData< NodeID, NodeSet, NodeID, PointsTo > PersDiffPTDataTy
virtual void normalizePointsTo()
virtual void writeToFile(const std::string &filename)
Interface for analysis result storage on filesystem.
virtual bool readFromFile(const std::string &filename)
PersistentIncDFPTData< NodeID, NodeSet, NodeID, PointsTo > PersIncDFPTDataTy
virtual void writeObjVarToFile(const std::string &filename)
const NodeSet & getRevPts(NodeID nodeId) override
virtual void clearAllPts()
Clear all data.
virtual void clearPts(NodeID id, NodeID element)
Remove element from the points-to set of id.
~BVDataPTAImpl() override=default
Destructor.
virtual void readAndSetObjFieldSensitivity(std::ifstream &f, const std::string &delimiterStr)
DiffPTDataTy * getDiffPTDataTy() const
AliasResult alias(const SVFVar *V1, const SVFVar *V2) override
Interface expose to users of our pointer analysis, given Value infos.
MutablePTData< NodeID, NodeSet, NodeID, PointsTo > MutPTDataTy
DFPTData< NodeID, NodeSet, NodeID, PointsTo > DFPTDataTy
virtual void writeGepObjVarMapToFile(std::fstream &f)
void finalize() override
Finalization of pointer analysis, and normalize points-to information to Bit Vector representation.
MutableIncDFPTData< NodeID, NodeSet, NodeID, PointsTo > MutIncDFPTDataTy
bool mayAlias(const PointsTo &pts1, const PointsTo &pts2)
Convenience bool wrappers: return true if the two operands may/must/partial alias.
static bool classof(const PointerAnalysis *pta)
virtual void writePtsResultToFile(std::fstream &f)
PersistentDFPTData< NodeID, NodeSet, NodeID, PointsTo > PersDFPTDataTy
virtual void expandFIObjs(const PointsTo &pts, PointsTo &expandedPts)
Expand FI objects.
void remapPointsToSets(void)
Remap all points-to sets to use the current mapping.
MutableVersionedPTData< NodeID, NodeSet, NodeID, PointsTo, VersionedVar, Set< VersionedVar > > MutVersionedPTDataTy
MutDFPTDataTy * getMutDFPTDataTy() const
VersionedPTData< NodeID, NodeSet, NodeID, PointsTo, VersionedVar, Set< VersionedVar > > VersionedPTDataTy
virtual void onTheFlyThreadCallGraphSolve(const CallSiteToFunPtrMap &callsites, CallEdgeMap &newForkEdges)
On the fly thread call graph construction respecting forksite.
PersistentPointsToCache< PointsTo > ptCache
virtual void onTheFlyCallGraphSolve(const CallSiteToFunPtrMap &callsites, CallEdgeMap &newEdges)
On the fly call graph construction.
virtual bool updateCallGraph(const CallSiteToFunPtrMap &)
Update callgraph. This should be implemented by its subclass.
std::unique_ptr< PTDataTy > ptD
Points-to data.
DFPTDataTy * getDFPTDataTy() const
DiffPTData< NodeID, NodeSet, NodeID, PointsTo > DiffPTDataTy
MutableDFPTData< NodeID, NodeSet, NodeID, PointsTo > MutDFPTDataTy
PersistentPointsToCache< PointsTo > & getPtCache()
MutableDiffPTData< NodeID, NodeSet, NodeID, PointsTo > MutDiffPTDataTy
void dumpCPts() override
dump and debug, print out conditional pts
PTData< NodeID, NodeSet, NodeID, PointsTo > PTDataTy
void dumpTopLevelPtsTo() override
virtual bool unionPts(NodeID id, NodeID ptd)
const PointsTo & getPts(NodeID id) override
PersistentVersionedPTData< NodeID, NodeSet, NodeID, PointsTo, VersionedVar, Set< VersionedVar > > PersVersionedPTDataTy
PersistentPTData< NodeID, NodeSet, NodeID, PointsTo > PersPTDataTy
virtual bool unionPts(NodeID id, const PointsTo &target)
virtual void readPtsResultFromFile(std::ifstream &f)
PTDataTy * getPTDataTy() const
Get points-to data structure.
virtual bool addPts(NodeID id, NodeID ptd)
virtual void readGepObjVarMapFromFile(std::ifstream &f)
virtual void clearFullPts(NodeID id)
Clear points-to set of id.
virtual ~CondPTAImpl()
Destructor.
virtual bool addPts(CVar id, CVar ptd)
MutPTDataTy * getMutPTDataTy() const
virtual bool unionPts(CVar id, const CPtSet &target)
PtrToNSMap objToNSRevPtsMap
Normal points-to representation (without conditions)
PTDataTy * getPTDataTy() const
Get points-to data.
PtrToBVPtsMap ptrToBVPtsMap
Normal points-to representation (without conditions)
bool containConstantNode(const CPtSet &cpts)
Test constant node for cpts.
bool mustAlias(const CVar &var1, const CVar &var2)
Internal interface to be used for conditional points-to set queries.
CondStdSet< CVar > CPtSet
virtual const CPtSet & getCondPointsTo(NodeID ptr)
Given a pointer return its conditional points-to.
virtual bool unionPts(CVar id, CVar ptd)
Map< NodeID, CPtSet > PtrToCPtsMap
virtual const Set< CVar > & getRevPts(CVar nodeId)
CondPTAImpl(SVFIR *pag, PTATY type)
map a pointer to its conditional points-to set
bool hasPtsMap(void) const
bool contains(const CPtSet &cpts1, const CPtSet &cpts2)
void destroy()
Release memory.
PtrToCPtsMap ptrToCPtsMap
Conditional points-to representation (with conditions)
virtual bool isCondCompatible(const Cond &cxt1, const Cond &cxt2, bool singleton) const =0
Whether two conditions are compatible (to be implemented by child class)
PTData< CVar, Set< CVar >, CVar, CPtSet > PTDataTy
bool isSameVar(const CVar &var1, const CVar &var2) const
Whether two pointers/objects are the same one by considering their conditions.
void dumpTopLevelPtsTo()
Dump points-to information of top-level pointers.
Map< NodeID, NodeSet > PtrToNSMap
map a pointer to its BitVector points-to representation
void expandFIObjs(const CPtSet &cpts, CPtSet &expandedCpts)
Expand all fields of an aggregate in all points-to sets.
bool containBlackHoleNode(const CPtSet &cpts)
Test blk node for cpts.
virtual AliasResult alias(const CPtSet &pts1, const CPtSet &pts2)
Interface expose to users of our pointer analysis, given two conditional points-to sets.
virtual PointsTo getBVPointsTo(const CPtSet &cpts) const
Given a conditional pts return its bit vector points-to.
virtual NodeSet & getRevPts(NodeID obj)
Given an object return all pointers points to this object.
virtual void finalize()
Finalization of pointer analysis, and normalize points-to information to Bit Vector representation.
virtual void dumpCPts()
Print out conditional pts.
virtual void normalizePointsTo()
Normalize points-to information to BitVector/conditional representation.
bool normalized
Normalized flag.
Map< NodeID, PointsTo > PtrToBVPtsMap
virtual AliasResult alias(NodeID node1, NodeID node2)
Interface expose to users of our pointer analysis, given two pointers.
virtual AliasResult alias(const SVFVar *V1, const SVFVar *V2)
Interface expose to users of our pointer analysis, given Value infos.
virtual AliasResult alias(const CVar &var1, const CVar &var2)
Interface expose to users of our pointer analysis, given conditional variables.
bool overlap(const CPtSet &cpts1, const CPtSet &cpts2) const
Whether cpts1 and cpts2 have overlap points-to targets.
virtual void clearPts()
Clear all data.
virtual PointsTo & getPts(NodeID ptr)
Given a pointer return its bit vector points-to.
static bool classof(const PointerAnalysis *pta)
virtual const CPtSet & getPts(CVar id)
const MutPTDataTy::PtsMap & getPtsMap() const
MutablePTData< CVar, Set< CVar >, CVar, CPtSet > MutPTDataTy
PTDataTy * ptD
Points-to data.
OrderedSet< Element >::const_iterator const_iterator
iterator begin()
Iterators.
NodeID getBlackHoleNode() const
Definition IRGraph.h:246
NodeID getConstantNode() const
Definition IRGraph.h:250
Map< Key, DataSet > PtsMap
bool isLocalVarInRecursiveFun(NodeID id) const
Whether a local variable is in function recursions.
virtual void finalize()
Finalization of a pointer analysis, including checking alias correctness.
OrderedMap< const CallICFGNode *, FunctionSet > CallEdgeMap
PTAImplTy ptaImplTy
PTA implementation type.
SVFIR * getPAG() const
OrderedNodeSet & getAllValidPtrs()
Get all Valid Pointers for resolution.
PTAImplTy getImplTy() const
Return implementation type of the pointer analysis.
PTATY getAnalysisTy() const
Type of pointer analysis.
SVFIR::CallSiteToFunPtrMap CallSiteToFunPtrMap
static SVFIR * pag
SVFIR.
bool isHeapMemObj(NodeID id) const
Whether this object is heap or array.
void set(u32_t n)
Inserts n in the set.
Definition PointsTo.cpp:157
NodeID getBaseObjVarID(NodeID id) const
Base and Offset methods for Value and Object node.
Definition SVFIR.h:554
NodeBS & getAllFieldsObjVars(const BaseObjVar *obj)
Get all fields of an object.
Definition SVFIR.cpp:573
const SVFVar * getSVFVar(NodeID id) const
ObjVar/GepObjVar/BaseObjVar.
Definition SVFIR.h:135
NodeID getId() const
Get ID.
Definition SVFValue.h:158
virtual const std::string toString() const
Get string representation.
iterator begin() const
std::ostream & outs()
Overwrite llvm::outs()
Definition SVFUtil.h:52
for isBitcode
Definition BasicTypes.h:70
@ BVDataImpl
Represents BVDataPTAImpl.
Definition PTATY.h:42
@ CondImpl
Represents CondPTAImpl.
Definition PTATY.h:43
Set< NodeID > NodeSet
Definition GeneralType.h:87
PTATY
Pointer analysis type list.
Definition PTATY.h:9
@ Cxt_DDA
context sensitive DDA
Definition PTATY.h:32
@ PathS_DDA
Guarded value-flow DDA.
Definition PTATY.h:31
u32_t NodeID
Definition GeneralType.h:76
AliasResult
Definition SVFType.h:619
@ MustAlias
Definition SVFType.h:622
@ MayAlias
Definition SVFType.h:621
@ NoAlias
Definition SVFType.h:620
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:76