MCPcopy Create free account
hub / github.com/csmith-project/csmith / get_referenced_ptrs

Method get_referenced_ptrs

src/Statement.cpp:327–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327void
328Statement::get_referenced_ptrs(std::vector<const Variable*>& ptrs) const
329{
330 size_t i;
331 vector<const Expression*> exprs;
332 vector<const Block*> blks;
333 get_exprs(exprs);
334 get_blocks(blks);
335 for (i=0; i<exprs.size(); i++) {
336 exprs[i]->get_referenced_ptrs(ptrs);
337 }
338 for (i=0; i<blks.size(); i++) {
339 for (size_t j=0; j<blks[i]->stms.size(); j++) {
340 const Statement* s = blks[i]->stms[j];
341 s->get_referenced_ptrs(ptrs);
342 }
343 }
344}
345
346int
347Statement::get_blk_depth(void) const

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected