link-grammar-5.8.0/link-grammar/parse/count.c
/**
 * psuedocount is used to check to see if a parse is even possible,
 * so that we don't waste cpu time performing an actual count, only
 * to discover that it is zero.
 *
 * Returns false if and only if this entry is in the hash table
 * with a count value of 0. If an entry is not in the hash table,
 * we have to assume the worst case: that the count might be non-zero,
 * and since we don't know, we return true.  However, if the entry is
 * in the hash table, and its zero, then we know, for sure, that the
 * count is zero.
 */
psuedocount is used to check to see if a parse is even possible,
so that we don't waste cpu time performing an actual count, only
to discover that it is zero.

Returns false if and only if this entry is in the hash table
with a count value of 0. If an entry is not in the hash table,
we have to assume the worst case: that the count might be non-zero,
and since we don't know, we return true.  However, if the entry is
in the hash table, and its zero, then we know, for sure, that the
count is zero.
psuedocount is used to check to see if a parse is even possible so that we don ' t waste cpu time performing an actual count only to discover that it is zero . Returns false if and only if this entry is in the hash table with a count value of 0 . If an entry is not in the hash table we have to assume the worst case : that the count might be non - zero and since we don ' t know we return true . However if the entry is in the hash table and its zero then we know for sure that the count is zero .
static Count_bin pseudocount(count_context_t * ctxt,
                       int lw, int rw, Connector *le, Connector *re,
                       unsigned int null_count)
{
	Count_bin * count = table_lookup(ctxt, lw, rw, le, re, null_count);
	if (NULL == count) return count_unknown;
	return *count;
}
static Count_bin pseudocount ( count_context_t * ctxt , int lw , int rw , Connector * le , Connector * re , unsigned int null_count ) { Count_bin * count = table_lookup ( ctxt , lw , rw , le , re , null_count ) ; if ( NULL == count ) return count_unknown ; return * count ; }
psuedocount is used to check to see if a parse is even possible,
 so that we don't waste cpu time performing an actual count, only
 to discover that it is zero.
psuedocount is used to check to see if a parse is even possible so that we don ' t waste cpu time performing an actual count only to discover that it is zero .