ltlfilt, ltlsynt, ltlmix: add a --part-file option
* bin/common_ioap.cc, bin/common_ioap.hh (read_part_file): New function. * bin/ltlfilt.cc, bin/ltlmix.cc, bin/ltlsynt.cc: Use it. * doc/org/ltlfilt.org, doc/org/ltlmix.org, doc/org/ltlsynt.org: Mention that new option, and improve the links to its description in ltlsynt.org. * NEWS: Mention the new option. * tests/core/ltlfilt.test, tests/core/ltlmix.test, tests/core/ltlsynt.test: Adjust test cases.
This commit is contained in:
parent
388d005635
commit
e6ebbdf65f
12 changed files with 271 additions and 138 deletions
|
|
@ -121,3 +121,19 @@ diff out expected
|
|||
ltlmix -fGa -fFz -A3,3 -C4 -n10 2> err && exit 1
|
||||
cat err
|
||||
grep 'ins.*outs' err
|
||||
|
||||
echo '.inputs a c .outputs b d ' > part.part
|
||||
ltlmix -fXa -fGb -f'c U d' --part-file=part.part -C4 -A3,3 -n10 >out
|
||||
cat >expected <<EOF
|
||||
(i1 U o2) & Go1 & (i0 U o2)
|
||||
Go1 & (i0 U o2) & Xi1 & Go2
|
||||
Go2 & (i2 U o1) & Xi2 & Go0
|
||||
Go2 & Go0 & (i1 U o0) & Xi0
|
||||
Go1 & Xi2 & Xi0 & (i0 U o0)
|
||||
Xi1 & Xi2 & Go0 & (i2 U o0)
|
||||
Xi1 & (i1 U o0) & Xi0 & (i1 U o1)
|
||||
Go2 & Xi2 & (i0 U o0)
|
||||
(i0 U o2) & (i0 U o0) & (i0 U o1)
|
||||
Go1 & Xi0 & (i0 U o0) & (i0 U o1)
|
||||
EOF
|
||||
diff out expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue