* src/tgbatest/ltl2tgba.cc (main): Correctly destroy unobservable
events.
This commit is contained in:
parent
b8fd421232
commit
44e4beca2e
2 changed files with 17 additions and 2 deletions
|
|
@ -128,8 +128,10 @@ syntax(char* prog)
|
|||
<< " -S convert to explicit automata, and number states "
|
||||
<< "in BFS order" << std::endl
|
||||
<< " -t display reachable states in LBTT's format" << std::endl
|
||||
<< " -U[PROPS] consider atomic properties PROPS as exclusive "
|
||||
<< "events (implies -f)" << std::endl
|
||||
<< " -U[PROPS] consider atomic properties of the formula as "
|
||||
<< "exclusive events, and" << std::endl
|
||||
<< " PROPS as unobservables events (implies -f)"
|
||||
<< std::endl
|
||||
<< " -v display the BDD variables used by the automaton"
|
||||
<< std::endl
|
||||
<< " -x try to produce a more deterministic automata "
|
||||
|
|
@ -849,6 +851,14 @@ main(int argc, char** argv)
|
|||
exit_code = 1;
|
||||
}
|
||||
|
||||
if (unobservables)
|
||||
{
|
||||
for (spot::ltl::atomic_prop_set::iterator i =
|
||||
unobservables->begin(); i != unobservables->end(); ++i)
|
||||
spot::ltl::destroy(*i);
|
||||
delete unobservables;
|
||||
}
|
||||
|
||||
assert(spot::ltl::atomic_prop::instance_count() == 0);
|
||||
assert(spot::ltl::unop::instance_count() == 0);
|
||||
assert(spot::ltl::binop::instance_count() == 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue