* src/tgbaalgos/ndfs_result.hh: Rewrite the computation of accepting
runs. * src/tgbaalgos/bfssteps.hh, src/tgbaalgos/bfssteps.cc: Add the method finalize witch compute (by default) the traversed path. * src/tgbaalgos/magic.cc, src/tgbaalgos/se05.cc: Fix a bug concerning the heap used for bit state hashing version and ajust the prototype of has_been_visited and pop_notify. * src/tgbaalgos/tau03.cc, src/tgbaalgos/tau03opt.cc: ajust the prototype of has_been_visited and pop_notify.
This commit is contained in:
parent
0c2c12a80f
commit
8dbc9424c1
8 changed files with 525 additions and 253 deletions
|
|
@ -377,21 +377,14 @@ namespace spot
|
|||
h.insert(std::make_pair(s, c));
|
||||
}
|
||||
|
||||
void pop_notify(const state*)
|
||||
void pop_notify(const state*) const
|
||||
{
|
||||
}
|
||||
|
||||
bool has_been_visited(const state*& s) const
|
||||
bool has_been_visited(const state* s) const
|
||||
{
|
||||
hash_type::const_iterator it = h.find(s);
|
||||
if (it==h.end())
|
||||
return false;
|
||||
if (s!=it->first)
|
||||
{
|
||||
delete s;
|
||||
s = it->first;
|
||||
}
|
||||
return true;
|
||||
return (it != h.end());
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
@ -452,15 +445,15 @@ namespace spot
|
|||
cr.set_color(c);
|
||||
}
|
||||
|
||||
void pop_notify(const state* s)
|
||||
void pop_notify(const state* s) const
|
||||
{
|
||||
delete s;
|
||||
}
|
||||
|
||||
bool has_been_visited(const state*& s) const
|
||||
bool has_been_visited(const state* s) const
|
||||
{
|
||||
size_t ha = s->hash();
|
||||
return color((h[ha%size] >> (ha%4)) & 3U) != WHITE;
|
||||
return color((h[ha%size] >> ((ha%4)*2)) & 3U) != WHITE;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue