Introduce an emptiness-check interface, and modify the existing

algorithms to conform to it, uniformly.  This will unfortunately
break third-party code that were using these algorithms.
* src/tgbaalgos/emptiness.cc, src/tgbaalgos/emptiness.hh: New files.
* src/tgbaalgos/Makefile.am: New files.
* src/tgbaalgos/magic.cc, src/tgbaalgos/magic.hh: Adjust to
conform to the new emptiness-check interface.
* src/tgbaalgos/gtec/ce.cc, src/tgbaalgos/gtec/ce.hh,
src/tgbaalgos/gtec/gtec.cc, src/tgbaalgos/gtec/gtec.hh,
src/tgbaalgos/gtec/status.cc, src/tgbaalgos/gtec/status.hh:
Likewise.  The classes have been renamed are as following
  emptiness_check -> couvreur99_check
  emptiness_check_shy -> couvreur99_check_shy
  counter_example -> couvreur99_check_result
* src/tgbatest/ltl2tgba.cc, iface/gspn/ltlgspn.cc, iface/gspn/ssp.hh,
iface/gspn/ssp.cc: Adjust to renaming and new interface.
This commit is contained in:
Alexandre Duret-Lutz 2004-10-27 16:47:54 +00:00
parent 7010a02cd9
commit 6c815004c4
16 changed files with 523 additions and 300 deletions

View file

@ -802,7 +802,7 @@ namespace spot
hash_type h; ///< Map of visited states.
friend class numbered_state_heap_ssp_const_iterator;
friend class emptiness_check_shy_ssp;
friend class couvreur99_check_shy_ssp;
};
@ -896,12 +896,12 @@ namespace spot
};
class emptiness_check_shy_ssp : public emptiness_check_shy
class couvreur99_check_shy_ssp : public couvreur99_check_shy
{
public:
emptiness_check_shy_ssp(const tgba* a)
: emptiness_check_shy(a,
numbered_state_heap_ssp_factory_semi::instance())
couvreur99_check_shy_ssp(const tgba* a)
: couvreur99_check_shy(a,
numbered_state_heap_ssp_factory_semi::instance())
{
}
@ -976,36 +976,37 @@ namespace spot
emptiness_check*
emptiness_check_ssp_semi(const tgba* ssp_automata)
couvreur99_check*
couvreur99_check_ssp_semi(const tgba* ssp_automata)
{
assert(dynamic_cast<const tgba_gspn_ssp*>(ssp_automata));
return
new emptiness_check(ssp_automata,
numbered_state_heap_ssp_factory_semi::instance());
new couvreur99_check(ssp_automata,
numbered_state_heap_ssp_factory_semi::instance());
}
emptiness_check*
emptiness_check_ssp_shy_semi(const tgba* ssp_automata)
couvreur99_check*
couvreur99_check_ssp_shy_semi(const tgba* ssp_automata)
{
assert(dynamic_cast<const tgba_gspn_ssp*>(ssp_automata));
return
new emptiness_check_shy
(ssp_automata,
new couvreur99_check_shy
(ssp_automata,
numbered_state_heap_ssp_factory_semi::instance());
}
emptiness_check*
emptiness_check_ssp_shy(const tgba* ssp_automata)
couvreur99_check*
couvreur99_check_ssp_shy(const tgba* ssp_automata)
{
assert(dynamic_cast<const tgba_gspn_ssp*>(ssp_automata));
return new emptiness_check_shy_ssp(ssp_automata);
return new couvreur99_check_shy_ssp(ssp_automata);
}
counter_example*
counter_example_ssp(const emptiness_check_status* status)
couvreur99_check_result*
counter_example_ssp(const couvreur99_check_status* status)
{
return new counter_example(status,
connected_component_ssp_factory::instance());
return new
couvreur99_check_result(status,
connected_component_ssp_factory::instance());
}
}