* src/ltltest/Makefile.am (AM_CXXFLAGS): New variable.
* tgba/bdddict.hh (bdd_dict::register_propositions, bdd_dict::register_accepting_variables): New methods. * src/bdddict.cc: Likewise. * tgba/tgbaexplicit.cc (tgba_explicit::add_conditions, tgba_explicit::add_accepting_conditions): New methods. (tgba_explicit::get_init_state): Add an "empty" initial state to empty automata. * tgba/tgbaexplicit.hh: (tgba_explicit::add_conditions, tgba_explicit::add_accepting_conditions): New methods. * tgbaalgos/Makefiles.am (tgbaalgos_HEADERS, libtgbaalgos_la_SOURCES): Add dupexp.hh and dupexp.cc. * tgbaalgos/dupexp.hh, tgbaalgos/dupexp.cc: New files. * tgbatest/Makefile.am (AM_CXXFLAGS): New variable. (check_SCRIPTS): Add dupexp.test. (CLEANFILES): Add output1 and output2. * tgbatest/dupexp.test: New file. * tgbatest/ltl2tgba.cc: Handle -s and -S. * tgbatest/tgbaread.cc: Remove unused variable exit_code.
This commit is contained in:
parent
51ff9f8dda
commit
982c5efc6c
13 changed files with 271 additions and 8 deletions
30
src/tgbatest/dupexp.test
Executable file
30
src/tgbatest/dupexp.test
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
. ./defs
|
||||
|
||||
set -e
|
||||
|
||||
run()
|
||||
{
|
||||
./ltl2tgba -f -s "$1" >output1
|
||||
./ltl2tgba -f -S "$1" >output2
|
||||
test `wc -l <output1` = `wc -l <output2`
|
||||
|
||||
./ltl2tgba -s "$1" >output1
|
||||
./ltl2tgba -S "$1" >output2
|
||||
test `wc -l <output1` = `wc -l <output2`
|
||||
}
|
||||
|
||||
run 'a'
|
||||
run 'a U b'
|
||||
run 'X a'
|
||||
run 'a & b & c'
|
||||
run 'a | b | (c U (d & (g U (h ^ i))))'
|
||||
run 'Xa & (b U !a) & (b U !a)'
|
||||
run 'Fa & Xb & GFc & Gd'
|
||||
run 'Fa & Xa & GFc & Gc'
|
||||
run 'Fc & X(a | Xb) & GF(a | Xb) & Gc'
|
||||
run '!((FF a) <=> (F x))'
|
||||
run '!((FF a) <=> (F a))'
|
||||
run 'Xa && (!a U b) && !b && X!b'
|
||||
run '(a U !b) && Gb'
|
||||
Loading…
Add table
Add a link
Reference in a new issue