| 291 | } |
| 292 | |
| 293 | bool |
| 294 | FactUnion::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 | |
| 302 | void |
| 303 | FactUnion::Output(std::ostream &out) const |
nothing calls this directly
no test coverage detected