MCPcopy Create free account
hub / github.com/argotorg/solidity / knownToBeDifferent

Method knownToBeDifferent

libyul/optimiser/KnowledgeBase.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40{}
41
42bool KnowledgeBase::knownToBeDifferent(YulName _a, YulName _b)
43{
44 if (std::optional<u256> difference = differenceIfKnownConstant(_a, _b))
45 return difference != 0;
46 return false;
47}
48
49std::optional<u256> KnowledgeBase::differenceIfKnownConstant(YulName _a, YulName _b)
50{

Callers 2

knownUnrelatedMethod · 0.45
operator()Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected