bin: allow %l to be used to print serial numbers
* NEWS: Mention it. * bin/autfilt.cc, bin/common_aoutput.cc, bin/common_aoutput.hh, bin/common_output.cc, bin/common_output.hh, bin/dstar2tgba.cc, bin/genaut.cc, bin/genltl.cc, bin/ltl2tgba.cc, bin/ltldo.cc, bin/ltlfilt.cc, bin/ltlgrind.cc, bin/randaut.cc, bin/randltl.cc: Implement it. * doc/org/oaut.org: Add a short example. * tests/core/serial.test: New file. * tests/Makefile.am: Add it.
This commit is contained in:
parent
8369663380
commit
61b457a37e
18 changed files with 183 additions and 41 deletions
|
|
@ -360,8 +360,7 @@ namespace
|
|||
const char* csv_prefix, const char* csv_suffix)
|
||||
{
|
||||
static long int output_count = 0;
|
||||
++output_count;
|
||||
printer.print(aut, ptimer, f, filename, loc, nullptr,
|
||||
printer.print(aut, ptimer, f, filename, loc, output_count++, nullptr,
|
||||
csv_prefix, csv_suffix);
|
||||
if (opt_max_count >= 0 && output_count >= opt_max_count)
|
||||
abort_run = true;
|
||||
|
|
@ -420,8 +419,8 @@ namespace
|
|||
aut = post.run(aut, f);
|
||||
if (best_type)
|
||||
{
|
||||
best_printer.print(nullptr, aut, f, filename, linenum, timer,
|
||||
prefix, suffix);
|
||||
best_printer.print(nullptr, aut, f, filename, linenum, 0,
|
||||
timer, prefix, suffix);
|
||||
std::string aut_stats = best_stream.str();
|
||||
if (!best_aut ||
|
||||
(strverscmp(best_stats.c_str(), aut_stats.c_str())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue