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

Method match

src/Variable.cpp:245–252  ·  view source on GitHub ↗

* a struct variable "matches" it's field variable */

Source from the content-addressed store, hash-verified

243 * a struct variable "matches" it's field variable
244 */
245bool
246Variable::match(const Variable* v) const
247{
248 if (type && v->type && type->is_aggregate()) {
249 return (this == v) || has_field_var(v);
250 }
251 return this == v;
252}
253
254int
255Variable::get_seq_num(void) const

Callers 3

find_variable_in_setFunction · 0.45
loose_matchMethod · 0.45
is_visible_localMethod · 0.45

Calls 1

is_aggregateMethod · 0.45

Tested by

no test coverage detected