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
1 change: 1 addition & 0 deletions pybind/SVFIR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ void bind_svf_var(py::module &m) {
.def("getReturnType", &SVF::FunObjVar::getReturnType, py::return_value_policy::reference)
.def("arg_size", &SVF::FunObjVar::arg_size)
.def("getArg", &SVF::FunObjVar::getArg, py::arg("index"), py::return_value_policy::reference)
.def("getSourceLoc", &SVF::FunObjVar::getSourceLoc, py::return_value_policy::reference)

.def("dominates", [](SVF::FunObjVar* node, SVF::SVFBasicBlock* bbKey, SVF::SVFBasicBlock* bbValue) -> bool {
return node->dominate(bbKey, bbValue);
Expand Down
5 changes: 4 additions & 1 deletion pysvf/pysvf.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1093,9 +1093,12 @@ class FunObjVar(BaseObjVar):
def toString(self) -> str: ...
"""Get the string representation of the SVF variable"""

def getSourceLoc(self) -> str: ...
"""Get the source location of the function definition"""

def dominates(self, bbKey: SVFBasicBlock, bbValue: SVFBasicBlock) -> bool: ...
"""Check if one basic block dominates another"""

def postDominate(self, bbKey: SVFBasicBlock, bbValue: SVFBasicBlock) -> bool: ...
"""Check if one basic block post-dominates another"""

Expand Down
Loading