Compare commits
64 commits
8efea81c75
...
2997932c62
| Author | SHA1 | Date | |
|---|---|---|---|
| 2997932c62 | |||
| 8e9f4dc12d | |||
| 983d7e046a | |||
| b93fb41af2 | |||
| 7adbe2f385 | |||
| 932f670f86 | |||
| 980dc72678 | |||
| 4f169ad632 | |||
| 1deb2ccb02 | |||
| a2669a160f | |||
| 4dce729d22 | |||
| 0e2ebef709 | |||
| e29aa30c2d | |||
| d326c17456 | |||
| 9faef36529 | |||
| 0a89377400 | |||
| 975ea0c52a | |||
| 84d3977c0d | |||
| f5574547ce | |||
| 24b71fd8c7 | |||
| 2aa7685611 | |||
| e09f908b89 | |||
| f37be92903 | |||
| bc61b7c30b | |||
| 450f38f74d | |||
| 7c529eddfd | |||
| 31376f804f | |||
| 2ae5dbb727 | |||
| 728faeba22 | |||
| 38fc0c94f3 | |||
| 7ca9910862 | |||
| 7731c7ee54 | |||
| 0b3f4e5b91 | |||
| ad3896e7a3 | |||
| bbb0c69911 | |||
| 9953cacbc6 | |||
| 13f953c27f | |||
| bc0ef4d5b0 | |||
| 9b76e44b97 | |||
| 3e451c408b | |||
| af91b0f376 | |||
| 2e2a3b4544 | |||
| e4f00229d7 | |||
| d29c1413bc | |||
| e7df1ac42e | |||
| bb7a30f1fd | |||
| aba8c9d4fc | |||
| 7e13cb18e8 | |||
| 9fd33667c0 | |||
| b1589b293a | |||
| bdf9762498 | |||
| 29428bb9f0 | |||
| 531fc4c550 | |||
| 8a6e8fb1d7 | |||
| f2a3ecab0d | |||
| 1b393aefad | |||
| e7cd4f2bc4 | |||
| 4ab97a6841 | |||
| cc32f35f45 | |||
| edb4645a6a | |||
| 0e279960a2 | |||
| e01d9237b2 | |||
| 16dda0d292 | |||
| 28416cf82c |
5 changed files with 15 additions and 104 deletions
|
|
@ -231,14 +231,7 @@ parse_opt_post(int key, char* arg, struct argp_state*)
|
||||||
if (arg)
|
if (arg)
|
||||||
type = XARGMATCH(key == 'P' ? "--parity" : "--colored-parity",
|
type = XARGMATCH(key == 'P' ? "--parity" : "--colored-parity",
|
||||||
arg, parity_args, parity_types);
|
arg, parity_args, parity_types);
|
||||||
else if (!(type & spot::postprocessor::Parity))
|
else
|
||||||
// If no argument was given, we just require Parity.
|
|
||||||
// However, if a Parity condition was already set before,
|
|
||||||
// don't overwrite it. This way if someone mistakenly write
|
|
||||||
// `--parity='max even' --colored` without realizing that
|
|
||||||
// `--colored` is just the abbreviation for
|
|
||||||
// `--colored-parity=...` with the default argument, we
|
|
||||||
// won't reset the 'max even' setting.
|
|
||||||
type = spot::postprocessor::Parity;
|
type = spot::postprocessor::Parity;
|
||||||
if (key == 'p')
|
if (key == 'p')
|
||||||
colored = spot::postprocessor::Colored;
|
colored = spot::postprocessor::Colored;
|
||||||
|
|
|
||||||
|
|
@ -91,15 +91,17 @@ static const argp_option options[] =
|
||||||
/**************************************************/
|
/**************************************************/
|
||||||
{ nullptr, 0, nullptr, 0, "Fine tuning:", 10 },
|
{ nullptr, 0, nullptr, 0, "Fine tuning:", 10 },
|
||||||
{ "algo", OPT_ALGO, "sd|ds|ps|lar|lar.old|acd", 0,
|
{ "algo", OPT_ALGO, "sd|ds|ps|lar|lar.old|acd", 0,
|
||||||
"choose the algorithm for synthesis:\n"
|
"choose the algorithm for synthesis:"
|
||||||
" sd: translate to TGBA, split, determinize\n"
|
" \"sd\": translate to tgba, split, then determinize;"
|
||||||
" ds: translate to TGBA, determinize, split\n"
|
" \"ds\": translate to tgba, determinize, then split;"
|
||||||
" ps: translate to DPA, split\n"
|
" \"ps\": translate to dpa, then split;"
|
||||||
" lar: translate to a deterministic TELA, convert to DPA"
|
" \"lar\": translate to a deterministic automaton with arbitrary"
|
||||||
" with LAR, split (default)\n"
|
" acceptance condition, then use LAR to turn to parity,"
|
||||||
" lar.old: old version of LAR, for benchmarking;\n"
|
" then split (default);"
|
||||||
" acd: translate to a deterministic TELA, convert to DPA"
|
" \"lar.old\": old version of LAR, for benchmarking;"
|
||||||
" with ACD, split", 0 },
|
" \"acd\": translate to a deterministic automaton with arbitrary"
|
||||||
|
" acceptance condition, then use ACD to turn to parity,"
|
||||||
|
" then split.\n", 0 },
|
||||||
{ "bypass", OPT_BYPASS, "yes|no", 0,
|
{ "bypass", OPT_BYPASS, "yes|no", 0,
|
||||||
"whether to try to avoid to construct a parity game "
|
"whether to try to avoid to construct a parity game "
|
||||||
"(enabled by default)", 0},
|
"(enabled by default)", 0},
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,6 @@ logic (LTL & PSL).
|
||||||
%{_bindir}/ltldo
|
%{_bindir}/ltldo
|
||||||
%{_bindir}/ltlfilt
|
%{_bindir}/ltlfilt
|
||||||
%{_bindir}/ltlgrind
|
%{_bindir}/ltlgrind
|
||||||
%{_bindir}/ltlmix
|
|
||||||
%{_bindir}/ltlsynt
|
%{_bindir}/ltlsynt
|
||||||
%{_bindir}/randaut
|
%{_bindir}/randaut
|
||||||
%{_bindir}/randltl
|
%{_bindir}/randltl
|
||||||
|
|
@ -53,12 +52,11 @@ logic (LTL & PSL).
|
||||||
%{_mandir}/man1/ltldo.1*
|
%{_mandir}/man1/ltldo.1*
|
||||||
%{_mandir}/man1/ltlfilt.1*
|
%{_mandir}/man1/ltlfilt.1*
|
||||||
%{_mandir}/man1/ltlgrind.1*
|
%{_mandir}/man1/ltlgrind.1*
|
||||||
%{_mandir}/man1/ltlmix.1*
|
|
||||||
%{_mandir}/man1/ltlsynt.1*
|
%{_mandir}/man1/ltlsynt.1*
|
||||||
%{_mandir}/man1/randaut.1*
|
%{_mandir}/man1/randaut.1*
|
||||||
%{_mandir}/man1/randltl.1*
|
%{_mandir}/man1/randltl.1*
|
||||||
%{_mandir}/man7/spot.7*
|
|
||||||
%{_mandir}/man7/spot-x.7*
|
%{_mandir}/man7/spot-x.7*
|
||||||
|
%{_mandir}/man7/spot.7*
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS COPYING NEWS README THANKS
|
%doc AUTHORS COPYING NEWS README THANKS
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,19 +26,7 @@ for x in P 'Pmin odd' 'Pmax even' p 'pmin odd' 'pmax even'; do
|
||||||
autfilt --name=%M --high "-$x" >>res2
|
autfilt --name=%M --high "-$x" >>res2
|
||||||
ltl2tgba -D "-$x" FGa 'GFa & GFb' '(p0 W XXGp0) & GFp1 & FGp2' >>res3
|
ltl2tgba -D "-$x" FGa 'GFa & GFb' '(p0 W XXGp0) & GFp1 & FGp2' >>res3
|
||||||
ltl2tgba FGa 'GFa & GFb' '(p0 W XXGp0) & GFp1 & FGp2' |
|
ltl2tgba FGa 'GFa & GFb' '(p0 W XXGp0) & GFp1 & FGp2' |
|
||||||
autfilt -D --name=%M --high "-$x" >>res4
|
autfilt -D --name=%M --high "-$x" >>res4
|
||||||
(
|
|
||||||
## --colored is normally short for --colored-parity=any
|
|
||||||
## But in case someone types something like
|
|
||||||
## --parity='max odd' --colored
|
|
||||||
## let's make sure we handle it like --colored-parity='max odd'.
|
|
||||||
echo "=== -$x ==="
|
|
||||||
ltl2tgba FGa 'GFa & GFb' '(p0 W XXGp0) & GFp1 & FGp2' \
|
|
||||||
"-$x" --stats='%[]g'
|
|
||||||
echo "=== -$x --colored ==="
|
|
||||||
ltl2tgba FGa 'GFa & GFb' '(p0 W XXGp0) & GFp1 & FGp2' \
|
|
||||||
"-$x" --colored --stats='%[]g'
|
|
||||||
) >> res5
|
|
||||||
done
|
done
|
||||||
|
|
||||||
cat >expected<<EOF
|
cat >expected<<EOF
|
||||||
|
|
@ -1435,58 +1423,6 @@ State: 4
|
||||||
EOF
|
EOF
|
||||||
diff expected4 res4
|
diff expected4 res4
|
||||||
|
|
||||||
cat >expected5 <<EOF
|
|
||||||
=== -P ===
|
|
||||||
co-Buchi
|
|
||||||
Buchi
|
|
||||||
Rabin 1
|
|
||||||
=== -P --colored ===
|
|
||||||
parity max even 2
|
|
||||||
Streett 1
|
|
||||||
parity min odd 3
|
|
||||||
=== -Pmin odd ===
|
|
||||||
co-Buchi
|
|
||||||
Rabin 1
|
|
||||||
Rabin 1
|
|
||||||
=== -Pmin odd --colored ===
|
|
||||||
Rabin 1
|
|
||||||
parity min odd 3
|
|
||||||
parity min odd 3
|
|
||||||
=== -Pmax even ===
|
|
||||||
parity max even 2
|
|
||||||
Buchi
|
|
||||||
parity max even 2
|
|
||||||
=== -Pmax even --colored ===
|
|
||||||
parity max even 2
|
|
||||||
parity max even 3
|
|
||||||
parity max even 4
|
|
||||||
=== -p ===
|
|
||||||
parity max even 2
|
|
||||||
Streett 1
|
|
||||||
parity min odd 3
|
|
||||||
=== -p --colored ===
|
|
||||||
parity max even 2
|
|
||||||
Streett 1
|
|
||||||
parity min odd 3
|
|
||||||
=== -pmin odd ===
|
|
||||||
Rabin 1
|
|
||||||
parity min odd 3
|
|
||||||
parity min odd 3
|
|
||||||
=== -pmin odd --colored ===
|
|
||||||
Rabin 1
|
|
||||||
parity min odd 3
|
|
||||||
parity min odd 3
|
|
||||||
=== -pmax even ===
|
|
||||||
parity max even 2
|
|
||||||
parity max even 3
|
|
||||||
parity max even 4
|
|
||||||
=== -pmax even --colored ===
|
|
||||||
parity max even 2
|
|
||||||
parity max even 3
|
|
||||||
parity max even 4
|
|
||||||
EOF
|
|
||||||
diff expected5 res5
|
|
||||||
|
|
||||||
ltlcross 'ltl2tgba -P' 'ltl2tgba -P"odd max"' 'ltl2tgba -P"even min"' \
|
ltlcross 'ltl2tgba -P' 'ltl2tgba -P"odd max"' 'ltl2tgba -P"even min"' \
|
||||||
'ltl2tgba -p' 'ltl2tgba -p"odd max"' 'ltl2tgba -p"even min"' \
|
'ltl2tgba -p' 'ltl2tgba -p"odd max"' 'ltl2tgba -p"even min"' \
|
||||||
-f FGa -f 'GFa&GFb' -f 'GF(a <-> XXXb)' -f '(p0 W XXGp0) & GFp1 & FGp2'
|
-f FGa -f 'GFa&GFb' -f 'GF(a <-> XXXb)' -f '(p0 W XXGp0) & GFp1 & FGp2'
|
||||||
|
|
|
||||||
|
|
@ -52,11 +52,6 @@ do
|
||||||
echo "bin/man/$manpage is not listed in man/Makefile.am"
|
echo "bin/man/$manpage is not listed in man/Makefile.am"
|
||||||
exit_status=2
|
exit_status=2
|
||||||
fi
|
fi
|
||||||
if ! grep -q "%{_mandir}/man./$manpage\*\$" $top_srcdir/spot.spec.in;
|
|
||||||
then
|
|
||||||
echo "$manpage is not listed in spot.spec.in"
|
|
||||||
exit_status=2
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $binary in
|
case $binary in
|
||||||
|
|
@ -79,7 +74,7 @@ do
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# All tools
|
# All man pages
|
||||||
case $manpage in
|
case $manpage in
|
||||||
*.1)
|
*.1)
|
||||||
if ! test -f $top_srcdir/doc/org/$binary.org; then
|
if ! test -f $top_srcdir/doc/org/$binary.org; then
|
||||||
|
|
@ -99,20 +94,8 @@ do
|
||||||
echo "$binary does not occur in doc/org/arch.tex"
|
echo "$binary does not occur in doc/org/arch.tex"
|
||||||
exit_status=2
|
exit_status=2
|
||||||
fi
|
fi
|
||||||
if ! grep -q "%{_bindir}/$binary\$" $top_srcdir/spot.spec.in; then
|
|
||||||
echo "$binary does is not listed in spot.spec.in";
|
|
||||||
exit_status=2
|
|
||||||
fi
|
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if test -f $top_srcdir/bin/.gitignore; then
|
|
||||||
if ! grep -q "^$binary\$" $top_srcdir/bin/.gitignore; then
|
|
||||||
echo "$binary is not listed in bin/.gitignore"
|
|
||||||
exit_status=2
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check --help text. Set a high rmargin to workaround some
|
# Check --help text. Set a high rmargin to workaround some
|
||||||
# bug in argp where an extra line it sometimes added if the end
|
# bug in argp where an extra line it sometimes added if the end
|
||||||
# of the document string fall right into the rmargin.
|
# of the document string fall right into the rmargin.
|
||||||
|
|
@ -124,7 +107,6 @@ do
|
||||||
echo "bin/$binary --help has options after blank line;" \
|
echo "bin/$binary --help has options after blank line;" \
|
||||||
"missing section header?"
|
"missing section header?"
|
||||||
cat help-err
|
cat help-err
|
||||||
exit_status=2
|
|
||||||
fi
|
fi
|
||||||
rm -f help-$binary.tmp help-err
|
rm -f help-$binary.tmp help-err
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue