ltlsynt: fix usage for --dot's argument

* bin/ltlsynt.cc (dispatch_print_hoa): Pass the right argument to
print_dot.
* tests/core/ltlsynt.test: Test it.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2024-09-02 17:26:42 +02:00
parent 8eec295e23
commit a8a0a1973e
3 changed files with 8 additions and 2 deletions

2
NEWS
View file

@ -81,6 +81,8 @@ New in spot 2.12.0.dev (not yet released)
confused by games with "parity min" acceptance using transition confused by games with "parity min" acceptance using transition
with several colors (a rather uncommon situation). with several colors (a rather uncommon situation).
- "ltlsynt ... --print-game --dot=ARGS" was ignoring ARGS.
New in spot 2.12 (2024-05-16) New in spot 2.12 (2024-05-16)
Build: Build:

View file

@ -324,7 +324,7 @@ namespace
rs->patch_game(game); rs->patch_game(game);
if (opt_dot) if (opt_dot)
spot::print_dot(std::cout, game, opt_print_hoa_args); spot::print_dot(std::cout, game, opt_dot_arg);
else if (opt_print_pg) else if (opt_print_pg)
spot::print_pg(std::cout, game); spot::print_pg(std::cout, game);
else else

View file

@ -1101,7 +1101,11 @@ diff outx exp
# Test --dot and --hide-status # Test --dot and --hide-status
ltlsynt -f 'i <-> Fo' --ins=i --aiger --dot | grep arrowhead=dot ltlsynt -f 'i <-> Fo' --ins=i --aiger --dot | grep arrowhead=dot
ltlsynt -f 'i <-> Fo' --ins=i --print-game-hoa --dot | grep 'shape="diamond"' ltlsynt -f 'i <-> Fo' --ins=i --print-game-hoa --dot > out
grep 'shape="diamond"' out
grep 'Inf(0)' out
ltlsynt -f 'i <-> Fo' --ins=i --print-game-hoa --dot=bar > out
grep 'label=<Inf(<font' out
ltlsynt -f 'i <-> Fo' --ins=i --dot --hide-status > res ltlsynt -f 'i <-> Fo' --ins=i --dot --hide-status > res
cat >exp <<EOF cat >exp <<EOF
digraph "" { digraph "" {