diff --git a/include/anthem/Body.h b/include/anthem/Body.h index 5ac0f8b..682adc0 100644 --- a/include/anthem/Body.h +++ b/include/anthem/Body.h @@ -146,7 +146,8 @@ struct BodyLiteralTranslateVisitor // TODO: refactor std::experimental::optional visit(const Clingo::AST::Comparison &comparison, const Clingo::AST::Literal &literal, Context &context) { - assert(literal.sign == Clingo::AST::Sign::None); + if (literal.sign != Clingo::AST::Sign::None) + throwErrorAtLocation(literal.location, "negated comparisons in body currently unsupported", context); const auto operator_ = translate(comparison.comparison);