+/*-------------------------------------------------------------------.
+| Return the state such these TRANSITIONS contain a shift/goto to it |
+| on S. Abort if none found. |
+`-------------------------------------------------------------------*/
+
+state *
+transitions_to (transitions *shifts, symbol_number s)
+{
+ int j;
+ for (j = 0; j < shifts->num; j++)
+ if (TRANSITION_SYMBOL (shifts, j) == s)
+ return shifts->states[j];
+ abort ();
+}