mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Extend knowledge base.
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
#include <libyul/ASTForward.h>
|
||||
#include <libyul/YulString.h>
|
||||
|
||||
#include <libsolutil/Common.h>
|
||||
|
||||
#include <map>
|
||||
|
||||
namespace solidity::yul
|
||||
@@ -46,8 +48,11 @@ public:
|
||||
{}
|
||||
|
||||
bool knownToBeDifferent(YulString _a, YulString _b);
|
||||
std::optional<u256> differenceIfKnownConstant(YulString _a, YulString _b);
|
||||
bool knownToBeDifferentByAtLeast32(YulString _a, YulString _b);
|
||||
bool knownToBeEqual(YulString _a, YulString _b) const { return _a == _b; }
|
||||
bool knownToBeZero(YulString _a);
|
||||
std::optional<u256> valueIfKnownConstant(YulString _a);
|
||||
|
||||
private:
|
||||
Expression simplify(Expression _expression);
|
||||
|
||||
Reference in New Issue
Block a user