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

Method valueIfKnownConstant

libyul/optimiser/KnowledgeBase.cpp:73–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73std::optional<u256> KnowledgeBase::valueIfKnownConstant(YulName _a)
74{
75 return explore(_a).absoluteValue();
76}
77
78std::optional<u256> KnowledgeBase::valueIfKnownConstant(Expression const& _expression)
79{

Callers 4

BOOST_AUTO_TEST_CASEFunction · 0.80
lengthValueMethod · 0.80
knownUnrelatedMethod · 0.80
knownCoveredMethod · 0.80

Calls 2

absoluteValueMethod · 0.80
valueMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64