cex: label all the derivations by their initial action
commitb8c5e5609ffdb1f27aacab2209b6517817dce79d
authorAkim Demaille <akim.demaille@gmail.com>
Mon, 20 Jul 2020 05:14:50 +0000 (20 07:14 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Mon, 20 Jul 2020 05:36:38 +0000 (20 07:36 +0200)
tree11ed59e705992fccdaa19c2e44edac7c1f802439
parentb81229e1f93999c77887422c0795407154876823
cex: label all the derivations by their initial action

From

    input.y: warning: reduce/reduce conflict on token $end [-Wcounterexamples]
      Example: A b .
      First derivation
        a
        `-> A b .
      Second derivation
        a
        `-> A b
              `-> b .

to

    input.y: warning: reduce/reduce conflict on token $end [-Wcounterexamples]
      Example: A b .
      First reduce derivation
        a
        `-> A b .
      Second reduce derivation
        a
        `-> A b
              `-> b .

* src/counterexample.c (print_counterexample): here.
Compute the width of the labels to properly align the values.
* tests/conflicts.at, tests/counterexample.at, tests/diagnostics.at,
* tests/report.at: Adjust.
src/counterexample.c
tests/conflicts.at
tests/counterexample.at
tests/diagnostics.at
tests/report.at