+\f
+void
+print_results (void)
+{
+ state_number i;
+
+ /* We used to use just .out if SPEC_NAME_PREFIX (-p) was used, but
+ that conflicts with Posix. */
+ FILE *out = xfopen (spec_verbose_file, "w");
+
+ reduce_output (out);
+ grammar_rules_partial_print (out,
+ _("Rules useless in parser due to conflicts"),
+ rule_useless_in_parser_p);
+ conflicts_output (out);
+
+ print_grammar (out);
+
+ /* If the whole state item sets, not only the kernels, are wanted,
+ `closure' will be run, which needs memory allocation/deallocation. */
+ if (report_flag & report_itemsets)
+ new_closure (nritems);
+ /* Storage for print_reductions. */
+ no_reduce_set = bitset_create (ntokens, BITSET_FIXED);
+ for (i = 0; i < nstates; i++)
+ print_state (out, states[i]);
+ bitset_free (no_reduce_set);
+ if (report_flag & report_itemsets)
+ free_closure ();
+
+ xfclose (out);
+}