Never claim output used to print the degeneralized automaton
before some optional operations (like more optimizations, or a product). * src/tgbatest/ltl2tgba.cc (-N, -NN): Make sure we print the last automaton computed, not just the automaton when we degeneralized it. We may have applied other algorithms since the original degeneralization.
This commit is contained in:
parent
7627b9673b
commit
67f46b85b3
2 changed files with 23 additions and 2 deletions
|
|
@ -1043,8 +1043,18 @@ main(int argc, char** argv)
|
|||
{
|
||||
assert(degeneralize_opt == DegenSBA);
|
||||
const spot::tgba_sba_proxy* s =
|
||||
static_cast<const spot::tgba_sba_proxy*>(degeneralized);
|
||||
spot::never_claim_reachable(std::cout, s, f, spin_comments);
|
||||
dynamic_cast<const spot::tgba_sba_proxy*>(a);
|
||||
if (s)
|
||||
spot::never_claim_reachable(std::cout, s, f, spin_comments);
|
||||
else
|
||||
{
|
||||
// It is possible that we have applied other
|
||||
// operations to the automaton since its initial
|
||||
// degeneralization. Let's degeneralize again!
|
||||
s = new spot::tgba_sba_proxy(a);
|
||||
spot::never_claim_reachable(std::cout, s, f, spin_comments);
|
||||
delete s;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 9:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue