mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 08:43:03 +00:00
cex: also include in the report on --report=counterexamples
And let --report=all include the counterexamples. * src/getargs.h, src/getargs.c (report_cex): New. * src/main.c: Compute counterexamples when -rcex is specified. * src/print.c: Include the counterexamples when -rcex is specified. * tests/conflicts.at, tests/existing.at, tests/local.at: Adjust.
This commit is contained in:
@@ -356,7 +356,9 @@ print_state (FILE *out, const state *s)
|
||||
fputc ('\n', out);
|
||||
fputs (s->solved_conflicts, out);
|
||||
}
|
||||
if (warning_is_enabled (Wcounterexamples) && has_conflicts (s))
|
||||
if (has_conflicts (s)
|
||||
&& (report_flag & report_cex
|
||||
|| warning_is_enabled (Wcounterexamples)))
|
||||
{
|
||||
fputc ('\n', out);
|
||||
counterexample_report_state (s, out, " ");
|
||||
|
||||
Reference in New Issue
Block a user