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

Method merge_pointees_of_pointer

src/FactPointTo.cpp:706–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704}
705
706std::vector<const Variable*>
707FactPointTo::merge_pointees_of_pointer(const Variable* ptr, int indirect, const std::vector<const Fact*>& facts)
708{
709 vector<const Variable*> tmp;
710 tmp.push_back(ptr);
711 // recursively trace the pointer(s) to find real variables they point to
712 while (indirect-- > 0) {
713 tmp = FactPointTo::merge_pointees_of_pointers(tmp, facts);
714 }
715 return tmp;
716}
717
718std::vector<const Variable*>
719FactPointTo::merge_pointees_of_pointers(const std::vector<const Variable*>& ptrs, const std::vector<const Fact*>& facts)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected