Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pybind/WPA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ void bind_andersen_base(py::module& m) {
base.dumpPts(id, pts);
}, py::arg("id"), py::arg("pts"), "Dump points-to information")
.def("alias", [](PublicAndersen& base, NodeID id1, NodeID id2) {
return base.alias(id1, id2) != AliasResult::NoAlias;
}, py::arg("id1"), py::arg("id2"), "Return true if two nodes may, must, or partially alias")
.def("aliasKind", [](PublicAndersen& base, NodeID id1, NodeID id2) {
return base.alias(id1, id2);
}, py::arg("id1"), py::arg("id2"), "Return the detailed alias classification enum")
.def("mayAlias", [](PublicAndersen& base, NodeID id1, NodeID id2) {
return static_cast<PointerAnalysis&>(base).mayAlias(id1, id2);
}, py::arg("id1"), py::arg("id2"), "Return true if two nodes may, must, or partially alias")
.def("isWorklistEmpty", &PublicAndersen::isWorklistEmpty, "Check if the worklist is empty")
.def("popFromWorklist", [](PublicAndersen& base) {
return base.popFromWorklist();
Expand Down
4 changes: 2 additions & 2 deletions pysvf/pysvf.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2067,8 +2067,8 @@ class AndersenBase:
def unionPts(self, id: int, ptd: int) -> bool: ...
def unionPts2(self, id: int, ptd: 'PointsTo') -> bool: ...
def dumpPts(self, id: int, pts: 'PointsTo') -> None: ...
def alias(self, id1: int, id2: int) -> bool: ...
def aliasKind(self, id1: int, id2: int) -> Any: ...
def alias(self, id1: int, id2: int) -> Any: ...
def mayAlias(self, id1: int, id2: int) -> bool: ...
def isWorklistEmpty(self) -> bool: ...
def popFromWorklist(self) -> int: ...
def getPts(self, id: int) -> 'PointsTo': ...
Expand Down
Loading