Home
last modified time | relevance | path

Searched refs:nedges (Results 1 – 3 of 3) sorted by relevance

/external/bison/src/
Dlalr.c163 goto_number nedges = 0; in initialize_F() local
182 edge[nedges++] = map_goto (stateno, sym); in initialize_F()
185 if (nedges == 0) in initialize_F()
189 reads[i] = xnmalloc (nedges + 1, sizeof reads[i][0]); in initialize_F()
190 memcpy (reads[i], edge, nedges * sizeof edge[0]); in initialize_F()
191 reads[i][nedges] = END_NODE; in initialize_F()
192 nedges = 0; in initialize_F()
229 int nedges = 0; in build_relations() local
263 edge[nedges++] = map_goto (states1[--length], in build_relations()
271 if (nedges == 0) in build_relations()
[all …]
Drelation.c133 size_t *nedges = xcalloc (n, sizeof *nedges); in relation_transpose() local
147 ++nedges[r[i][j]]; in relation_transpose()
153 if (nedges[i] > 0) in relation_transpose()
155 sp = xnmalloc (nedges[i] + 1, sizeof *sp); in relation_transpose()
156 sp[nedges[i]] = END_NODE; in relation_transpose()
168 free (nedges); in relation_transpose()
Dielr.c258 goto_number nedges = edge_counts[i]; in ielr_compute_always_follows() local
268 edge_array[nedges++] = map_goto (to_state[i], sym); in ielr_compute_always_follows()
271 if (nedges - edge_counts[i]) in ielr_compute_always_follows()
274 xnrealloc ((*edgesp)[i], nedges + 1, sizeof *(*edgesp)[i]); in ielr_compute_always_follows()
276 (nedges - edge_counts[i]) * sizeof *(*edgesp)[i]); in ielr_compute_always_follows()
277 (*edgesp)[i][nedges] = END_NODE; in ielr_compute_always_follows()