aiger: fix forcing of input properties

* spot/twaalgos/aiger.cc: Here.
* tests/python/synthesis.ipynb: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2021-10-07 11:23:51 +02:00
parent 9b3956f892
commit b9a39c5576
2 changed files with 58 additions and 64 deletions

View file

@ -1473,7 +1473,7 @@ namespace
std::vector<std::string> input_names_all = input_names;
input_names_all.insert(input_names_all.end(),
unused_ins.cbegin(),
unused_ins.cend());
unused_ins.cend());
std::vector<std::string> output_names_all = output_names;
output_names_all.insert(output_names_all.end(),
unused_outs.cbegin(),
@ -1872,7 +1872,7 @@ namespace spot
unused_outs.push_back(ao);
for (const auto& ai : ins)
if (!used_aps.count(ai))
unused_outs.push_back(ai);
unused_ins.push_back(ai);
}
// todo Some additional checks?
return auts_to_aiger({{aut, get_synthesis_outputs(aut)}}, mode,
@ -1934,7 +1934,7 @@ namespace spot
unused_outs.push_back(ao);
for (const auto& ai : ins)
if (!used_aps.count(ai))
unused_outs.push_back(ai);
unused_ins.push_back(ai);
return auts_to_aiger(new_vec, mode, unused_ins, unused_outs);
}