Minor clean-up.
This commit is contained in:
parent
c2af84a800
commit
dd621fcd5c
@ -30,18 +30,13 @@ ExpressionPointer Imply::simplified()
|
||||
m_arguments[1] = m_arguments[1]->simplified();
|
||||
|
||||
auto notArgument0 = NotPointer(new Not);
|
||||
notArgument0->setArgument(std::move(m_arguments[0]));
|
||||
notArgument0->setArgument(m_arguments[0]);
|
||||
|
||||
auto orExpression = OrPointer(new Or);
|
||||
orExpression->addArgument(std::move(notArgument0));
|
||||
orExpression->addArgument(std::move(m_arguments[1]));
|
||||
orExpression->addArgument(notArgument0);
|
||||
orExpression->addArgument(m_arguments[1]);
|
||||
|
||||
auto normalizedOrExpression = orExpression->simplified();
|
||||
|
||||
if (normalizedOrExpression)
|
||||
return normalizedOrExpression;
|
||||
|
||||
return std::move(orExpression);
|
||||
return orExpression->simplified();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user