Changed output format of axiom rules.

This commit is contained in:
Patrick Lühne 2016-08-14 16:02:28 +02:00
parent 4d5f935e82
commit bdb6ac9fba

View File

@ -266,7 +266,7 @@ void TranslatorASP::translateAxiomRules() const
std::for_each(conditions.cbegin(), conditions.cend(), std::for_each(conditions.cbegin(), conditions.cend(),
[&](const auto &condition) [&](const auto &condition)
{ {
m_outputStream << utils::Keyword("condition") << "(" << utils::Keyword("axiomRule") << "(" << utils::Number(axiomRuleID) << "), "; m_outputStream << utils::Keyword("precondition") << "(" << utils::Keyword("axiomRule") << "(" << utils::Number(axiomRuleID) << "), ";
condition.variable().printNameAsASPPredicate(m_outputStream); condition.variable().printNameAsASPPredicate(m_outputStream);
m_outputStream << ", "; m_outputStream << ", ";
condition.value().printAsASPPredicate(m_outputStream); condition.value().printAsASPPredicate(m_outputStream);