This PR fixes calling (get-info :authors). It used to (try to) print the whole about() information, but failed to do so because the string needed to be turned into an s-expression. However, about() is not properly escaped.
We now simply print the cvc5 authors.
It also fixes isValidGetInfoFlag() which was missing filename.
Fixes #7362.
bool SolverEngine::isValidGetInfoFlag(const std::string& key) const
{
- if (key == "all-statistics" || key == "error-behavior" || key == "name"
- || key == "version" || key == "authors" || key == "status"
- || key == "reason-unknown" || key == "assertion-stack-levels"
- || key == "all-options" || key == "time")
+ if (key == "all-statistics" || key == "error-behavior" || key == "filename"
+ || key == "name" || key == "version" || key == "authors"
+ || key == "status" || key == "time" || key == "reason-unknown"
+ || key == "assertion-stack-levels" || key == "all-options")
{
return true;
}
}
if (key == "authors")
{
- return toSExpr(Configuration::about());
+ return toSExpr("the " + Configuration::getName() + " authors");
}
if (key == "status")
{