* src/tgba/taa.cc, src/tgba/taa.hh: Fix it.

* src/tgbaalgos/ltl2taa.cc: Do NOT use the same bdd_dict for both
the translation and the language containment checker.
* src/tgbatest/spotlbtt.test: Update TAA related tests.
This commit is contained in:
Damien Lefortier 2009-11-10 16:45:29 +01:00
parent 007e2bd0b9
commit 1d8b115b83
5 changed files with 45 additions and 31 deletions

View file

@ -131,11 +131,8 @@ namespace spot
class state_set : public spot::state
{
public:
/// The taa::state_set has been allocated with \c new. It is the
/// responsability of the state_set to \c delete it when no longer
/// needed (cf. dtor).
state_set(const taa::state_set* s)
: s_(s)
state_set(const taa::state_set* s, bool delete_me = false)
: s_(s), delete_me_(delete_me)
{
}
@ -145,12 +142,14 @@ namespace spot
virtual ~state_set()
{
delete s_;
if (delete_me_)
delete s_;
}
const taa::state_set* get_state() const;
private:
const taa::state_set* s_;
bool delete_me_;
};
class taa_succ_iterator : public tgba_succ_iterator
@ -174,7 +173,7 @@ namespace spot
typedef std::pair<iterator, iterator> iterator_pair;
typedef std::vector<iterator_pair> bounds_t;
typedef Sgi::hash_multimap<
const taa::state_set*, taa::transition*, ptr_hash<taa::state_set>
const spot::state_set*, taa::transition*, state_ptr_hash, state_ptr_equal
> seen_map;
struct distance_sort :