* src/ltlvisit/clone.cc (clone): New const version.
* src/ltlvisit/clone.hh (clone): Likewise. * src/ltlvisit/destroy.cc (destroy): New const version. * src/ltlvisit/destroy.hh (destroy): Likewise. * src/tgba/tgbabddconcretefactory.cc (tgba_bdd_concrete_factory::create_state, tgba_bdd_concrete_factory::create_atomic_prop, tgba_bdd_concrete_factory::promise): Clone new formulae. * src/tgba/tgbabdddict.cc (tgba_bdd_dict::tgba_bdd_dict, tgba_bdd_dict::~tgba_bdd_dict, tgba_bdd_dict::operator=): New methods that clone and destroy formulae. * src/tgbatest/ltl2tgba.test, src/tgbatest/ltl2tgba.cc: New files. * src/tgbatest/Makefile.am (check_PROGRAMS): Add ltl2tgba. (ltl2tgba_SOURCES): New variable. (TESTS): Add ltl2tgba.test.
This commit is contained in:
parent
578fa26cf3
commit
3991a51a17
12 changed files with 170 additions and 6 deletions
15
src/tgbatest/ltl2tgba.test
Executable file
15
src/tgbatest/ltl2tgba.test
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
. ./defs
|
||||
|
||||
set -e
|
||||
|
||||
# We don't check the output, but just running these might be enough to
|
||||
# trigger assertions.
|
||||
|
||||
./ltl2tgba a
|
||||
./ltl2tgba 'a U b'
|
||||
./ltl2tgba 'X a'
|
||||
./ltl2tgba 'a & b & c'
|
||||
./ltl2tgba 'a | b | (c U (d & (g U (h ^ i))))'
|
||||
./ltl2tgba 'Xa & (b U !a) & (b U !a)'
|
||||
Loading…
Add table
Add a link
Reference in a new issue