Use block hashes in EquivalentFunctionDetector.

This commit is contained in:
Daniel Kirchner
2019-05-17 08:39:42 +02:00
parent 54ce3df321
commit 3c66a56e60
9 changed files with 332 additions and 49 deletions
+6
View File
@@ -85,3 +85,9 @@ bool Less<Literal>::operator()(Literal const& _lhs, Literal const& _rhs) const
else
return _lhs.value < _rhs.value;
}
bool SwitchCaseCompareByLiteralValue::operator()(Case const* _lhs, Case const* _rhs) const
{
yulAssert(_lhs && _rhs, "");
return Less<Literal*>{}(_lhs->value.get(), _rhs->value.get());
}