Hiding mutex group section in output if there are none.

This commit is contained in:
Patrick Lühne 2016-08-30 13:02:00 +02:00
parent 76f8df13fc
commit be376a9ffb

View File

@ -33,8 +33,12 @@ void TranslatorASP::translate() const
translateVariables(); translateVariables();
m_outputStream << std::endl; m_outputStream << std::endl;
translateActions(); translateActions();
if (!m_description.mutexGroups().empty())
{
m_outputStream << std::endl; m_outputStream << std::endl;
translateMutexes(); translateMutexes();
}
if (m_description.usesAxiomRules()) if (m_description.usesAxiomRules())
{ {