Commit graph

24 commits

Author SHA1 Message Date
Alexandre Duret-Lutz
f3ef9de0be rename ltlcheck as ltlcross
* src/bin/ltlcheck.cc, src/bin/man/ltlcheck.x,
src/tgbatest/ltlcheck.test, src/tgbatest/ltlcheck2.test: Rename as ...
* src/bin/ltlcross.cc, src/bin/man/ltlcross.x,
src/tgbatest/ltlcross.test, src/tgbatest/ltlcross2.test: ... these.
* NEWS, src/bin/Makefile.am, src/bin/man/Makefile.am,
src/tgbatest/Makefile.am: Adjust.
2012-10-21 13:23:02 +02:00
Alexandre Duret-Lutz
0fc3c6bcff Add support for printing LTL formulas using Wring's syntax.
* src/ltlvisit/tostring.hh, src/ltlvisit/tostring.cc
(to_wring_string): New option.
* src/bin/common_output.hh, src/bin/common_output.cc:
Add support for a --wring option.
* src/bin/ltlcheck.cc: Add %w and %W format specifiers.
2012-10-20 13:40:33 +02:00
Alexandre Duret-Lutz
b8ed85a30d bin: Adjust version display and help options.
In particular, this get rid of the ugly -? option that argp adds by
default, and we also remove -V so that we can use it for something
else later.

* src/bin/common_setup.cc, src/bin/common_setup.hh (misc_argp):
Provide support for --help/--version/--usage output, replacing argp's
default builting version.
* src/bin/genltl.cc, src/bin/ltl2tgba.cc, src/bin/ltl2tgta.cc,
src/bin/ltlcheck.cc, src/bin/ltlfilt.cc, src/bin/randltl.cc:
Call argp_parse() with ARGP_NO_HELP, and use misc_argp instead.
2012-10-19 22:58:38 +02:00
Alexandre Duret-Lutz
0bdfd9c72c * src/bin/ltlcheck.cc: Cleanup temporary files on ^C. 2012-10-19 16:17:53 +02:00
Alexandre Duret-Lutz
d9ceb4adc4 bin: plug several memory leaks
* src/bin/ltl2tgba.cc, src/bin/ltl2tgta.cc: Destroy the translated
formulas.
* src/bin/ltlcheck.cc, src/bin/ltlfilt.cc: Free the unicity table on
exit.
2012-10-15 20:54:28 +02:00
Alexandre Duret-Lutz
9f1d369563 * src/bin/ltlcheck.cc: Add a --no-checks option. 2012-10-15 20:41:44 +02:00
Alexandre Duret-Lutz
2977635ae5 ltlcheck: do not check duplicate formulas
* src/bin/ltlcheck.cc: filter duplicate formulas, unless the
new --allow-dups option is used.
2012-10-15 18:21:38 +02:00
Alexandre Duret-Lutz
b2a5d5aa62 ltlcheck: add options --json and --csv
* src/bin/ltlcheck.cc: Add option --json and --csv.
* src/bin/man/ltlcheck.x: Adjust examples.
* src/tgbatest/ltlcheck.test: Do not output any statistic.
* src/tgbatest/ltlcheck2.test: Output both JSON and CSV stats.
2012-10-15 17:31:43 +02:00
Alexandre Duret-Lutz
2fe8f025e3 ltlcheck: add a "Sanity check..." message
* src/bin/ltlcheck.cc: Here.
2012-10-14 19:08:03 +02:00
Alexandre Duret-Lutz
d1871d87dc * src/bin/ltlcheck.cc: Diagnose missing output format. 2012-10-14 18:29:34 +02:00
Alexandre Duret-Lutz
8e9002947e ltlcheck: do not ignore ^C during sanity checks
* src/bin/ltlcheck.cc (sig_handler): Exit when receiving the signal.
2012-10-14 18:27:50 +02:00
Alexandre Duret-Lutz
7b6337f456 ltlcheck: Add a man page.
* src/bin/man/ltlcheck.x: New file.
* src/bin/man/Makefile.am: Add it.
* src/bin/ltlcheck.cc: Arrange help text.
2012-10-14 17:42:25 +02:00
Alexandre Duret-Lutz
b2de0136b2 Add a has_lbt_atomic_props() method to LTL formulas.
* src/ltlast/formula.hh (has_lbt_atomic_props): New method.
* src/ltlast/formula.cc (printprops): Display it.
* src/ltlast/atomic_prop.cc: Update it.
* src/bin/ltlcheck.cc, src/bin/genltl.cc: Use it.
* doc/tl/tl.tex: Menton has_lbt_atomic_props().
2012-10-14 17:42:25 +02:00
Alexandre Duret-Lutz
f40925f67b ltlcheck: disable timeout handling when kill() or alarm() are missing
* configure.ac: Check for kill and alarm.
* src/bin/ltlcheck.cc: Disable timeout code when kill or alarm are
missing.  Recognize the --timeout option, but display a warning.
2012-10-14 17:42:25 +02:00
Alexandre Duret-Lutz
e46ae2799f ltlcheck: use kill instead of killpg
kill(-x,y) is more portable than killpg(x,y)

* src/bin/ltlcheck.cc: Use kill.
2012-10-14 09:12:06 +02:00
Alexandre Duret-Lutz
6167526548 * src/bin/ltlcheck.cc: Fix exit status and error reporting. 2012-10-13 13:36:40 +02:00
Alexandre Duret-Lutz
d0a04f9410 ltlcheck: Add a timeout option.
* src/bin/ltlcheck.cc: Add option -T and machinery for signal handling.
2012-10-13 13:36:40 +02:00
Alexandre Duret-Lutz
82babb9d38 ltlcheck: Record translation time.
* lib/gethrxtime.h, lib/xtime.h: Add extern "C".
* src/bin/Makefile.am (ltlcheck_LDADD): Use LIB_GETHRXTIME.
* src/bin/ltlcheck.cc: Use gethrxtime() to record translation time.
2012-10-13 13:36:40 +02:00
Alexandre Duret-Lutz
d7e8684d38 * src/bin/ltlcheck.cc: Improve example in --help. 2012-10-13 13:36:40 +02:00
Alexandre Duret-Lutz
122d34cce4 * src/bin/ltlcheck.cc: Compute statistics and print them in JSON. 2012-10-13 13:36:40 +02:00
Alexandre Duret-Lutz
e99fdfb650 Pick the most readable format available for displaying formulas.
* src/bin/ltlcheck.cc (translator_runner::formula): New function.
(processor::process_formula): Use it.
2012-10-13 13:36:40 +02:00
Alexandre Duret-Lutz
f6dc6412d3 Use the spot::formater class in ltlcheck to format output commands.
* src/misc/formater.hh (printable_value): Add more accessors.
* src/bin/ltlcheck.cc: Use the formater class to factor the %-expansion
loop, and reuse filenames (such as %F, %S, and %L) between executions
on the same formula.
2012-10-13 13:36:40 +02:00
Alexandre Duret-Lutz
62af20d39f * src/bin/ltlcheck.cc: Add support for LBTT's output as %T. 2012-10-13 13:36:40 +02:00
Alexandre Duret-Lutz
df743e5057 Preliminary implementation of an LBTT clone.
* src/bin/ltlcheck.cc: New file.
* src/bin/Makefile.am: Add it.
2012-10-13 13:36:39 +02:00