* src/tgbaalgos/emptinesscheck.cc (emptiness_check::print_result):
Fix memory leak.
This commit is contained in:
parent
e94415c6e6
commit
f54c78a912
2 changed files with 13 additions and 8 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2003-10-24 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
2003-10-24 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
||||||
|
|
||||||
|
* src/tgbaalgos/emptinesscheck.cc (emptiness_check::print_result):
|
||||||
|
Fix memory leak.
|
||||||
|
|
||||||
* src/tgbaalgos/emptinesscheck.cc (emptiness_check::check):
|
* src/tgbaalgos/emptinesscheck.cc (emptiness_check::check):
|
||||||
Simplify, reorganize, and comment.
|
Simplify, reorganize, and comment.
|
||||||
* src/tgbaalgos/emptinesscheck.hh (emptiness_check::root_component):
|
* src/tgbaalgos/emptinesscheck.hh (emptiness_check::root_component):
|
||||||
|
|
|
||||||
|
|
@ -219,29 +219,31 @@ namespace spot
|
||||||
os << " ";
|
os << " ";
|
||||||
if (restrict)
|
if (restrict)
|
||||||
{
|
{
|
||||||
os << restrict->format_state(aut_->project_state(*i_se, restrict))
|
const state* s = aut_->project_state(*i_se, restrict);
|
||||||
<< std::endl;
|
assert(s);
|
||||||
|
os << restrict->format_state(s) << std::endl;
|
||||||
|
delete s;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
os << aut_->format_state((*i_se)) << std::endl;
|
os << aut_->format_state(*i_se) << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
os << "Cycle:" <<std::endl;
|
os << "Cycle:" <<std::endl;
|
||||||
for (cycle_path::const_iterator it = period.begin();
|
for (cycle_path::const_iterator it = period.begin();
|
||||||
it != period.end(); ++it)
|
it != period.end(); ++it)
|
||||||
{
|
{
|
||||||
|
os << " | " << bdd_format_set(d, it->second) << std::endl;
|
||||||
os << " ";
|
os << " ";
|
||||||
if (restrict)
|
if (restrict)
|
||||||
{
|
{
|
||||||
os << " | " << bdd_format_set(d, it->second) <<std::endl ;
|
const state* s = aut_->project_state(it->first, restrict);
|
||||||
os << restrict->format_state(aut_->project_state(it->first,
|
assert(s);
|
||||||
restrict))
|
os << restrict->format_state(s) << std::endl;
|
||||||
<< std::endl;
|
delete s;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
os << " | " << bdd_format_set(d, it->second) <<std::endl ;
|
|
||||||
os << aut_->format_state(it->first) << std::endl;
|
os << aut_->format_state(it->first) << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue