svf-lib 1.0.2637 → 1.0.2638
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -201,6 +201,16 @@ public:
|
|
|
201
201
|
/// Similar to getPts, this also needs to be implemented in child classes.
|
|
202
202
|
virtual const NodeSet& getRevPts(NodeID nodeId) = 0;
|
|
203
203
|
|
|
204
|
+
/// Convenience bool wrappers: return true if the two operands may/must/partial alias
|
|
205
|
+
inline bool mayAlias(const SVFVar* V1, const SVFVar* V2)
|
|
206
|
+
{
|
|
207
|
+
return alias(V1, V2)!= AliasResult::NoAlias;
|
|
208
|
+
}
|
|
209
|
+
inline bool mayAlias(NodeID node1, NodeID node2)
|
|
210
|
+
{
|
|
211
|
+
return alias(node1, node2)!= AliasResult::NoAlias;
|
|
212
|
+
}
|
|
213
|
+
|
|
204
214
|
/// Print targets of a function pointer
|
|
205
215
|
void printIndCSTargets(const CallICFGNode* cs, const FunctionSet& targets);
|
|
206
216
|
|
|
@@ -221,6 +221,12 @@ public:
|
|
|
221
221
|
/// Interface expose to users of our pointer analysis, given two pts
|
|
222
222
|
virtual AliasResult alias(const PointsTo& pts1, const PointsTo& pts2);
|
|
223
223
|
|
|
224
|
+
/// Convenience bool wrappers: return true if the two operands may/must/partial alias
|
|
225
|
+
inline bool mayAlias(const PointsTo& pts1, const PointsTo& pts2)
|
|
226
|
+
{
|
|
227
|
+
return alias(pts1, pts2)!= AliasResult::NoAlias;
|
|
228
|
+
}
|
|
229
|
+
|
|
224
230
|
/// dump and debug, print out conditional pts
|
|
225
231
|
//@{
|
|
226
232
|
void dumpCPts() override
|
|
Binary file
|