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

Method has_invisible

src/FactPointTo.cpp:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93bool
94FactPointTo::has_invisible(const Statement* stm) const
95{
96 size_t i;
97 if (!var->is_visible(stm->parent)) {
98 return true;
99 }
100 for (i=0; i<point_to_vars.size(); i++) {
101 const Variable* v = point_to_vars[i];
102 if (v != null_ptr && v != garbage_ptr && v != tbd_ptr && !v->is_visible(stm->parent)) {
103 return true;
104 }
105 }
106 return false;
107}
108
109/* mark a variable in point_to_vars as dead, note
110 this create a new fact, and if that variable is

Callers

nothing calls this directly

Calls 2

is_visibleMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected