MCPcopy Create free account
hub / github.com/SVF-tools/SVF / isLocalVarInRecursiveFun

Method isLocalVarInRecursiveFun

svf/lib/MemoryModel/PointerAnalysis.cpp:133–145  ·  view source on GitHub ↗

! * Return TRUE if this node is a local variable of recursive function. */

Source from the content-addressed store, hash-verified

131 * Return TRUE if this node is a local variable of recursive function.
132 */
133bool PointerAnalysis::isLocalVarInRecursiveFun(NodeID id) const
134{
135 const BaseObjVar* baseObjVar = pag->getBaseObject(id);
136 assert(baseObjVar && "base object not found!!");
137 if(SVFUtil::isa<StackObjVar>(baseObjVar))
138 {
139 if(const FunObjVar* svffun = pag->getSVFVar(id)->getFunction())
140 {
141 return callGraphSCC->isInCycle(getCallGraph()->getCallGraphNode(svffun)->getId());
142 }
143 }
144 return false;
145}
146
147/*!
148 * Reset field sensitivity

Callers 3

performStatMethod · 0.80
isStrongUpdateMethod · 0.80
performStatMethod · 0.80

Calls 6

getBaseObjectMethod · 0.80
isInCycleMethod · 0.80
getFunctionMethod · 0.45
getSVFVarMethod · 0.45
getIdMethod · 0.45
getCallGraphNodeMethod · 0.45

Tested by

no test coverage detected