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

Method addPredBasicBlock

svf/include/Graphs/BasicBlockG.h:182–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 }
181
182 inline void addPredBasicBlock(const SVFBasicBlock* pred2)
183 {
184 // check if the edge already exists
185 for (auto edge: this->getInEdges())
186 {
187 if (edge->getSrcNode() == pred2)
188 return;
189 }
190 SVFBasicBlock* pred = const_cast<SVFBasicBlock*>(pred2);
191 BasicBlockEdge* edge = new BasicBlockEdge(pred, this);
192 this->addIncomingEdge(edge);
193 pred->addOutgoingEdge(edge);
194 this->predBBs.push_back(pred);
195 pred->succBBs.push_back(this);
196 }
197
198 inline const FunObjVar* getParent() const
199 {

Callers 1

initSVFBasicBlockMethod · 0.80

Calls 3

addIncomingEdgeMethod · 0.80
getSrcNodeMethod · 0.45
addOutgoingEdgeMethod · 0.45

Tested by

no test coverage detected