A tgba can now annotate a transition (i.e., the position of a
tgba_succ_iterator) with some string. This comes handy to associate that transition to its high-level name. * src/tgba/tgba.hh, src/tgba/tgba.cc (tgba::transition_annotation): New method. * src/tgba/tgbaproduct.hh, src/tgba/tgbaproduct.cc (tgba_product::transition_annotation): Implement it. * src/tgba/tgbatba.hh, src/tgba/tgbatba.cc (tgba_tba_proxy::transition_annotation): Likewise. * src/tgbaalgos/replayrun.cc (print_annotation): New function. (replay_tgba_run): Use it.
This commit is contained in:
parent
32403566f6
commit
754d7064ae
8 changed files with 82 additions and 4 deletions
|
|
@ -191,6 +191,7 @@ namespace spot
|
|||
const iterator expected_;
|
||||
const iterator end_;
|
||||
const bdd the_acceptance_cond_;
|
||||
friend class tgba_tba_proxy;
|
||||
};
|
||||
|
||||
} // anonymous
|
||||
|
|
@ -317,4 +318,13 @@ namespace spot
|
|||
return a_->support_variables(s->real_state());
|
||||
}
|
||||
|
||||
std::string
|
||||
tgba_tba_proxy::transition_annotation(const tgba_succ_iterator* t) const
|
||||
{
|
||||
const tgba_tba_proxy_succ_iterator* i =
|
||||
dynamic_cast<const tgba_tba_proxy_succ_iterator*>(t);
|
||||
assert(i);
|
||||
return a_->transition_annotation(i->it_);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue