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

Method is_nonreadable_field

src/FactUnion.cpp:187–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187bool
188FactUnion::is_nonreadable_field(const Variable *v, const std::vector<const Fact*>& facts)
189{
190 if (v->is_inside_union_field()) {
191 for (; v && !v->is_union_field(); v = v->field_var_of) {
192 /* Empty */
193 }
194 assert(v->is_union_field());
195 FactUnion tmp(v->field_var_of, v->get_field_id());
196 const FactUnion* fu = dynamic_cast<const FactUnion*>(find_related_fact(facts, &tmp));
197 if (fu==NULL || !tmp.imply(*fu)) {
198 return true;
199 }
200 }
201 return false;
202}
203
204bool
205FactUnion::equal(const Fact& f) const

Callers

nothing calls this directly

Calls 5

find_related_factFunction · 0.85
is_inside_union_fieldMethod · 0.80
is_union_fieldMethod · 0.80
get_field_idMethod · 0.80
implyMethod · 0.45

Tested by

no test coverage detected