ltlcross: relabel unsupported atomic propisitions in %s
* bin/ltlcross.cc: Do it. * bin/common_trans.cc: Adjust documentation. * tests/core/ltl3ba.test: Test it. * NEWS: Document it.
This commit is contained in:
parent
8754cea2ca
commit
b0ba6190b7
4 changed files with 27 additions and 13 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2016 Laboratoire de Recherche et Développement de
|
||||
# l'Epita (LRDE).
|
||||
# Copyright (C) 2016, 2017 Laboratoire de Recherche et Développement
|
||||
# de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
#
|
||||
|
|
@ -30,9 +30,16 @@ set -e
|
|||
|
||||
# The -H1 option will output alternating automata, so this tests
|
||||
# ltlcross's support in this area.
|
||||
randltl -n 30 2 |
|
||||
ltlcross 'ltl3ba -H1' 'ltl3ba -H2' 'ltl3ba -H3' \
|
||||
--ambiguous --strength --csv=output.csv
|
||||
# Using '_x' as first formula makes sure that ltlcross automatically
|
||||
# relabels the input formula when the atomic propositions are not
|
||||
# compatible with Spin's syntax.
|
||||
(
|
||||
echo _x
|
||||
randltl -n 30 2
|
||||
) | ltlcross 'ltl3ba -H1' 'ltl3ba -H2' 'ltl3ba -H3' \
|
||||
--ambiguous --strength --csv=output.csv
|
||||
|
||||
grep _x output.csv && exit 1
|
||||
|
||||
# Make sure all lines in output.csv have the same number of comas
|
||||
sed 's/[^,]//g' <output.csv |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue