--lang sygus is a synonym for --lang sygus2
also fixes typo in error message for language options parsing
Signed-off-by: polgreen <epolgreen@gmail.com>
return input::LANG_SMTLIB_V2_6;
} else if(language == "tptp" || language == "LANG_TPTP") {
return input::LANG_TPTP;
- }
- else if (language == "sygus2" || language == "LANG_SYGUS_V2")
- {
+ } else if(language == "sygus" || language == "sygus2" ||
+ language == "LANG_SYGUS" || language == "LANG_SYGUS_V2") {
return input::LANG_SYGUS_V2;
}
else if (language == "auto" || language == "LANG_AUTO")
try {
return language::toInputLanguage(optarg);
} catch(OptionException& oe) {
- throw OptionException("Error in " + option + ": " + oe.getMessage() + "\nTry --language help");
+ throw OptionException("Error in " + option + ": " + oe.getMessage() + "\nTry --lang help");
}
Unreachable();