Added minor comment to negated comparisons.

This commit is contained in:
Patrick Lühne 2017-03-28 17:17:01 +02:00
parent 58a0a9d074
commit 1f501c63a8
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -146,6 +146,7 @@ struct BodyLiteralTranslateVisitor
// TODO: refactor
std::experimental::optional<ast::Formula> visit(const Clingo::AST::Comparison &comparison, const Clingo::AST::Literal &literal, Context &context)
{
// Comparisons should never have a sign, because these are converted to positive comparisons by clingo
if (literal.sign != Clingo::AST::Sign::None)
throwErrorAtLocation(literal.location, "negated comparisons in body currently unsupported", context);