MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / getGlobalVars

Method getGlobalVars

ir/function.cpp:258–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258vector<GlobalVariable *> Function::getGlobalVars() const {
259 vector<GlobalVariable *> gvs;
260 for (auto I = constants.begin(), E = constants.end(); I != E; ++I) {
261 if (auto *gv = dynamic_cast<GlobalVariable*>(I->get()))
262 gvs.push_back(gv);
263 }
264 return gvs;
265}
266
267vector<string_view> Function::getGlobalVarNames() const {
268 vector<string_view> gvnames;

Callers 5

verifyMethod · 0.80
preprocessMethod · 0.80
runOnMethod · 0.80
verifyFunction · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected