mealy: fix incorrect assertion
* spot/twaalgos/mealy_machine.cc (minimize_mealy): Do not compare result to the original unsplit machine without splitting it first. * tests/python/mealy.py: Add a test case.
This commit is contained in:
parent
6b70edabf0
commit
86c433cf80
2 changed files with 57 additions and 1 deletions
|
|
@ -185,6 +185,7 @@ namespace spot
|
|||
{
|
||||
trace << "is_split_mealy(): Split mealy machine must define the named "
|
||||
"property \"state-player\"!\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
auto sp = get_state_players(m);
|
||||
|
|
@ -3937,7 +3938,10 @@ namespace spot
|
|||
si.total_time = sglob.stop();
|
||||
si.write();
|
||||
|
||||
assert(is_split_mealy_specialization(mm, minmachine));
|
||||
assert(is_split_mealy_specialization(
|
||||
mm->get_named_prop<region_t>("state-player") ? mm
|
||||
:split_2step(mm, false),
|
||||
minmachine));
|
||||
return minmachine;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue