ltlsynt: fix --global-equiv

Fixes #557.

* spot/tl/apcollect.cc (realizability_simplifier): When detecting
global equivalence such as o1 := i2, the left is always an output, so
it should never be marked as input.
* tests/core/ltlsynt.test: Add test case.
This commit is contained in:
Alexandre Duret-Lutz 2024-01-26 22:31:17 +01:00
parent 690e5a213d
commit dc5a569582
2 changed files with 13 additions and 3 deletions

View file

@ -411,9 +411,9 @@ namespace spot
continue;
SPOT_ASSUME(lit != nullptr);
if (lit.is(spot::op::Not))
add_to_mapping(lit[0], repr_is_input, not_repr);
add_to_mapping(lit[0], false, not_repr);
else
add_to_mapping(lit, repr_is_input, repr);
add_to_mapping(lit, false, repr);
rm_has_new_terms = true;
}
}