static int x_prune_match(count_context_t *ctxt, Connector *le, Connector *re, int lw, int rw) { int dist; assert(lw < rw, "prune_match() did not receive params in the natural order."); dist = ctxt->effective_dist[lw][rw]; return prune_match(dist, le, re); }
/** * Returns TRUE if c can match anything in the set S (err. the connector table ct). */ static inline bool matches_S(connector_table *ct, Connector * c, char dir) { Connector * e; unsigned int h = hash_S(c); if (dir == '-') { for (e = ct[h]; e != NULL; e = e->tableNext) { if (prune_match(e, c)) return true; } return false; } else { for (e = ct[h]; e != NULL; e = e->tableNext) { if (prune_match(c, e)) return true; } return false; } }