fix a bug in aiger printer

* spot/twaalgos/aiger.cc: here
* tests/core/ltlsynt.test: add a non-regression test
This commit is contained in:
Maximilien Colange 2018-06-07 15:11:16 +02:00
parent 9489a65bc6
commit 1183a935c7
2 changed files with 29 additions and 1 deletions

View file

@ -319,7 +319,7 @@ namespace spot
int bddvar = aut->get_dict()->has_registered_proposition(ap, aut);
assert(bddvar >= 0);
bdd b = bdd_ithvar(bddvar);
if (bdd_implies(b, all_outputs)) // ap is an output AP
if (bdd_implies(all_outputs, b)) // ap is an output AP
{
bddvar_to_outputnum[bddvar] = output_names.size();
output_names.emplace_back(ap.ap_name());