ltlsynt: fix the case where AP removal is disabled and decomp fails

* bin/ltlsynt.cc: Correctly update the output variables in the case
decomposition failed and AP removal is disabled.
* tests/core/ltlsynt.test: Add a test case.
This commit is contained in:
Alexandre Duret-Lutz 2024-02-17 16:57:31 +01:00
parent 15b876d368
commit 82311c3e3b
2 changed files with 10 additions and 0 deletions

View file

@ -467,6 +467,12 @@ namespace
sub_outs[0].insert(ap);
}
}
else
{
for (const std::string& apstr: output_aps)
sub_outs[0].insert(spot::formula::ap(apstr));
}
}
std::vector<std::vector<std::string>> sub_outs_str;
std::transform(sub_outs.begin(), sub_outs.end(),