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:
Akim Demaille
2020-06-14 08:18:37 +02:00
parent d4f854e5b2
commit c35e829a76
8 changed files with 71 additions and 16 deletions

3
TODO
View File

@@ -32,6 +32,9 @@ could try to use the same color for the same rule.
Show the counterexamples. This is going to be really hard and/or painful.
Unless we play it dumb (little structure).
*** Doc
-Wcounterexamples, --report=counterexamples
** glr.cc
Get rid of global_tokens_and_yystype.