68 |
int count = 0; |
int count = 0; |
69 |
short *symbol_count = XCALLOC (short, nsyms + nuseless_nonterminals); |
short *symbol_count = XCALLOC (short, nsyms + nuseless_nonterminals); |
70 |
|
|
71 |
for (i = 0; ritem[i]; ++i) |
for (i = 0; i < nritems; ++i) |
72 |
if (ritem[i] > 0) |
if (ritem[i] >= 0) |
73 |
{ |
{ |
74 |
count++; |
count++; |
75 |
symbol_count[ritem[i]]++; |
symbol_count[ritem[i]]++; |
152 |
for (i = 0; i < nitemset; ++i) |
for (i = 0; i < nitemset; ++i) |
153 |
{ |
{ |
154 |
int symbol = ritem[itemset[i]]; |
int symbol = ritem[itemset[i]]; |
155 |
if (symbol > 0) |
if (symbol >= 0) |
156 |
{ |
{ |
157 |
if (!kernel_size[symbol]) |
if (!kernel_size[symbol]) |
158 |
{ |
{ |