Check that every color appears once in is_parity_max_equiv
* spot/twa/acc.cc: Now suppose that a condition cannot contain the same mark twice to be parity equivalent.
This commit is contained in:
parent
f4c201c980
commit
4b9704a072
1 changed files with 2 additions and 0 deletions
|
|
@ -1070,6 +1070,8 @@ namespace spot
|
|||
bool
|
||||
acc_cond::is_parity_max_equiv(std::vector<int>&permut, bool even) const
|
||||
{
|
||||
if (code_.used_once_sets() != code_.used_sets())
|
||||
return false;
|
||||
bool result = code_.is_parity_max_equiv(permut, 0, even);
|
||||
int max_value = *std::max_element(std::begin(permut), std::end(permut));
|
||||
for (unsigned i = 0; i < permut.size(); ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue