* src/tgbaalgos/gtec/nsheap.hh, src/tgbaalgos/gtec/nsheap.cc
(index_and_insert): New function. * src/tgbaalgos/gtec/gtec.cc (couvreur99_check_shy::check): Rewrite. (couvreur99_check_shy::clear_todo): New method. * src/tgbaalgos/gtec/gtec.hh (couvreur99_check_shy::todo_item): New struct. * iface/gspn/ssp.cc (numbered_state_heap_ssp_semi::index_and_insert): New method.
This commit is contained in:
parent
988dbbd367
commit
93f77c5782
6 changed files with 245 additions and 134 deletions
|
|
@ -89,6 +89,12 @@ namespace spot
|
|||
/// Add a new state \a s with index \a index
|
||||
virtual void insert(const state* s, int index) = 0;
|
||||
|
||||
/// \brief Get the index of a state, and insert that state if it is missing.
|
||||
///
|
||||
/// If a clone of \a s is already in the hash table, \a s will be deleted
|
||||
/// and replaced by the address of the clone used.
|
||||
virtual int& index_and_insert(const state*& s) = 0;
|
||||
|
||||
/// The number of stored states.
|
||||
virtual int size() const = 0;
|
||||
|
||||
|
|
@ -114,6 +120,7 @@ namespace spot
|
|||
virtual state_index_p find(const state* s);
|
||||
virtual state_index index(const state* s) const;
|
||||
virtual state_index_p index(const state* s);
|
||||
virtual int& index_and_insert(const state*& s);
|
||||
|
||||
virtual void insert(const state* s, int index);
|
||||
virtual int size() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue