common_trans: allow rewriting operators
Part of #168. * spot/misc/formater.cc: Adjust to support bracketed options. * bin/common_trans.hh, bin/common_trans.cc: Use that to support rewriting operators. * doc/org/ltlcross.org, tests/core/ltldo.test: Add some examples. * NEWS: Mention it.
This commit is contained in:
parent
925785e85f
commit
d9174593c8
6 changed files with 207 additions and 80 deletions
|
|
@ -25,10 +25,11 @@ ltldo=ltldo
|
|||
ltl2tgba=ltl2tgba
|
||||
genltl=genltl
|
||||
|
||||
run 0 $ltldo -f a -f 'a&b' -t 'echo %f,%s' >output
|
||||
run 0 $ltldo -f a -f 'a&b' -f 'a -> b' -t 'echo %f,%s,%[ei]w' >output
|
||||
cat >expected <<EOF
|
||||
a,a
|
||||
(a) & (b),(a) && (b)
|
||||
a,a,a=1
|
||||
(a) & (b),(a) && (b),(a=1) * (b=1)
|
||||
(a) -> (b),(a) -> (b),(a=0) + (b=1)
|
||||
EOF
|
||||
diff output expected
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue