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
No known key found for this signature in database
GPG Key ID: 05F3611E97A70ABF
1 changed files with 1 additions and 0 deletions

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);