The sgba proxy adds an acceptance condition to every states when

the original automaton has no acceptance condition.

* src/tgba/tgbasgba.cc, src/tgba/tgbasgba.hh: New option:
when the original automaton has no accepting condition, it
explicitly considers that every state is accepting.
This commit is contained in:
Guillaume Sadegh 2009-10-01 00:25:06 +02:00
parent 6d18623e4b
commit 44ab903b86
3 changed files with 55 additions and 8 deletions

View file

@ -38,7 +38,7 @@ namespace spot
class tgba_sgba_proxy : public tgba
{
public:
tgba_sgba_proxy(const tgba* a);
tgba_sgba_proxy(const tgba* a, bool no_zero_acc = true);
virtual ~tgba_sgba_proxy();
@ -64,6 +64,10 @@ namespace spot
private:
const tgba* a_;
// If the automaton has no acceptance condition,
// every state is accepting.
bool emulate_acc_cond_;
bdd acceptance_condition_;
// Disallow copy.
tgba_sgba_proxy(const tgba_sgba_proxy&);
tgba_sgba_proxy& operator=(const tgba_sgba_proxy&);