* src/tgbaalgos/emptiness.hh,

src/tgbaalgos/emptiness.cc (emptiness_check::safe): New method.
* src/tgbaalgos/magic.cc, src/tgbaalgos/magic.hh,
src/tgbaalgos/se05.hh, src/tgbaalgos/se05.cc: Implement it.
* src/tgbatest/randtgba.cc: Simplify.
This commit is contained in:
Alexandre Duret-Lutz 2005-02-17 16:48:35 +00:00
parent c1d0cab3af
commit 435b03c2b2
6 changed files with 115 additions and 69 deletions

View file

@ -125,20 +125,25 @@ namespace spot
return os;
}
virtual bool safe() const
{
return heap::Safe;
}
const heap& get_heap() const
{
return h;
}
{
return h;
}
const stack_type& get_st_blue() const
{
return st_blue;
}
{
return st_blue;
}
const stack_type& get_st_red() const
{
return st_red;
}
{
return st_red;
}
private:
void push(stack_type& st, const state* s,
@ -421,6 +426,8 @@ namespace spot
class explicit_magic_search_heap
{
public:
enum { Safe = 1 };
class color_ref
{
public:
@ -505,6 +512,8 @@ namespace spot
class bsh_magic_search_heap
{
public:
enum { Safe = 0 };
class color_ref
{
public: