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

Method compatible

src/Variable.cpp:937–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

935}
936
937bool
938Variable::compatible(const Variable *v) const
939{
940 if (is_volatile() || v->is_volatile())
941 return false;
942 else if (this == v)
943 return true;
944 else if (CGOptions::expand_struct())
945 return (!v->is_field_var() && !is_field_var());
946 else
947 return false;
948}
949
950void
951Variable::hash(std::ostream& out) const

Callers

nothing calls this directly

Calls 2

is_field_varMethod · 0.80
is_volatileMethod · 0.45

Tested by

no test coverage detected