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:
parent
8eec295e23
commit
a8a0a1973e
3 changed files with 8 additions and 2 deletions
2
NEWS
2
NEWS
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 "" {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue