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

Method has_field_var

src/Variable.cpp:292–304  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// check if field variables exists in this struct ************************************************************************/

Source from the content-addressed store, hash-verified

290 /* check if field variables exists in this struct
291 ************************************************************************/
292bool Variable::has_field_var(const Variable* v) const
293{
294 if (type->is_aggregate()) {
295 const Variable* tmp = v;
296 while (tmp) {
297 if (tmp == this) {
298 return true;
299 }
300 tmp = tmp->field_var_of;
301 }
302 }
303 return false;
304}
305
306// return true if the var is inside a packed aggregate,
307bool

Callers

nothing calls this directly

Calls 1

is_aggregateMethod · 0.45

Tested by

no test coverage detected