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

Method match

src/Type.cpp:1527–1539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1525}
1526
1527bool
1528Type::match(const Type* t, enum eMatchType mt) const
1529{
1530 switch (mt) {
1531 case eExact: return (this == t);
1532 case eConvert: return is_convertable(t);
1533 case eDereference: return is_dereferenced_from(t);
1534 case eDerefExact: return (t == this || is_dereferenced_from(t));
1535 case eFlexible: return is_derivable(t);
1536 default: break;
1537 }
1538 return false;
1539}
1540
1541// ---------------------------------------------------------------------
1542/* return true if this type can be derived from the given type

Callers 15

is_var_on_stackMethod · 0.45
choose_funcMethod · 0.45
remove_rv_factsMethod · 0.45
sanity_check_mapMethod · 0.45
non_empty_intersectionFunction · 0.45
is_var_on_stackMethod · 0.45
is_nonreadableMethod · 0.45
find_variable_scopeMethod · 0.45
save_return_factMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected