Modify the ELTL parser to be able to support PSL operators. Add a
new keyword in the ELTL format: finish, which applies to an automaton operator and tells whether it just completed. * src/eltlparse/eltlparse.yy: Clean it. Add finish. * src/eltlparse/eltlscan.ll: Add finish. * src/formula_tree.cc, src/formula_tree.hh: New files. Define a small AST representing formulae where atomic props are unknown which is used in the ELTL parser. * src/ltlast/automatop.cc, ltlast/automatop.hh, ltlast/nfa.cc, ltlast/nfa.hh: Adjust. * src/ltlast/unop.cc, src/ltlast/unop.hh: Finish is an unop. * src/ltlvisit/basicreduce.cc, src/ltlvisit/nenoform.cc, src/ltlvisit/reduce.cc, src/ltlvisit/syntimpl.cc, src/ltlvisit/tostring.cc, src/ltlvisit/tunabbrev.cc, src/tgba/formula2bdd.cc, src/tgbaalgos/ltl2tgba_fm.cc, src/tgbaalgos/ltl2tgba_lacim.cc: Handle finish in switches. * src/tgbaalgos/eltl2tgba_lacim.cc: Translate finish. * src/tgbatest/eltl2tgba.test: More tests.
This commit is contained in:
parent
4de885afb1
commit
e48338e8d8
23 changed files with 479 additions and 237 deletions
|
|
@ -145,3 +145,37 @@ T(f)
|
|||
EOF
|
||||
|
||||
check_construct input
|
||||
|
||||
cat >input <<EOF
|
||||
include input1
|
||||
Fusion=
|
||||
(
|
||||
0 1 \$0 & !finish(\$0)
|
||||
1 1 !finish(\$0)
|
||||
1 2 \$1 & finish(\$0)
|
||||
0 2 \$0 & \$1 & finish(\$0)
|
||||
accept 2
|
||||
)
|
||||
%
|
||||
Fusion(F(a),b)
|
||||
EOF
|
||||
|
||||
check_construct input
|
||||
|
||||
cat >input <<EOF
|
||||
Concat=
|
||||
(
|
||||
0 1 \$0 & !finish(\$0)
|
||||
1 1 !finish(\$0)
|
||||
1 2 finish(\$0)
|
||||
0 2 \$0 & finish(\$0)
|
||||
2 3 \$1
|
||||
accept 3
|
||||
)
|
||||
%
|
||||
Concat(a,b)
|
||||
EOF
|
||||
|
||||
check_construct input
|
||||
check_true 'a&X(b)'
|
||||
check_false '!(a&X(b))'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue