* src/tgbaalgos/replayrun.cc (replay_tgba_run): Verify the run is
accepting.
This commit is contained in:
parent
434475dbc8
commit
cf45539312
2 changed files with 29 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2004-10-29 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
||||
|
||||
* src/tgbaalgos/replayrun.cc (replay_tgba_run): Verify the run is
|
||||
accepting.
|
||||
|
||||
* src/tgbaalgos/gtec/ce.cc (couvreur99_check_result::accepting_path):
|
||||
Initialize best_end to remove a spurious warning.
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@ namespace spot
|
|||
int serial = 1;
|
||||
const tgba_run::steps* l;
|
||||
std::string in;
|
||||
bdd all_acc = bddfalse;
|
||||
bdd expected_all_acc = a->all_acceptance_conditions();
|
||||
bool all_acc_seen = false;
|
||||
|
||||
if (run->prefix.empty())
|
||||
{
|
||||
|
|
@ -135,8 +138,31 @@ namespace spot
|
|||
<< " and acc=" << bdd_format_accset(a->get_dict(), acc)
|
||||
<< std::endl;
|
||||
delete j;
|
||||
|
||||
// Sum acceptance conditions.
|
||||
if (l == &run->cycle && i != l->begin())
|
||||
{
|
||||
all_acc |= acc;
|
||||
if (!all_acc_seen && all_acc == expected_all_acc)
|
||||
{
|
||||
all_acc_seen = true;
|
||||
os << "all acceptance conditions ("
|
||||
<< bdd_format_accset(a->get_dict(), all_acc)
|
||||
<< ") have been seen"
|
||||
<< std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
delete s;
|
||||
if (all_acc != expected_all_acc)
|
||||
{
|
||||
os << "ERROR: The cycle's acceptance conditions ("
|
||||
<< bdd_format_accset(a->get_dict(), all_acc) << ") do not"
|
||||
<< "match those of the automata ("
|
||||
<< bdd_format_accset(a->get_dict(), expected_all_acc)
|
||||
<< std::endl;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue