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

Method knownToBeDifferent

libevmasm/ExpressionClasses.cpp:148–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148bool ExpressionClasses::knownToBeDifferent(ExpressionClasses::Id _a, ExpressionClasses::Id _b)
149{
150 // Try to simplify "_a - _b" and return true iff the value is a non-zero constant.
151 return knownNonZero(find(Instruction::SUB, {_a, _b}));
152}
153
154bool ExpressionClasses::knownToBeDifferentBy32(ExpressionClasses::Id _a, ExpressionClasses::Id _b)
155{

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.45
storeInStorageMethod · 0.45
addDependenciesMethod · 0.45

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.36