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

Method is_field_readable

src/FactUnion.cpp:293–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293bool
294FactUnion::is_field_readable(const Variable* v, int fid, const vector<const Fact*>& facts)
295{
296 assert(v->type->eType == eUnion && fid >=0 && fid < (int)(v->type->fields.size()));
297 FactUnion tmp(v, fid);
298 const FactUnion* fu = dynamic_cast<const FactUnion*>(find_related_fact(facts, &tmp));
299 return (fu && tmp.imply(*fu)) ;
300}
301
302void
303FactUnion::Output(std::ostream &out) const

Callers

nothing calls this directly

Calls 3

find_related_factFunction · 0.85
sizeMethod · 0.80
implyMethod · 0.45

Tested by

no test coverage detected